mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
@@ -38,3 +38,11 @@ func newInstanceWithManifest(m *manifest.Manifest) (*RuleChainInstance, error) {
|
||||
}
|
||||
return r, nil
|
||||
}
|
||||
// 获取规则实体指定节点
|
||||
func (rule *RuleChainInstance) GetNode(nodeId string) (nodes.Node, error) {
|
||||
if node,ok := rule.nodes[nodeId];ok {
|
||||
return node,nil
|
||||
}else {
|
||||
return nil,fmt.Errorf("节点不存在")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user