Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadFunction ¶
type Manager ¶
type Manager interface { SaveConfig(name string, data []byte) error LoadConfig(configName string) ([]byte, error) GetInstance(configName string) HotConfig Register(configName string, defaultConfigValue any) }
func GetManager ¶ added in v2.0.14
type Option ¶
type Option func(*hotConfigManager)
func WithConfigStore ¶
func WithLoadFunction ¶
func WithLoadFunction(fn LoadFunction) Option
func WithSaveFunction ¶
func WithSaveFunction(fn SaveFunction) Option
type SaveFunction ¶
type SaveFunction func(configName string, data []byte) (Transactor, error)
Click to show internal directories.
Click to hide internal directories.