Documentation
¶
Index ¶
- func Load(file interface{}, config interface{}) error
- func LoadWithCli(key, value string, config interface{}) error
- func LoadWithDefault(config interface{}) error
- func LoadWithEnv(key string, config interface{}) error
- func SetDefaultConfigPath(path string)
- type Configurator
- func (c *Configurator) Kernel() *viper.Viper
- func (c *Configurator) Load(file interface{}, config interface{}) error
- func (c *Configurator) LoadWithCli(key, value string, config interface{}) error
- func (c *Configurator) LoadWithDefault(config interface{}) error
- func (c *Configurator) LoadWithEnv(key string, config interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadWithCli ¶
func LoadWithDefault ¶
func LoadWithDefault(config interface{}) error
func LoadWithEnv ¶
func SetDefaultConfigPath ¶
func SetDefaultConfigPath(path string)
Types ¶
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Configurator
func (*Configurator) Kernel ¶
func (c *Configurator) Kernel() *viper.Viper
func (*Configurator) Load ¶
func (c *Configurator) Load(file interface{}, config interface{}) error
func (*Configurator) LoadWithCli ¶
func (c *Configurator) LoadWithCli(key, value string, config interface{}) error
func (*Configurator) LoadWithDefault ¶
func (c *Configurator) LoadWithDefault(config interface{}) error
func (*Configurator) LoadWithEnv ¶
func (c *Configurator) LoadWithEnv(key string, config interface{}) error
Click to show internal directories.
Click to hide internal directories.