workflow

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateInvocation = errors.New("duplicate invocation")
)

Functions

func ActivityFactory

func ActivityFactory(ctx context.Context, opts ActivityOptions) (targets.Factory, error)

func WorkflowFactory

func WorkflowFactory(ctx context.Context, opts WorkflowOptions) (targets.Factory, error)

Types

type ActivityOptions

type ActivityOptions struct {
	AppID              string
	ActivityActorType  string
	WorkflowActorType  string
	ReminderInterval   *time.Duration
	Scheduler          todo.ActivityScheduler
	Actors             actors.Interface
	SchedulerReminders bool
}

type EventSink

type EventSink func(*backend.OrchestrationMetadata)

type WorkflowOptions

type WorkflowOptions struct {
	AppID             string
	WorkflowActorType string
	ActivityActorType string
	ReminderInterval  *time.Duration

	Resiliency         resiliency.Provider
	Actors             actors.Interface
	Scheduler          todo.WorkflowScheduler
	SchedulerReminders bool
	EventSink          EventSink
}

Jump to

Keyboard shortcuts

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