Versions in this module Expand all Collapse all v1 v1.1.9 Oct 1, 2018 Changes in this version + var Registry = make(map[string]Setting) + var TestOpaque interface{} = testOpaqueType + func EncodeBool(b bool) string + func EncodeDuration(d time.Duration) string + func EncodeFloat(f float64) string + func EncodeInt(i int64) string + func Keys() (res []string) + func SetCanonicalValuesContainer(v *Values) + type BoolSetting struct + func RegisterBoolSetting(key, desc string, defaultValue bool) *BoolSetting + func (*BoolSetting) Typ() string + func (b *BoolSetting) Get(sv *Values) bool + func (b *BoolSetting) Override(sv *Values, v bool) + func (b *BoolSetting) String(sv *Values) string + func (i *BoolSetting) Hide() + func (i *BoolSetting) SetOnChange(sv *Values, fn func()) + func (i BoolSetting) Description() string + func (i BoolSetting) Hidden() bool + type ByteSizeSetting struct + func RegisterByteSizeSetting(key, desc string, defaultValue int64) *ByteSizeSetting + func RegisterValidatedByteSizeSetting(key, desc string, defaultValue int64, validateFn func(int64) error) *ByteSizeSetting + func (*ByteSizeSetting) Typ() string + func (b *ByteSizeSetting) String(sv *Values) string + func (i *ByteSizeSetting) Hide() + func (i *ByteSizeSetting) SetOnChange(sv *Values, fn func()) + func (i ByteSizeSetting) Description() string + func (i ByteSizeSetting) Hidden() bool + type DurationSetting struct + func RegisterDurationSetting(key, desc string, defaultValue time.Duration) *DurationSetting + func RegisterNonNegativeDurationSetting(key, desc string, defaultValue time.Duration) *DurationSetting + func RegisterValidatedDurationSetting(key, desc string, defaultValue time.Duration, ...) *DurationSetting + func (*DurationSetting) Typ() string + func (d *DurationSetting) Get(sv *Values) time.Duration + func (d *DurationSetting) Override(sv *Values, v time.Duration) + func (d *DurationSetting) String(sv *Values) string + func (d *DurationSetting) Validate(v time.Duration) error + func (i *DurationSetting) Hide() + func (i *DurationSetting) SetOnChange(sv *Values, fn func()) + func (i DurationSetting) Description() string + func (i DurationSetting) Hidden() bool + type EnumSetting struct + func RegisterEnumSetting(key, desc string, defaultValue string, enumValues map[int64]string) *EnumSetting + func (e *EnumSetting) ParseEnum(raw string) (int64, bool) + func (e *EnumSetting) Typ() string + func (i *EnumSetting) Hide() + func (i *EnumSetting) SetOnChange(sv *Values, fn func()) + func (i EnumSetting) Description() string + func (i EnumSetting) Hidden() bool + type FloatSetting struct + func RegisterFloatSetting(key, desc string, defaultValue float64) *FloatSetting + func RegisterNonNegativeFloatSetting(key, desc string, defaultValue float64) *FloatSetting + func RegisterValidatedFloatSetting(key, desc string, defaultValue float64, validateFn func(float64) error) *FloatSetting + func (*FloatSetting) Typ() string + func (f *FloatSetting) Get(sv *Values) float64 + func (f *FloatSetting) String(sv *Values) string + func (f *FloatSetting) Validate(v float64) error + func (i *FloatSetting) Hide() + func (i *FloatSetting) SetOnChange(sv *Values, fn func()) + func (i FloatSetting) Description() string + func (i FloatSetting) Hidden() bool + type IntSetting struct + func RegisterIntSetting(key, desc string, defaultValue int64) *IntSetting + func RegisterValidatedIntSetting(key, desc string, defaultValue int64, validateFn func(int64) error) *IntSetting + func (*IntSetting) Typ() string + func (i *IntSetting) Get(sv *Values) int64 + func (i *IntSetting) Hide() + func (i *IntSetting) Override(sv *Values, v int64) + func (i *IntSetting) SetOnChange(sv *Values, fn func()) + func (i *IntSetting) String(sv *Values) string + func (i *IntSetting) Validate(v int64) error + func (i IntSetting) Description() string + func (i IntSetting) Hidden() bool + type NoopUpdater struct + func (u NoopUpdater) ResetRemaining() + func (u NoopUpdater) Set(_, _, _ string) error + type Setting interface + Description func() string + Hidden func() bool + SetOnChange func(sv *Values, fn func()) + String func(sv *Values) string + Typ func() string + func Lookup(name string) (Setting, bool) + type StateMachineSetting struct + func RegisterStateMachineSetting(key, desc string, transformer TransformerFn) *StateMachineSetting + func (*StateMachineSetting) Typ() string + func (i *StateMachineSetting) Hide() + func (i *StateMachineSetting) SetOnChange(sv *Values, fn func()) + func (i StateMachineSetting) Description() string + func (i StateMachineSetting) Hidden() bool + func (s *StateMachineSetting) Get(sv *Values) string + func (s *StateMachineSetting) String(sv *Values) string + func (s *StateMachineSetting) Validate(sv *Values, old []byte, update *string) ([]byte, interface{}, error) + type StringSetting struct + func RegisterStringSetting(key, desc string, defaultValue string) *StringSetting + func RegisterValidatedStringSetting(key, desc string, defaultValue string, validateFn func(string) error) *StringSetting + func (*StringSetting) Typ() string + func (i *StringSetting) Hide() + func (i *StringSetting) SetOnChange(sv *Values, fn func()) + func (i StringSetting) Description() string + func (i StringSetting) Hidden() bool + func (s *StringSetting) Get(sv *Values) string + func (s *StringSetting) String(sv *Values) string + func (s *StringSetting) Validate(v string) error + type TransformerFn func(sv *Values, old []byte, update *string) (finalV []byte, finalObj interface{}, _ error) + type Updater interface + ResetRemaining func() + Set func(k, rawValue, valType string) error + func NewUpdater(sv *Values) Updater + type Values struct + func TODO() *Values + func (sv *Values) Init(opaque interface{}) + func (sv *Values) Opaque() interface{} Incompatible versions in this module v19.2.12+incompatible Jan 12, 2021