Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(loader ConfigurationLoader, fs afero.Fs, configFile string) error
Load function is responsible to load configuration from a file
func Unmarshal ¶
func Unmarshal(unmarshaler ConfigurationUnmarshaler) (configuration.Configuration, error)
Unmarshal function is responsible to unmarshal configuration
Types ¶
type ConfigurationLoader ¶
type ConfigurationLoader interface { ReadInConfig() error SetConfigFile(file string) SetFs(afero.Fs) }
ConfigurationLoader interface is an interface to load configuration
type ConfigurationUnmarshaler ¶
type ConfigurationUnmarshaler interface {
Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error
}
ConfigurationUnmarshaler interface is an interface to unmarshal configuration
Click to show internal directories.
Click to hide internal directories.