Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultWorkflowExecutorCacheOptions = WorkflowExecutorCacheOptions{ CacheDuration: 30 * time.Second, }
Functions ¶
func NewWorkflow ¶
func WorkflowInstance2 ¶
func WorkflowInstance2(ctx sync.Context) core.WorkflowInstance
Types ¶
type Registry ¶
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) GetActivity ¶
func (*Registry) RegisterActivity ¶
func (*Registry) RegisterWorkflow ¶
type WorkflowExecutor ¶
type WorkflowExecutor interface {
ExecuteTask(ctx context.Context, t *task.Workflow) ([]history.Event, []history.WorkflowEvent, error)
Close()
}
func NewExecutor ¶
func NewExecutor(registry *Registry, instance core.WorkflowInstance, clock clock.Clock) (WorkflowExecutor, error)
type WorkflowExecutorCache ¶
type WorkflowExecutorCache interface {
Store(ctx context.Context, instance core.WorkflowInstance, workflow WorkflowExecutor) error
Get(ctx context.Context, instance core.WorkflowInstance) (WorkflowExecutor, bool, error)
StartEviction(ctx context.Context)
}
func NewWorkflowExecutorCache ¶
func NewWorkflowExecutorCache(options WorkflowExecutorCacheOptions) WorkflowExecutorCache
Click to show internal directories.
Click to hide internal directories.