config

package
v0.0.0-...-6637160 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddConfigPath = viper.AddConfigPath // func AddConfigPath(in string)
View Source
var AddRemoteProvider = viper.AddRemoteProvider // func AddRemoteProvider(provider, endpoint, path string) error
View Source
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

View Source
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

View Source
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

View Source
var GetString = viper.GetString // func GetString(key string) string

func GetInt64(key string) int64 func GetSizeInBytes(key string) uint

View Source
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

View Source
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()

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL