http_cel

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	OperatorOr  = "||"
	OperatorAnd = "&&"
)

Variables

This section is empty.

Functions

func MergeAst

func MergeAst(env *cel.Env, operator string, conditions ...*cel.Ast) (*cel.Ast, error)

func NewAst

func NewAst(env *cel.Env, operator string, conditions ...string) (*cel.Ast, error)

func NewEnvironment

func NewEnvironment(opts ...cel.EnvOption) (*cel.Env, error)

NewEnvironment Create a standard HTTP CEL env with optional fields as needed

func NewMIMEMap

func NewMIMEMap(m textproto.MIMEHeader) traits.Mapper

func NewValuesMap

func NewValuesMap(m map[string][]string) traits.Mapper

func ProgramAst

func ProgramAst(env *cel.Env, ast *cel.Ast) (cel.Program, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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