Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { RuleExecutor API api.Interface Pipeline pipeline.Interface DingTalk dingtalkworknotice.Interface }
type ExprExecutor ¶
func (*ExprExecutor) AddExecutionRecords ¶
func (e *ExprExecutor) AddExecutionRecords(r *RecordConfig) error
func (*ExprExecutor) BuildRuleEnv ¶
func (e *ExprExecutor) BuildRuleEnv(req *rulepb.FireRequest) (*RuleEnv, error)
func (*ExprExecutor) Exec ¶
func (e *ExprExecutor) Exec(r *RuleConfig, env map[string]interface{}) (bool, error)
type RecordConfig ¶
type RuleConfig ¶
type RuleConfig struct { RuleID string Code string Action db.ActionParams Actor string }
type RuleEnv ¶
type RuleEnv struct { Configs []*RuleConfig Env map[string]interface{} }
type RuleExecutor ¶
type RuleExecutor interface { Exec(r *RuleConfig, env map[string]interface{}) (bool, error) BuildRuleEnv(req *rulepb.FireRequest) (*RuleEnv, error) AddExecutionRecords(c *RecordConfig) error }
Click to show internal directories.
Click to hide internal directories.