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 Debug bool ForceInternal bool CallSpec sdktypes.SessionCallSpec Poller sdktypes.Value // TODO: need to be in Call. Executors *sdkexecutor.Executors // HACK: needed for session specific calls (builtins, 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 {
Temporal TemporalConfig `koanf:"temporal"`
}
type TemporalConfig ¶
type TemporalConfig struct { ActivityHeartbeatInterval time.Duration `koanf:"activity_heartbeat_interval"` ActivityHeartbeatTimeout time.Duration `koanf:"activity_heartbeat_timeout"` ActivityScheduleToCloseTimeout time.Duration `koanf:"activity_schedule_to_close_timeout"` ActivityStartToCloseTimeout time.Duration `koanf:"activity_start_to_close_timeout"` LocalScheduleToCloseTimeout time.Duration `koanf:"local_schedule_to_close_timeout"` Worker worker.Options }
Click to show internal directories.
Click to hide internal directories.