config

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() *viper.Viper

Config return the config instance

func GetBool

func GetBool(c *viper.Viper, key string, fallback bool) func() bool

func GetDuration added in v0.2.7

func GetDuration(c *viper.Viper, key string, fallback time.Duration) func() time.Duration

func GetFloat64 added in v0.2.7

func GetFloat64(c *viper.Viper, key string, fallback float64) func() float64

func GetInt

func GetInt(c *viper.Viper, key string, fallback int) func() int

func GetInt32 added in v0.2.7

func GetInt32(c *viper.Viper, key string, fallback int32) func() int32

func GetInt64 added in v0.2.7

func GetInt64(c *viper.Viper, key string, fallback int64) func() int64

func GetIntSlice added in v0.2.7

func GetIntSlice(c *viper.Viper, key string, fallback []int) func() []int

func GetString

func GetString(c *viper.Viper, key, fallback string) func() string

func GetStringMap added in v0.2.7

func GetStringMap(c *viper.Viper, key string, fallback map[string]interface{}) func() map[string]interface{}

func GetStringMapString added in v0.2.7

func GetStringMapString(c *viper.Viper, key string, fallback map[string]string) func() map[string]string

func GetStringMapStringSlice added in v0.2.7

func GetStringMapStringSlice(c *viper.Viper, key string, fallback map[string][]string) func() map[string][]string

func GetStringSlice

func GetStringSlice(c *viper.Viper, key string, fallback []string) func() []string

func GetStruct added in v0.2.7

func GetStruct(c *viper.Viper, key string, fallback interface{}) (func(v interface{}) error, error)

func GetTime added in v0.2.7

func GetTime(c *viper.Viper, key string, fallback time.Time) func() time.Time

func GetUint added in v0.2.7

func GetUint(c *viper.Viper, key string, fallback uint) func() uint

func GetUint32 added in v0.2.7

func GetUint32(c *viper.Viper, key string, fallback uint32) func() uint32

func GetUint64 added in v0.2.7

func GetUint64(c *viper.Viper, key string, fallback uint64) func() uint64

func MustGetBool

func MustGetBool(c *viper.Viper, key string, fallback bool) func() bool

func MustGetDuration added in v0.2.7

func MustGetDuration(c *viper.Viper, key string) func() time.Duration

func MustGetFloat64 added in v0.2.7

func MustGetFloat64(c *viper.Viper, key string) func() float64

func MustGetInt

func MustGetInt(c *viper.Viper, key string) func() int

func MustGetInt32 added in v0.2.7

func MustGetInt32(c *viper.Viper, key string) func() int32

func MustGetInt64 added in v0.2.7

func MustGetInt64(c *viper.Viper, key string) func() int64

func MustGetIntSlice added in v0.2.7

func MustGetIntSlice(c *viper.Viper, key string) func() []int

func MustGetString

func MustGetString(c *viper.Viper, key string) func() string

func MustGetStringMap added in v0.2.7

func MustGetStringMap(c *viper.Viper, key string) func() map[string]interface{}

func MustGetStringMapString added in v0.2.7

func MustGetStringMapString(c *viper.Viper, key string) func() map[string]string

func MustGetStringMapStringSlice added in v0.2.7

func MustGetStringMapStringSlice(c *viper.Viper, key string) func() map[string][]string

func MustGetStringSlice added in v0.2.7

func MustGetStringSlice(c *viper.Viper, key string) func() []string

func MustGetTime added in v0.2.7

func MustGetTime(c *viper.Viper, key string) func() time.Time

func MustGetUint added in v0.2.7

func MustGetUint(c *viper.Viper, key string) func() uint

func MustGetUint32 added in v0.2.7

func MustGetUint32(c *viper.Viper, key string) func() uint32

func MustGetUint64 added in v0.2.7

func MustGetUint64(c *viper.Viper, key string) func() uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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