Documentation ¶
Index ¶
- type ActivityTaskWorker
- func (atw *ActivityTaskWorker) Complete(ctx context.Context, result *history.Event, task *backend.ActivityTask) error
- func (atw *ActivityTaskWorker) Execute(ctx context.Context, task *backend.ActivityTask) (*history.Event, error)
- func (atw *ActivityTaskWorker) Extend(ctx context.Context, task *backend.ActivityTask) error
- func (atw *ActivityTaskWorker) Get(ctx context.Context, queues []workflow.Queue) (*backend.ActivityTask, error)
- func (atw *ActivityTaskWorker) Start(ctx context.Context, queues []workflow.Queue) error
- type TaskWorker
- type Worker
- func NewActivityWorker(b backend.Backend, registry *registry.Registry, clock clock.Clock, ...) *Worker[backend.ActivityTask, history.Event]
- func NewWorker[Task, TaskResult any](b backend.Backend, tw TaskWorker[Task, TaskResult], options *WorkerOptions) *Worker[Task, TaskResult]
- func NewWorkflowWorker(b backend.Backend, registry *registry.Registry, options WorkflowWorkerOptions) *Worker[backend.WorkflowTask, executor.ExecutionResult]
- type WorkerOptions
- type WorkflowTaskWorker
- func (wtw *WorkflowTaskWorker) Complete(ctx context.Context, result *executor.ExecutionResult, t *backend.WorkflowTask) error
- func (wtw *WorkflowTaskWorker) Execute(ctx context.Context, t *backend.WorkflowTask) (*executor.ExecutionResult, error)
- func (wtw *WorkflowTaskWorker) Extend(ctx context.Context, t *backend.WorkflowTask) error
- func (wtw *WorkflowTaskWorker) Get(ctx context.Context, queues []workflow.Queue) (*backend.WorkflowTask, error)
- func (wtw *WorkflowTaskWorker) Start(ctx context.Context, queues []workflow.Queue) error
- type WorkflowWorkerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityTaskWorker ¶ added in v0.18.0
type ActivityTaskWorker struct {
// contains filtered or unexported fields
}
func (*ActivityTaskWorker) Complete ¶ added in v0.18.0
func (atw *ActivityTaskWorker) Complete(ctx context.Context, result *history.Event, task *backend.ActivityTask) error
func (*ActivityTaskWorker) Execute ¶ added in v0.18.0
func (atw *ActivityTaskWorker) Execute(ctx context.Context, task *backend.ActivityTask) (*history.Event, error)
func (*ActivityTaskWorker) Extend ¶ added in v0.18.0
func (atw *ActivityTaskWorker) Extend(ctx context.Context, task *backend.ActivityTask) error
func (*ActivityTaskWorker) Get ¶ added in v0.18.0
func (atw *ActivityTaskWorker) Get(ctx context.Context, queues []workflow.Queue) (*backend.ActivityTask, error)
type TaskWorker ¶ added in v0.18.0
type Worker ¶ added in v0.18.0
type Worker[Task, TaskResult any] struct { // contains filtered or unexported fields }
func NewActivityWorker ¶
func NewWorker ¶ added in v0.18.0
func NewWorker[Task, TaskResult any]( b backend.Backend, tw TaskWorker[Task, TaskResult], options *WorkerOptions, ) *Worker[Task, TaskResult]
func NewWorkflowWorker ¶
func NewWorkflowWorker( b backend.Backend, registry *registry.Registry, options WorkflowWorkerOptions, ) *Worker[backend.WorkflowTask, executor.ExecutionResult]
func (*Worker[Task, TaskResult]) WaitForCompletion ¶ added in v0.18.0
type WorkerOptions ¶ added in v0.18.0
type WorkflowTaskWorker ¶ added in v0.18.0
type WorkflowTaskWorker struct {
// contains filtered or unexported fields
}
func (*WorkflowTaskWorker) Complete ¶ added in v0.18.0
func (wtw *WorkflowTaskWorker) Complete(ctx context.Context, result *executor.ExecutionResult, t *backend.WorkflowTask) error
Complete implements TaskWorker.
func (*WorkflowTaskWorker) Execute ¶ added in v0.18.0
func (wtw *WorkflowTaskWorker) Execute(ctx context.Context, t *backend.WorkflowTask) (*executor.ExecutionResult, error)
func (*WorkflowTaskWorker) Extend ¶ added in v0.18.0
func (wtw *WorkflowTaskWorker) Extend(ctx context.Context, t *backend.WorkflowTask) error
func (*WorkflowTaskWorker) Get ¶ added in v0.18.0
func (wtw *WorkflowTaskWorker) Get(ctx context.Context, queues []workflow.Queue) (*backend.WorkflowTask, error)
type WorkflowWorkerOptions ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.