Documentation ¶
Overview ¶
Package nodetreemodel defines a model for the config using a tree of nodes
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
ErrNotFound is an error for when a key is not found
Functions ¶
Types ¶
type InnerNode ¶ added in v0.60.0
type InnerNode interface { Node HasChild(string) bool ChildrenKeys() []string Merge(InnerNode) error SetAt([]string, interface{}, model.Source) (bool, error) InsertChildNode(string, Node) DumpSettings(func(model.Source) bool) map[string]interface{} // contains filtered or unexported methods }
InnerNode represents an inner node in the config
type LeafNode ¶ added in v0.60.0
type LeafNode interface { Node Get() interface{} Source() model.Source SourceGreaterOrEqual(model.Source) bool }
LeafNode represents a leaf node of the config
type NodeTreeConfig ¶ added in v0.60.0
NodeTreeConfig is an interface that gives access to nodes
Click to show internal directories.
Click to hide internal directories.