core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v0.1.0

func Compare(fact, value any) int

func Contains added in v0.1.0

func Contains(fact, value any) bool

Types

type Evaluator

type Evaluator struct {
}

func (*Evaluator) Evaluate

func (e *Evaluator) Evaluate(operator models.Operator, fact, value any) bool

type Matcher added in v0.1.0

type Matcher struct {
	Evaluator interfaces.Evaluable
}

func (*Matcher) Execute added in v0.1.0

func (rm *Matcher) Execute(gate models.Gate, facts map[string]any, conditionals []models.Conditional) bool

type Worker

type Worker struct {
	Matcher interfaces.Matchable
}

func (*Worker) Execute

func (w *Worker) Execute(rule models.Rule, facts map[string]any) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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