config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix = "ARCANE_OPERATOR_" // var names will be ARCANE_OPERATOR__MY_ENV_VAR or ARCANE_OPERATOR__SECTION1__SECTION2__MY_ENV_VAR
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig[T any](ctx context.Context) (*T, error)

Types

type AppConfig

type AppConfig struct {

	// ProbesConfiguration holds the configuration for health probes.
	ProbesConfiguration health.ProbesConfig `mapstructure:"probes,omitempty"`

	// PeriodicMetricsReporterConfiguration holds the configuration for periodic metrics reporting.
	PeriodicMetricsReporterConfiguration telemetry.PeriodicMetricsReporterConfig `mapstructure:"periodic-metrics-reporter,omitempty"`

	// Telemetry holds the telemetry configuration settings.
	Telemetry telemetry.Config `mapstructure:"telemetry,omitempty"`
}

AppConfig holds the application configuration settings.

Jump to

Keyboard shortcuts

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