Documentation
¶
Index ¶
- Variables
- func NewWorkflow(workflowFn reflect.Value) *workflow
- func Replaying(ctx sync.Context) bool
- func WorkflowInstance2(ctx sync.Context) *core.WorkflowInstance
- type Activity
- type ExecutionResult
- type Registry
- type Workflow
- type WorkflowExecutor
- type WorkflowExecutorCache
- type WorkflowExecutorCacheOptions
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 ExecutionResult ¶ added in v0.0.5
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) (*ExecutionResult, 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.