123456789101112131415161718192021222324252627282930 |
- package ruleEngine
- import "fmt"
- // RelationType 默认节点关系
- type RelationType string
- const (
- Success RelationType = "Success" // 成功
- Failure RelationType = "Failure" // 失败
- True RelationType = "True" // 真
- False RelationType = "False" // 假
- )
- // RuleNodeInfo rule node info for output
- type RuleNodeInfo struct {
- ruleNodeId string
- ruleChainName string
- ruleNodeName string
- }
- func (r *RuleNodeInfo) String() string {
- return fmt.Sprintf("[RuleChain:%s|RuleNode:%s|RuleNodeId:%s]", r.ruleChainName, r.ruleNodeName, r.ruleNodeId)
- }
- type RuleNodeRelation struct {
- In string
- Out string
- RelationType RelationType
- }
|