activity

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithActivityState added in v0.0.9

func WithActivityState(ctx context.Context, as *ActivityState) context.Context

Types

type ActivityState added in v0.0.9

type ActivityState struct {
	ActivityID string
	Instance   *workflow.Instance
	Logger     log.Logger
}

func GetActivityState added in v0.0.9

func GetActivityState(context context.Context) *ActivityState

func NewActivityState added in v0.0.9

func NewActivityState(activityID string, instance *workflow.Instance, logger log.Logger) *ActivityState

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(logger log.Logger, tracer trace.Tracer, converter converter.Converter, r *workflow.Registry) Executor

func (*Executor) ExecuteActivity

func (e *Executor) ExecuteActivity(ctx context.Context, task *task.Activity) (payload.Payload, error)

Jump to

Keyboard shortcuts

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