Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("setting not found")
View Source
var ItemMap = make(map[string]UpdateableItem)
Functions ¶
func ClearCache ¶
func ClearCache()
func GetDefaultValue ¶
Types ¶
type GroupInfo ¶
type GroupInfo struct {
Path string `json:"path"`
Label string `json:"label"`
GroupOrder int `json:"order"`
Children []any `json:"children"`
// contains filtered or unexported fields
}
func (*GroupInfo) SortChildren ¶
func (o *GroupInfo) SortChildren()
type Item ¶
type Item[T any] struct { Label string `json:"label"` Key string `json:"key"` ItemOrder int `json:"order"` CurrValue T `json:"value"` DefaultValue T `json:"defaultValue"` // contains filtered or unexported fields }
func (*Item[T]) AfterUpdateHook ¶
func (o *Item[T]) AfterUpdateHook(f func())
func (*Item[T]) UpdateValueBytes ¶
func (*Item[T]) ValueBytes ¶
type Model ¶
type UpdateableItem ¶
Click to show internal directories.
Click to hide internal directories.