criteria

package
v0.74.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(context *endly.Context, root string, expected, actual interface{}) (*assertly.Validation, error)

Assert validates expected against actual

func Evaluate

func Evaluate(context *endly.Context, state data.Map, expression string, compute *eval.Compute, eventType string, defaultValue bool) (bool, error)

Types

type EvalEvent

type EvalEvent struct {
	Type       string
	Default    bool
	Evaluation bool
	Criteria   string
	Has        bool
	Error      string
}

EvalEvent represents criteria event

func NewEvalEvent

func NewEvalEvent(criteriaType string, defaultValue, evaluation bool, criteria string, has bool, err error) *EvalEvent

NewEvalEvent creates a new evaluation event.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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