activity

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 17 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
	Attempt    int
	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, attempt int, 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 *registry.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