Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionFunc ¶
ActionFunc defines a function type for actions with support for dependencies and context
type Option ¶
type Option func(*execOptions)
Option defines a functional option for configuring rule execution
func WithAtomic ¶
WithAtomic sets atomic execution: the rule execution stops on the first error
func WithReturnErrors ¶
WithReturnErrors enables error return via channel
type Rule ¶
Rule defines the structure for a rule with a condition, action, and an optional next rule
type RuleEngine ¶
type RuleEngine struct {
// contains filtered or unexported fields
}
RuleEngine manages the execution of rules
func NewRuleEngine ¶
func NewRuleEngine(storage Storage, decl ...*exprpb.Decl) (*RuleEngine, error)
NewRuleEngine creates a new instance of RuleEngine
func (*RuleEngine) ExecuteRules ¶
func (re *RuleEngine) ExecuteRules(ctx context.Context, inputData map[string]interface{}, opts ...Option) <-chan error
ExecuteRules executes the rules with given input data, context, and options
Click to show internal directories.
Click to hide internal directories.