sessionworkflows

package
v0.3.4-test Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Temporal TemporalConfig `koanf:"temporal"`
	Workflow WorkflowConfig `koanf:"workflow"`
}

type TemporalConfig

type TemporalConfig struct {
	WorkflowTaskTimeout         time.Duration  `koanf:"workflow_task_timeout"`
	LocalScheduleToCloseTimeout time.Duration  `koanf:"local_schedule_to_close_timeout"`
	Worker                      worker.Options `koanf:"worker"`
}

type WorkflowConfig

type WorkflowConfig struct{}

type Workflows

type Workflows interface {
	StartWorkers(context.Context) error
	StartWorkflow(ctx context.Context, session sdktypes.Session, debug bool) error
	StopWorkflow(ctx context.Context, sessionID sdktypes.SessionID, reason string, force bool) error
}

func New

func New(z *zap.Logger, cfg Config, sessions sdkservices.Sessions, svcs *sessionsvcs.Svcs, calls sessioncalls.Calls) Workflows

Jump to

Keyboard shortcuts

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