Versions in this module Expand all Collapse all v0 v0.1.0 Sep 27, 2024 Changes in this version + func Compare(fact, value any) int + func Contains(fact, value any) bool + type Matcher struct + Evaluator interfaces.Evaluable + func (rm *Matcher) Execute(gate models.Gate, facts map[string]any, conditionals []models.Conditional) bool type Worker + Matcher interfaces.Matchable v0.0.2 Sep 12, 2024 v0.0.1 Sep 10, 2024 Changes in this version + type Comparator struct + Value T + func (fact Comparator[T]) Compare(value interfaces.Comparable) int + type Container struct + Value T + func (value Container[T]) Contains(fact interfaces.Containable) bool + type Evaluator struct + func (e *Evaluator) Evaluate(operator *models.Operator, fact, value any) bool + type RuleEvaluator struct + Evaluator interfaces.Evaluable + func (re *RuleEvaluator) Execute(ch chan<- bool, facts map[string]any, conditionals *[]models.Conditional) + type RuleMatch struct + RuleEvaluator *RuleEvaluator + func (rm *RuleMatch) AllTrue(main chan<- bool, facts map[string]any, conditionals *[]models.Conditional) + func (rm *RuleMatch) AnyTrue(main chan<- bool, facts map[string]any, conditionals *[]models.Conditional) + func (rm *RuleMatch) NoneTrue(main chan<- bool, facts map[string]any, conditionals *[]models.Conditional) + type Worker struct + Match interfaces.Matchable + func (w *Worker) Execute(rule *models.Rule, facts map[string]any) bool