Documentation
¶
Index ¶
- func GetBool(l logrus.FieldLogger, key string, deprecated ...string) bool
- func GetDuration(l logrus.FieldLogger, key string, fallback time.Duration, deprecated ...string) time.Duration
- func GetFloat64(l logrus.FieldLogger, key string, fallback float64, deprecated ...string) float64
- func GetInt(l logrus.FieldLogger, key string, fallback int, deprecated ...string) int
- func GetString(l logrus.FieldLogger, key string, fallback string, deprecated ...string) string
- func GetStringSlice(l logrus.FieldLogger, key string, fallback []string, deprecated ...string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBool ¶
func GetBool(l logrus.FieldLogger, key string, deprecated ...string) bool
GetBool returns a bool from viper config or false.
func GetDuration ¶
func GetDuration(l logrus.FieldLogger, key string, fallback time.Duration, deprecated ...string) time.Duration
GetDuration returns a duration from viper config or the fallback value.
func GetFloat64 ¶
GetFloat64 returns a float64 value from viper config or the fallback value.
func GetStringSlice ¶
func GetStringSlice(l logrus.FieldLogger, key string, fallback []string, deprecated ...string) []string
GetStringSlice returns a string slice from viper config or the fallback value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.