Documentation ¶
Overview ¶
Adapted from https://github.com/dynajoe/temporal-terraform-demo/blob/main/heartbeat/heartbeat.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallParams ¶
type CallParams struct { SessionID sdktypes.SessionID CallSpec sdktypes.SessionCallSpec Executors *sdkexecutor.Executors // needed for session specific calls (global modules, script functions). }
type Calls ¶
type Calls interface { StartWorkers(context.Context) error Call(ctx workflow.Context, params *CallParams) (sdktypes.SessionCallAttemptResult, error) }
type Config ¶
type Config struct { // common Worker temporalclient.WorkerConfig `koanf:"worker"` // override above GeneralWorker temporalclient.WorkerConfig `koanf:"general_worker"` UniqueWorker temporalclient.WorkerConfig `koanf:"unique_worker"` Activity temporalclient.ActivityConfig `koanf:"activity"` UniqueActivity temporalclient.ActivityConfig `koanf:"unique_activity"` ActivityHeartbeatInterval time.Duration `koanf:"activity_heartbeat_interval"` }
Click to show internal directories.
Click to hide internal directories.