Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeParsingFailed = 1 ErrCodeInvalidRuleEngineName = 2 ErrCodeInvalidTagName = 3 ErrCodeInvalidRuleEngineConfig = 4 ErrCodeDatastoreFailed = 5 ErrCodeRuleEngineNotFound = 6 ErrCodeTagNotFound = 7 ErrCodeTagDeleteNotAllowed = 8 ErrCodeTagDisableNotAllowed = 9 ErrCodeDefaultTagExistAndMustBeEnabled = 10 ErrCodeTagAlreadyExist = 11 ErrCodeEvaluationFailed = 12 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompleteRuleEngine ¶
type CompleteRuleEngine struct { Name string `json:"name"` DefaultTag string `json:"defaultTag"` Tags map[string]*TagResponse `json:"tags"` }
type EngineConfig ¶
type EngineConfig struct { ID primitive.ObjectID `bson:"_id"` EngineCoreConfig *ruleenginecore.RuleEngineConfig `bson:"config"` }
type Error ¶
type Error struct { ErrCode uint `json:"errCode"` ErrMsg string `json:"errMsg"` OtherMsg string `json:"otherMsg"` }
func NewErrorWithMsg ¶
type RuleEngine ¶
type TagResponse ¶
type TagResponse struct { IsEnable bool `json:"isEnable"` Config *ruleenginecore.RuleEngineConfig `json:"config"` }
Click to show internal directories.
Click to hide internal directories.