workflows

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 3 Imported by: 0

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.

func (Config) Validate

func (c Config) Validate() error

Validate rejects a negative timeout.

Jump to

Keyboard shortcuts

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