mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
[feat]添加规则引擎debug功能
This commit is contained in:
@@ -18,7 +18,7 @@ type Factory interface {
|
||||
Name() string
|
||||
Category() string
|
||||
Labels() []string
|
||||
Create(id string, meta Metadata) (Node, error)
|
||||
Create(id string, meta Properties) (Node, error)
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -41,7 +41,7 @@ func RegisterFactory(f Factory) {
|
||||
}
|
||||
|
||||
// NewNode is the only way to create a new node
|
||||
func NewNode(nodeType string, id string, meta Metadata) (Node, error) {
|
||||
func NewNode(nodeType string, id string, meta Properties) (Node, error) {
|
||||
if f, found := allNodeFactories[nodeType]; found {
|
||||
return f.Create(id, meta)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user