Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkflow ¶
Types ¶
type ExecutionResult ¶ added in v0.0.5
type ExecutionResult struct {
State core.WorkflowInstanceState
Executed []*history.Event
ActivityEvents []*history.Event
TimerEvents []*history.Event
WorkflowEvents []history.WorkflowEvent
}
type ExecutorCache ¶ added in v0.4.1
type ExecutorCache interface {
Store(ctx context.Context, instance *core.WorkflowInstance, workflow WorkflowExecutor) error
Evict(ctx context.Context, instance *core.WorkflowInstance) error
Get(ctx context.Context, instance *core.WorkflowInstance) (WorkflowExecutor, bool, error)
StartEviction(ctx context.Context)
}
type WorkflowExecutor ¶
type WorkflowExecutor interface {
ExecuteTask(ctx context.Context, t *backend.WorkflowTask) (*ExecutionResult, error)
Close()
}
func NewExecutor ¶
func NewExecutor( logger *slog.Logger, tracer trace.Tracer, registry *registry.Registry, cv converter.Converter, propagators []wf.ContextPropagator, historyProvider WorkflowHistoryProvider, instance *core.WorkflowInstance, metadata *metadata.WorkflowMetadata, clock clock.Clock, ) (WorkflowExecutor, error)
type WorkflowHistoryProvider ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.