Documentation ¶
Index ¶
- type Config
- func (c *Config) Get(s string) interface{}
- func (c *Config) GetBool(s string) bool
- func (c *Config) GetDuration(s string) time.Duration
- func (c *Config) GetInt(s string) int
- func (c *Config) GetString(s string) string
- func (c *Config) GetStringMapString(s string) map[string]string
- func (c *Config) GetStringSlice(s string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a wrapper around a viper config
func (*Config) GetDuration ¶
GetDuration returns a duration from the inner config
func (*Config) GetStringMapString ¶
GetStringMapString returns a string map string from the inner config
func (*Config) GetStringSlice ¶
GetStringSlice returns a string slice from the inner config
Click to show internal directories.
Click to hide internal directories.