Documentation ¶
Index ¶
- func Exists(key string) bool
- func GetBool(key string, defaultValue bool) bool
- func GetDuration(key string, defaultDuration time.Duration) time.Duration
- func GetInt(key string, defaultNumber int) int
- func GetString(key, defaultValue string) string
- func GetStrings(key string, defaultValues []string) []string
- func GetUint(key string, defaultNumber uint) uint
- type Configurator
- type IConfigurator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
GetDuration provides additional valiation on top of the standard library because Viper returned zero duraction which could cause significant performance issues
func GetStrings ¶
GetStrings gets a list of values
Types ¶
type Configurator ¶
Configurator sets up configuration in production
func NewConfigurator ¶
func NewConfigurator(env, location string, fs afero.Fs) *Configurator
NewConfigurator gets a new production configurator
type IConfigurator ¶
type IConfigurator interface {
Load()
}
IConfigurator interface for injectiong configuration set up
Click to show internal directories.
Click to hide internal directories.