Documentation ¶
Index ¶
- Constants
- type Node
- func (n *Node) AddChild(nn *Node)
- func (n *Node) AddNewChild(id string)
- func (n *Node) Child(id string) *Node
- func (n *Node) ChildByPath(path ...string) (*Node, error)
- func (n *Node) DeletePath(path ...string)
- func (n *Node) Map() map[string]interface{}
- func (n *Node) MarshalJSON() ([]byte, error)
- func (n *Node) SetChildByPath(nn *Node, path ...string)
- func (n *Node) SetStatus(values map[string]interface{}, recursive bool)
- func (n *Node) SetValue(v interface{}) error
- func (n *Node) Status() map[string]interface{}
- func (n *Node) String() string
- func (n *Node) UnmarshalJSON(b []byte) error
- func (n *Node) Value() *Value
- func (n *Node) Version() (uint64, error)
- type Tree
- func (tree *Tree) DeleteNode(path ...string) error
- func (tree *Tree) NewNode(id string, path ...string)
- func (tree *Tree) Node(path ...string) (*Node, error)
- func (tree *Tree) NodeStatus(path ...string) (map[string]interface{}, error)
- func (tree *Tree) SetNodeStatus(values map[string]interface{}, recursive bool, bubbleUp bool, path ...string) error
- func (tree *Tree) String() string
- func (tree *Tree) Version() uint64
- type Value
Constants ¶
View Source
const ( BoolType = 0 + iota FloatType MapType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
func (*Node) AddNewChild ¶
func (*Node) DeletePath ¶
func (*Node) MarshalJSON ¶
func (*Node) SetChildByPath ¶
func (*Node) UnmarshalJSON ¶
UnmarshalJSON constructs a Node from it's JSON encoded value. A Node created this way is not necessarily ready to be used on a Tree.
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func (*Value) MarshalJSON ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.