Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigurationFromEnv ¶
func LoadConfigurationFromEnv(env EnvConfiguration) (*viper.Viper, error)
func LoadConfigurationFromFile ¶
func LoadConfigurationFromFile(c FileConfiguration) *viper.Viper
Types ¶
type EnvConfiguration ¶
type EnvConfiguration struct {
// contains filtered or unexported fields
}
func NewConfigurationFromEnv ¶
func NewConfigurationFromEnv(prefix string, keys []string) EnvConfiguration
type EnvFlagParams ¶ added in v0.2.2
func (EnvFlagParams) GetEnvFlag ¶ added in v0.2.2
func (p EnvFlagParams) GetEnvFlag() EnvFlags
type EnvFlags ¶
func (EnvFlags) GetEnvConfiguration ¶
func (f EnvFlags) GetEnvConfiguration() EnvConfiguration
type FileConfiguration ¶
type FileConfiguration struct {
// contains filtered or unexported fields
}
func NewFileConfiguration ¶
func NewFileConfiguration(file string, searchPaths []string) FileConfiguration
func (FileConfiguration) GetViperConfig ¶
func (f FileConfiguration) GetViperConfig() (string, string)
type FileFlags ¶
func (FileFlags) GetFileConfiguration ¶
func (f FileFlags) GetFileConfiguration() FileConfiguration
type Params ¶ added in v0.2.2
type Params struct { File flagParams.StringVar SearchPaths flagParams.StringSliceVar Env EnvFlagParams }
Click to show internal directories.
Click to hide internal directories.