Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFile = errors.New("config file is not a regular file")
View Source
var ErrInvalidFileName = errors.New("invalid file name")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager[T any] struct { // contains filtered or unexported fields }
func (*Manager[T]) Config ¶
func (c *Manager[T]) Config() *T
Config thread safe fetch of config, use this if using the watcher or to make sure that the parser is done after a change.
func (*Manager[T]) Load ¶
Load loads the configuration from disk. If Watch is set up the file will be automatically be loaded if updated.
Click to show internal directories.
Click to hide internal directories.