config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidExecutionModes = []string{"parallel", "sequential"}

ValidExecutionModes contains the list of supported execution modes

View Source
var ValidExecutors = []string{"local", "temporal"}
View Source
var ValidOutputFormats = []string{"json", "yaml", "plain"}

ValidOutputFormats contains the list of supported output formats

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging       LoggingConfig  `mapstructure:"logging"`
	ExecutionMode string         `mapstructure:"execution_mode"`
	Executor      string         `mapstructure:"executor"` // "local" or "temporal"
	Temporal      TemporalConfig `mapstructure:"temporal"`
}

Config holds all configuration settings

func Load

func Load(configPaths ...string) (*Config, error)

Load loads configuration from files and environment variables

type LoggingConfig

type LoggingConfig struct {
	Level      string `mapstructure:"level"`
	File       string `mapstructure:"file"`
	Format     string `mapstructure:"format"`
	Timestamps bool   `mapstructure:"timestamps"`
}

LoggingConfig holds logging-related configuration

type TemporalConfig

type TemporalConfig struct {
	Address          string `mapstructure:"address"`
	TaskQueue        string `mapstructure:"task_queue"`
	WorkflowIDPrefix string `mapstructure:"workflow_id_prefix"`
	Trigger          bool   `mapstructure:"trigger"`
}

TemporalConfig holds Temporal-specific configuration

Jump to

Keyboard shortcuts

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