Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface { ConfigFileUsed() string Get(key string) interface{} GetBool(key string) bool GetInt(key string) int GetIntSlice(key string) []int GetInt32(key string) int32 GetInt64(key string) int64 GetUint(key string) uint GetUint32(key string) uint32 GetUint64(key string) uint64 GetFloat64(key string) float64 GetTime(key string) time.Time GetDuration(key string) time.Duration GetString(key string) string GetStringSlice(key string) []string GetStringMap(key string) map[string]interface{} GetStringMapString(key string) map[string]string GetStringMapStringSlice(key string) map[string][]string GetSizeInBytes(key string) uint UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error UnmarshalExact(rawVal interface{}, opts ...viper.DecoderConfigOption) error IsSet(key string) bool InConfig(key string) bool AllKeys() []string AllSettings() map[string]interface{} }
Provider defines a set of read-only methods for accessing the application
Click to show internal directories.
Click to hide internal directories.