Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLoader ¶
type ConfigLoader[Config any] struct { // contains filtered or unexported fields }
func NewConfigLoader ¶
func NewConfigLoader[Config any](path string) (ret *ConfigLoader[Config], err error)
This might return an error and a valid config loader.
func (*ConfigLoader[Config]) Close ¶
func (b *ConfigLoader[Config]) Close()
func (*ConfigLoader[Config]) Config ¶
func (b *ConfigLoader[Config]) Config() (conf *Config)
func (*ConfigLoader[Config]) Load ¶
func (b *ConfigLoader[Config]) Load(path string) error
func (*ConfigLoader[Config]) SetConfigPath ¶
func (b *ConfigLoader[Config]) SetConfigPath(path string) error
func (*ConfigLoader[Config]) Subscribe ¶
func (b *ConfigLoader[Config]) Subscribe() chan Config
Click to show internal directories.
Click to hide internal directories.