Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 7 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](logger logr.Logger) (*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