Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type NodeManager ¶
type NodeManager struct {
// contains filtered or unexported fields
}
NodeManager manages a list of nodes in memory.
func NewNodeManager ¶
func NewNodeManager(p string) *NodeManager
NewNodeManager returns an empty NodeManager.
func (*NodeManager) All ¶
func (m *NodeManager) All() []*Node
All returns the list of all the Nodes in the NodeManager.
func (*NodeManager) Find ¶
func (m *NodeManager) Find(Name string) (*Node, bool)
Find returns the Node with the given name in the NodeManager and a boolean indicating if the id was found.
func (*NodeManager) Save ¶
func (m *NodeManager) Save(node *Node) error
Save saves the given Node in the NodeManager.
Click to show internal directories.
Click to hide internal directories.