expr

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CelScript

type CelScript struct {
	// contains filtered or unexported fields
}

func (*CelScript) EvalWithRequest

func (s *CelScript) EvalWithRequest(cb api.FilterCallbackHandler, headers api.RequestHeaderMap) (any, error)

type Matcher

type Matcher interface {
	Match(s string) bool
	IgnoreCase() bool
}

func BuildRepeatedStringMatcher

func BuildRepeatedStringMatcher(matchers []*api.StringMatcher) (Matcher, error)

func BuildRepeatedStringMatcherIgnoreCase

func BuildRepeatedStringMatcherIgnoreCase(matchers []*api.StringMatcher) (Matcher, error)

func BuildStringMatcher

func BuildStringMatcher(m *api.StringMatcher) (Matcher, error)

type Script

type Script interface {
	EvalWithRequest(cb api.FilterCallbackHandler, headers api.RequestHeaderMap) (any, error)
}

func CompileCel

func CompileCel(expr string, returnType *cel.Type) (Script, error)

Jump to

Keyboard shortcuts

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