Documentation ¶
Index ¶
- type Config
- func (c *Config) GetBoolValue(key string, defaults bool) bool
- func (c *Config) GetFloat64Value(key string, defaults float64) float64
- func (c *Config) GetIntSliceValue(key string, defaults []int) []int
- func (c *Config) GetIntValue(key string, defaults int) int
- func (c *Config) GetStringIntMapValue(key string, defaults map[string]int) map[string]int
- func (c *Config) GetStringSliceValue(key string, defaults []string) []string
- func (c *Config) GetStringStringMapValue(key string, defaults map[string]string) map[string]string
- func (c *Config) GetValue(key string, defaults string) string
- func (c *Config) SetValue(key string, value interface{}) error
- type LoadFromDBError
- type Reborn
- type SyncDefaultsToDBError
- type UnsupportedValueTypeError
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
}
func (*Config) GetFloat64Value ¶
func (*Config) GetIntSliceValue ¶
func (*Config) GetStringIntMapValue ¶
func (*Config) GetStringSliceValue ¶
func (*Config) GetStringStringMapValue ¶
type LoadFromDBError ¶
type LoadFromDBError struct {
// contains filtered or unexported fields
}
func (LoadFromDBError) Error ¶
func (l LoadFromDBError) Error() string
type Reborn ¶
type Reborn struct { *Config // contains filtered or unexported fields }
func NewWithDefaults ¶
func (*Reborn) SetAutoReloadDuration ¶
func (*Reborn) StartAutoReload ¶
func (r *Reborn) StartAutoReload()
func (*Reborn) StopAutoReload ¶
func (r *Reborn) StopAutoReload()
type SyncDefaultsToDBError ¶
type SyncDefaultsToDBError struct {
// contains filtered or unexported fields
}
func (SyncDefaultsToDBError) Error ¶
func (s SyncDefaultsToDBError) Error() string
type UnsupportedValueTypeError ¶
type UnsupportedValueTypeError struct {
Value interface{}
}
func (UnsupportedValueTypeError) Error ¶
func (u UnsupportedValueTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.