Documentation ¶
Index ¶
- type ConfigTree
- func (c *ConfigTree) Add(ns []string, inNode Node)
- func (c *ConfigTree) Freeze()
- func (c *ConfigTree) Frozen() bool
- func (c *ConfigTree) Get(ns []string) Node
- func (c *ConfigTree) GetAll() map[string]Node
- func (c *ConfigTree) GobDecode(buf []byte) error
- func (c *ConfigTree) GobEncode() ([]byte, error)
- func (c *ConfigTree) MarshalJSON() ([]byte, error)
- func (c *ConfigTree) Print()
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigTree ¶
type ConfigTree struct { // Debug turns on verbose logging of the tree functions to stdout Debug bool // contains filtered or unexported fields }
ConfigTree struct type
func (*ConfigTree) Add ¶
func (c *ConfigTree) Add(ns []string, inNode Node)
Add adds a new tree node
func (*ConfigTree) Freeze ¶
func (c *ConfigTree) Freeze()
Freeze sets the ConfigTree's freezeFlag to true
func (*ConfigTree) Frozen ¶
func (c *ConfigTree) Frozen() bool
Frozen returns the bool value of ConfigTree freezeFlag
func (*ConfigTree) Get ¶
func (c *ConfigTree) Get(ns []string) Node
Get returns a tree node given the namespace
func (*ConfigTree) GetAll ¶
func (c *ConfigTree) GetAll() map[string]Node
func (*ConfigTree) GobDecode ¶
func (c *ConfigTree) GobDecode(buf []byte) error
GobDecode decodes the ConfigTree.
func (*ConfigTree) GobEncode ¶
func (c *ConfigTree) GobEncode() ([]byte, error)
GobEncode returns the encoded ConfigTree. Otherwise, an error is returned
func (*ConfigTree) MarshalJSON ¶
func (c *ConfigTree) MarshalJSON() ([]byte, error)
MarshalJSON marshals ConfigTree
Click to show internal directories.
Click to hide internal directories.