Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRuntimeSetting ¶
GetRuntimeSetting returns the value of a runtime configurable setting
func InitRuntimeSettings ¶
func InitRuntimeSettings() error
InitRuntimeSettings builds the map of runtime settings configurable at runtime.
func RuntimeSettings ¶
func RuntimeSettings() map[string]RuntimeSetting
RuntimeSettings returns all runtime configurable settings
func SetRuntimeSetting ¶
SetRuntimeSetting changes the value of a runtime configurable setting
Types ¶
type RuntimeSetting ¶
type RuntimeSetting interface { Get() (interface{}, error) Set(v interface{}) error Name() string Description() string Hidden() bool }
RuntimeSetting represents a setting that can be changed and read at runtime.
type RuntimeSettingResponse ¶
RuntimeSettingResponse is used to communicate settings config
type SettingNotFoundError ¶
type SettingNotFoundError struct {
// contains filtered or unexported fields
}
SettingNotFoundError is used to warn about non existing/not registered runtime setting
func (*SettingNotFoundError) Error ¶
func (e *SettingNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.