expr

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolExpr

type BoolExpr[K any] interface {
	Eval(ctx context.Context, tCtx K) (bool, error)
}

BoolExpr is an interface that allows matching a context K against a configuration of a match.

func AlwaysTrue added in v0.101.0

func AlwaysTrue[K any]() BoolExpr[K]

func Not

func Not[K any](matcher BoolExpr[K]) BoolExpr[K]

func Or

func Or[K any](matchers ...BoolExpr[K]) BoolExpr[K]

Jump to

Keyboard shortcuts

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