sessionworkflows

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 36 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 {
	SessionWorkflow     temporalclient.WorkflowConfig `koanf:"session_workflow"`
	TerminationWorkflow temporalclient.WorkflowConfig `koanf:"termination_workflow"`

	Activity temporalclient.ActivityConfig `koanf:"activity"`

	Worker temporalclient.WorkerConfig `koanf:"worker"`

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

	SlowOperationTimeout time.Duration `koanf:"slow_operation_timeout"`

	// Enable test tools.
	Test bool `koanf:"test"`
}

type Workflows

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

func New

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

Directories

Path Synopsis
os
testtools
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.
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