Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator struct {
Environment string
// contains filtered or unexported fields
}
func (*Configurator) LoadConfiguration ¶
func (cfg *Configurator) LoadConfiguration(output any) error
LoadConfiguration loads configuration files into an interface based on the environment
func (*Configurator) LoadEnvVars ¶
func (cfg *Configurator) LoadEnvVars(output any) error
LoadEnvVars loads the environment variables into an interface
func (*Configurator) LoadEnvVarsAndConfig ¶
func (cfg *Configurator) LoadEnvVarsAndConfig(envVarsOutput, configOutput any) error
func (*Configurator) LoadEnvVarsFromFile ¶
func (cfg *Configurator) LoadEnvVarsFromFile(output any) error
LoadEnvVarsFromFile loads the environment variables from a file into an interface
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithConfigPath ¶
func WithEnvPath ¶
func WithOptionalEnv ¶
func WithRequiredEnv ¶
Click to show internal directories.
Click to hide internal directories.