viperx

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func GetFloat64(l logrus.FieldLogger, key string, fallback float64, deprecated ...string) float64

GetFloat64 returns a float64 value from viper config or the fallback value.

func GetInt

func GetInt(l logrus.FieldLogger, key string, fallback int, deprecated ...string) int

GetInt returns an int value from viper config or the fallback value.

func GetString

func GetString(l logrus.FieldLogger, key string, fallback string, deprecated ...string) string

GetString returns a string 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.

Jump to

Keyboard shortcuts

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