Documentation ¶
Index ¶
- type RuleAction
- type RuleEngine
- type RuleEngineBuilder
- func (builder *RuleEngineBuilder) Build(start string, stop string) *RuleEngine
- func (builder *RuleEngineBuilder) WithFlowTree(flowTree map[string][]string) *RuleEngineBuilder
- func (builder *RuleEngineBuilder) WithFlows(flowList ...*flows.Flow) *RuleEngineBuilder
- func (builder *RuleEngineBuilder) WithRuleActions(ruleList map[string][]string) *RuleEngineBuilder
- func (builder *RuleEngineBuilder) WithRules(ruleList ...flows.Rule) *RuleEngineBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleAction ¶
type RuleAction struct {
// contains filtered or unexported fields
}
func NewRuleAction ¶
func NewRuleAction(ruleName string, nextFlow string) RuleAction
type RuleEngine ¶
type RuleEngine struct {
// contains filtered or unexported fields
}
func BuildRuleEngine ¶
func BuildRuleEngine() *RuleEngine
func (*RuleEngine) Run ¶
func (engine *RuleEngine) Run(facts *flows.Facts)
type RuleEngineBuilder ¶
type RuleEngineBuilder struct {
// contains filtered or unexported fields
}
func NewRuleEngineBuilder ¶
func NewRuleEngineBuilder() *RuleEngineBuilder
func (*RuleEngineBuilder) Build ¶
func (builder *RuleEngineBuilder) Build(start string, stop string) *RuleEngine
func (*RuleEngineBuilder) WithFlowTree ¶
func (builder *RuleEngineBuilder) WithFlowTree(flowTree map[string][]string) *RuleEngineBuilder
func (*RuleEngineBuilder) WithFlows ¶
func (builder *RuleEngineBuilder) WithFlows(flowList ...*flows.Flow) *RuleEngineBuilder
func (*RuleEngineBuilder) WithRuleActions ¶
func (builder *RuleEngineBuilder) WithRuleActions(ruleList map[string][]string) *RuleEngineBuilder
func (*RuleEngineBuilder) WithRules ¶
func (builder *RuleEngineBuilder) WithRules(ruleList ...flows.Rule) *RuleEngineBuilder
Click to show internal directories.
Click to hide internal directories.