Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegatorCfg ¶
type DelegatorCfg struct {
Target string `json:"target"` // 委托对象,可以为空,为空则使用root的委托对象
Method string `json:"method"` // 委托方法
Script string `json:"script"` // 委托脚本
}
DelegatorCfg 委托配置
type NodeCfg ¶
type NodeCfg struct {
ID string `json:"id"` // 唯一ID
Name string `json:"name"` // 节点名
Category string `json:"category"` // 类型
Title string `json:"title"` // 描述
Children []string `json:"children"` // 孩子节点
Properties json.RawMessage `json:"properties"` // 自定义属性,须由子类自行解析
Delegator DelegatorCfg `json:"delegator"` // 委托配置
}
NodeCfg 节点配置,也是默认解析器所能解析的格式
Click to show internal directories.
Click to hide internal directories.