Documentation
¶
Index ¶
- Constants
- type Engine
- func (e *Engine) ExecRule(rule *rules.Rule, event *rules.Event) *rules.EvalResult
- func (e *Engine) FindRules(topic string) []*rules.Rule
- func (e *Engine) OnStats(interval time.Duration, fn func(stats *EngineStats))
- func (e *Engine) ProcessEvents(schedulerPoolURL string) chan *rules.EvalResult
- func (e *Engine) SetFuncs(funcs rules.FuncMap)
- type EngineStats
Constants ¶
View Source
const (
RULES_EXEC_ERROR = "RULES_EXEC_ERROR"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { sync.Mutex Repo repo.RuleRepo Commands chan *rules.Event Events chan *rules.Event // contains filtered or unexported fields }
func NewRuleEngine ¶
func (*Engine) OnStats ¶
func (e *Engine) OnStats(interval time.Duration, fn func(stats *EngineStats))
func (*Engine) ProcessEvents ¶ added in v0.1.4
func (e *Engine) ProcessEvents(schedulerPoolURL string) chan *rules.EvalResult
type EngineStats ¶
Click to show internal directories.
Click to hide internal directories.