Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface {
Read() (map[string]map[string]any, error)
Write(data map[string]any, host string) error
}
Source is the source from which config is loaded.
func NewFileSource ¶
NewFileSource returns a new fileSource.
type SourceType ¶
type SourceType int
SourceType how to store variable
const ( // MemorySource store variable in memory MemorySource SourceType = iota // FileSource store variable in file FileSource SourceType = iota )
Click to show internal directories.
Click to hide internal directories.