Documentation
¶
Index ¶
- Constants
- func New(opts Options) (config.Handler, error)
- type Options
- type Viper
- func (v *Viper) GetAll(result interface{}) error
- func (v *Viper) GetKey(key string) string
- func (v *Viper) GetObject(key string, result interface{}) error
- func (v *Viper) Is(key string) bool
- func (v *Viper) SetKey(key string, value string)
- func (v *Viper) SetObject(key string, value interface{}) error
Constants ¶
View Source
const ( // ViperKey corresponds to viper configuration ViperKey = "viper" // FilePath the path to store the config file FilePath = "filepath" // FileType the type of the config file FileType = "filetype" // FileName the name of the config file FileName = "filename" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Viper ¶
type Viper struct {
// contains filtered or unexported fields
}
Viper implements the config interface Handler for a Viper configuration registry.
Click to show internal directories.
Click to hide internal directories.