worker

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 7 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWorkerOptions = internal.DefaultOptions

Functions

This section is empty.

Types

type ActivityRegistry

type ActivityRegistry interface {
	RegisterActivity(a interface{}) error
}

type Options

type Options = internal.Options

type Registry

type Registry interface {
	WorkflowRegistry
	ActivityRegistry
}

type Worker

type Worker interface {
	Registry

	// Start starts the worker
	Start(ctx context.Context) error

	// Stop stops the worker and waits for in-progress work to complete
	Stop() error
}

func New

func New(backend backend.Backend, options *Options) Worker

type WorkflowRegistry

type WorkflowRegistry interface {
	RegisterWorkflow(w workflow.Workflow) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL