Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) Has(name string) bool
- func (c *Config) LastError(name string) error
- func (c *Config) List() []map[string]string
- func (c *Config) Register(name string, description string, defaultValue string, ...)
- func (c *Config) Set(name string, value string)
- func (c *Config) SetTemporarily(name string, value string, duration time.Duration)
- func (c *Config) String() string
- func (c *Config) Unset(name string)
- func (c *Config) Value(name string) string
- type Parameter
- type TemporalValue
Constants ¶
View Source
const CheckExpiredTemporalValuesPeriod = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a storage for all runtime parameters.
func (*Config) Set ¶
Set updates a value of the parameter by its name. Deletes a temporal value if set.
func (*Config) SetTemporarily ¶
type Parameter ¶
type Parameter struct {
// contains filtered or unexported fields
}
Parameter is a runtime configuration parameter.
type TemporalValue ¶
type TemporalValue struct {
// contains filtered or unexported fields
}
TemporalValue is a value for parameter that will expire in the future.
Click to show internal directories.
Click to hide internal directories.