Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AddConfigPath = viper.AddConfigPath // func AddConfigPath(in string)
var AddRemoteProvider = viper.AddRemoteProvider // func AddRemoteProvider(provider, endpoint, path string) error
var Get = viper.Get // func Get(key string) interface{}
func AddSecureRemoteProvider(provider, endpoint, path, secretkeyring string) error func AllKeys() []string func AllSettings() map[string]interface{} func AutomaticEnv() func BindEnv(input ...string) error func BindFlagValue(key string, flag FlagValue) error func BindFlagValues(flags FlagValueSet) error func BindPFlag(key string, flag *pflag.Flag) error func BindPFlags(flags *pflag.FlagSet) error func ClearConfigSettings() func ClearPFlag(key string) func ConfigFileUsed() string func Debug() func Desc(key string) (string, UseLevel, int) func Filesys() afero.Fs
var GetConfig = viper.GetViper // func GetViper() *Viper
func SetDesc(key string, desc string, useLevel UseLevel, useScope int) func SetEnvKeyReplacer(r *strings.Replacer) func SetEnvPrefix(in string) func SetFilesys(fs afero.Fs) func SetFs(fs afero.Fs) func SetPFlags(flags *pflag.FlagSet) (err error) func SetTypeByDefaultValue(enable bool) func Unmarshal(rawVal interface{}) error func UnmarshalKey(key string, rawVal interface{}) error func WatchConfig() func WatchRemoteConfig() error type ConfigFileNotFoundError func (fnfe ConfigFileNotFoundError) Error() string type ConfigParseError func (pe ConfigParseError) Error() string type FlagValue type FlagValueSet type RemoteConfigError func (rce RemoteConfigError) Error() string type RemoteProvider type UnsupportedConfigError func (str UnsupportedConfigError) Error() string type UnsupportedRemoteProviderError func (str UnsupportedRemoteProviderError) Error() string type UseLevel func UseLevelString2UseLevel(s string) UseLevel func (ul UseLevel) String() string type Viper func GetSingleton() *Viper
var GetInt = viper.GetInt // func GetInt(key string) int
func GetBool(key string) bool func GetDuration(key string) time.Duration func GetFloat64(key string) float64
var GetString = viper.GetString // func GetString(key string) string
func GetInt64(key string) int64 func GetSizeInBytes(key string) uint
var IsSet = viper.IsSet // func IsSet(key string) bool
func GetStringMap(key string) map[string]interface{} func GetStringMapString(key string) map[string]string func GetStringMapStringSlice(key string) map[string][]string func GetStringSlice(key string) []string func GetTime(key string) time.Time func InConfig(key string) bool
var Set = viper.Set // func Set(key string, value interface{})
func MergeConfig(in io.Reader) error func MergeInConfig() error func OnConfigChange(run func(in fsnotify.Event)) func ReadConfig(in io.Reader) error func ReadInConfig() error func ReadRemoteConfig() error func RegisterAlias(alias string, key string) func Reset()
var SetDefault = viper.SetDefault // func SetDefault(key string, value interface{})
func SetConfigFile(in string) func SetConfigName(in string) func SetConfigType(in string)
Functions ¶
This section is empty.
Types ¶
This section is empty.