mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-24 11:28:40 +08:00
规则引擎
This commit is contained in:
23
pkg/rule_engine/nodes/enrichment_customer_attr_node.go
Normal file
23
pkg/rule_engine/nodes/enrichment_customer_attr_node.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package nodes
|
||||
|
||||
import "pandax/pkg/rule_engine/message"
|
||||
|
||||
type enrichmentCustomerNode struct {
|
||||
bareNode
|
||||
}
|
||||
|
||||
type enrichmentCustomerAttrNodeFactory struct{}
|
||||
|
||||
func (f enrichmentCustomerAttrNodeFactory) Name() string { return "EnrichmentCustomerNode" }
|
||||
func (f enrichmentCustomerAttrNodeFactory) Category() string { return NODE_CATEGORY_ENRICHMENT }
|
||||
func (f enrichmentCustomerAttrNodeFactory) Create(id string, meta Metadata) (Node, error) {
|
||||
labels := []string{"Success", "Failure"}
|
||||
node := &enrichmentCustomerNode{
|
||||
bareNode: newBareNode(f.Name(), id, meta, labels),
|
||||
}
|
||||
return decodePath(meta, node)
|
||||
}
|
||||
|
||||
func (n *enrichmentCustomerNode) Handle(msg message.Message) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user