eval

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Condition

func Condition(c query.Condition) bool

Condition evaluates condition in non-strict mode

func ConditionStrict

func ConditionStrict(c query.Condition) bool

ConditionStrict evaluates condition in strict mode

Types

type Evaluator

type Evaluator struct {
	Strict bool
}

Evaluator provides logic to evaluate rules and conditions

func (Evaluator) Condition

func (e Evaluator) Condition(c query.Condition) bool

Condition evaluates given condition

func (Evaluator) Rule

func (e Evaluator) Rule(r query.Rule) bool

Rule evaluates given rule

Jump to

Keyboard shortcuts

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