worker

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterActivityOptions

type RegisterActivityOptions = internal.RegisterActivityOptions

type RegisterWorkflowOptions

type RegisterWorkflowOptions = internal.RegisterWorkflowOptions

type Registry

type Registry interface {
	RegisterWorkflow(w interface{}, name string)
	RegisterWorkflowWithOptions(w interface{}, options RegisterWorkflowOptions)
	RegisterActivity(a interface{})
	RegisterActivityWithOptions(a interface{}, options RegisterActivityOptions)
}

type Worker

type Worker interface {
	Registry
	Start() error
	// Run is a blocking start and cleans up resources when killed
	// returns error only if it fails to start the worker
	Run(interruptCh <-chan interface{}) error
	// Stop cleans up any resources opened by worker
	Stop()
}

Jump to

Keyboard shortcuts

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