Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v0.1.5"
Version -
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { Name string `yaml:"name"` CodeID string `yaml:"codeID"` TagID []string `yaml:"tagID"` // 这里属于标记,一个节点,可以有多个标记,至于标记的具体用途,可以自由定义 Info string `yaml:"info"` ParentID []string `yaml:"parentID"` // 因为这里可能是多个父节点的,所以下面children也应该用codeid来标识 Children []*Node `yaml:"-"` // 因为是多对多的,所以有parent就足以定位了,这里的Children是载入后再建立起的数据 Status *Status `yaml:"status"` }
type NodeMgr ¶
func LoadNodeMgr ¶
func (*NodeMgr) RebuildChildren ¶
func (mgr *NodeMgr) RebuildChildren()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.