sessionworkflows

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 33 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"`

	// Enable internal test functionality.
	Test     bool `koanf:"test"`
	OSModule bool `koanf:"os_module"`
}

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,
	telemetry *telemetry.Telemetry,
) Workflows

Directories

Path Synopsis
os
time
This closely follows https://github.com/google/starlark-go/tree/master/lib/time.
This closely follows https://github.com/google/starlark-go/tree/master/lib/time.

Jump to

Keyboard shortcuts

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