Documentation ¶
Index ¶
- type Config
- func (c Config) GetBool(key string) (bool, error)
- func (c Config) GetBoolOr(key string, defaultBool bool) bool
- func (c Config) GetFloat64(key string) (float64, error)
- func (c Config) GetFloat64Or(key string, defaultFloat64 float64) float64
- func (c Config) GetInt(key string) (int, error)
- func (c Config) GetInt64(key string) (int64, error)
- func (c Config) GetInt64Or(key string, defaultInt64 int64) int64
- func (c Config) GetIntOr(key string, defaultInt int) int
- func (c Config) GetString(key string) (string, error)
- func (c Config) GetStringOr(key, defaultString string) string
- func (c Config) MustGetBool(key string) bool
- func (c Config) MustGetFloat64(key string) float64
- func (c Config) MustGetInt(key string) int
- func (c Config) MustGetInt64(key string) int64
- func (c Config) MustGetString(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config caches and retrieves configurations from the environment
func (Config) GetFloat64 ¶
GetFloat64 retrieves the configured float64
func (Config) GetFloat64Or ¶
GetFloat64Or retrieves the configured float64 or the provided default
func (Config) GetInt64Or ¶
GetInt64Or retrieves the configured int64 or the provided default
func (Config) GetStringOr ¶
GetStringOr retrieves the configured string or the provided default
func (Config) MustGetBool ¶
MustGetBool retrieves the configured bool or panics if missing or malformed
func (Config) MustGetFloat64 ¶
MustGetFloat64 retrieves the configured float64 or panics if missing or malformed
func (Config) MustGetInt ¶
MustGetInt retrieves the configured int or panics
func (Config) MustGetInt64 ¶
MustGetInt64 retrieves the configured int64 or panics if missing or malformed
func (Config) MustGetString ¶
MustGetString retrieves the configured string or panics if undefined