ruleengine

package
v0.0.0-...-9fcd7d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis
cpu
net
ruleenginetest
end
one
sub
two

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL