Documentation
¶
Overview ¶
Package workflows is the config surface for the workflow (orchestration) layer: the per-workflow operation timeout applied through workflow.Builder.WithTimeout. Default is no timeout. Load reads the section from a ConfigLoader.
Index ¶
Constants ¶
View Source
const SectionKey = "workflows"
SectionKey is the config key the workflow section lives under.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Timeout is the per-workflow operation timeout (0 = no timeout, the default).
Timeout time.Duration `mapstructure:"timeout"`
}
Config tunes the workflow layer.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the workflow default: no per-workflow timeout.
func Load ¶ added in v0.3.2
func Load(loader interfaces.ConfigLoader) (Config, error)
Load reads the workflows section from loader over DefaultConfig(): an absent section keeps the default, and a section that fails to decode or validate is returned as CodeInvalidInput.
Click to show internal directories.
Click to hide internal directories.