activity

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 16 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     *slog.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 *slog.Logger) *ActivityState

type Executor

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

func NewExecutor

func NewExecutor(logger *slog.Logger, tracer trace.Tracer, converter converter.Converter, propagators []wf.ContextPropagator, r *workflow.Registry) *Executor

func (*Executor) ExecuteActivity

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

Jump to

Keyboard shortcuts

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