Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRawConfigKeys ¶
Types ¶
type AbstractConfig ¶
type AbstractConfig[T AbstractItem] struct { Config map[string]T }
func ConfigFromAttributes ¶
func ConfigFromAttributes[T AbstractItem](attributes map[string]interface{}, defaultItem T) (*AbstractConfig[T], error)
ConfigFromAttributes - Merges given attributes into a usable config, all types are updated with the provided default config item
type AbstractItem ¶
type AbstractItem = any
type RawConfig ¶
type RawConfig = AbstractConfig[*RawConfigItem]
type RawConfigItem ¶
Click to show internal directories.
Click to hide internal directories.