Versions in this module Expand all Collapse all v1 v1.3.0 Jun 27, 2021 Changes in this version + var RemoteConfig remoteConfigFactory + var SupportedExts []string = []string + var SupportedRemoteProviders []string = []string + func AddConfigPath(in string) + func AddRemoteProvider(provider, endpoint, path string) error + func AddSecureRemoteProvider(provider, endpoint, path, secretkeyring string) error + func AllKeys() []string + func AllSettings() map[string]interface + func AutomaticEnv() + func BindEnv(input ...string) (err error) + func BindPFlag(key string, flag *pflag.Flag) (err error) + func BindPFlags(flags *pflag.FlagSet) (err error) + func ConfigFileUsed() string + func Debug() + func Get(key string) interface + func GetBool(key string) bool + func GetDuration(key string) time.Duration + func GetFloat64(key string) float64 + func GetInt(key string) int + func GetSizeInBytes(key string) uint + func GetString(key string) string + 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 + func IsSet(key string) bool + func ReadConfig(in io.Reader) error + func ReadInConfig() error + func ReadRemoteConfig() error + func RegisterAlias(alias string, key string) + func Reset() + func Set(key string, value interface{}) + func SetConfigFile(in string) + func SetConfigName(in string) + func SetConfigType(in string) + func SetDefault(key string, value interface{}) + func SetEnvKeyReplacer(r *strings.Replacer) + func SetEnvPrefix(in string) + func SetTypeByDefaultValue(enable bool) + func Unmarshal(rawVal interface{}) error + func UnmarshalKey(key string, rawVal interface{}) error + func WatchRemoteConfig() error + type ConfigFileNotFoundError struct + func (fnfe ConfigFileNotFoundError) Error() string + type ConfigParseError struct + func (pe ConfigParseError) Error() string + type RemoteConfigError string + func (rce RemoteConfigError) Error() string + type RemoteProvider interface + Endpoint func() string + Path func() string + Provider func() string + SecretKeyring func() string + type UnsupportedConfigError string + func (str UnsupportedConfigError) Error() string + type UnsupportedRemoteProviderError string + func (str UnsupportedRemoteProviderError) Error() string + type Viper struct + func New() *Viper + func (v *Viper) AddConfigPath(in string) + func (v *Viper) AddRemoteProvider(provider, endpoint, path string) error + func (v *Viper) AddSecureRemoteProvider(provider, endpoint, path, secretkeyring string) error + func (v *Viper) AllKeys() []string + func (v *Viper) AllSettings() map[string]interface{} + func (v *Viper) AutomaticEnv() + func (v *Viper) BindEnv(input ...string) (err error) + func (v *Viper) BindPFlag(key string, flag *pflag.Flag) (err error) + func (v *Viper) BindPFlags(flags *pflag.FlagSet) (err error) + func (v *Viper) ConfigFileUsed() string + func (v *Viper) Debug() + func (v *Viper) Get(key string) interface{} + func (v *Viper) GetBool(key string) bool + func (v *Viper) GetDuration(key string) time.Duration + func (v *Viper) GetFloat64(key string) float64 + func (v *Viper) GetInt(key string) int + func (v *Viper) GetSizeInBytes(key string) uint + func (v *Viper) GetString(key string) string + func (v *Viper) GetStringMap(key string) map[string]interface{} + func (v *Viper) GetStringMapString(key string) map[string]string + func (v *Viper) GetStringMapStringSlice(key string) map[string][]string + func (v *Viper) GetStringSlice(key string) []string + func (v *Viper) GetTime(key string) time.Time + func (v *Viper) InConfig(key string) bool + func (v *Viper) IsSet(key string) bool + func (v *Viper) ReadConfig(in io.Reader) error + func (v *Viper) ReadInConfig() error + func (v *Viper) ReadRemoteConfig() error + func (v *Viper) RegisterAlias(alias string, key string) + func (v *Viper) Set(key string, value interface{}) + func (v *Viper) SetConfigFile(in string) + func (v *Viper) SetConfigName(in string) + func (v *Viper) SetConfigType(in string) + func (v *Viper) SetDefault(key string, value interface{}) + func (v *Viper) SetEnvKeyReplacer(r *strings.Replacer) + func (v *Viper) SetEnvPrefix(in string) + func (v *Viper) SetTypeByDefaultValue(enable bool) + func (v *Viper) Unmarshal(rawVal interface{}) error + func (v *Viper) UnmarshalKey(key string, rawVal interface{}) error + func (v *Viper) WatchRemoteConfig() error