Documentation
¶
Overview ¶
Package filter compiles and evaluates CEL expressions against message envelopes. Numeric header fields are exposed as CEL ints so plain integer literals work (msg.pgn == 127250).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
Diagnostic is one CEL compile error tied to a byte range in one expression. Line is 1-based; Column and EndColumn are 0-based byte columns. CEL reports an error point rather than a span, so Diagnose expands that point to the smallest surrounding token that can usefully be highlighted by an editor.
func Diagnose ¶
func Diagnose(exprs []string) ([]Diagnostic, error)
Diagnose compiles every expression and returns every parse/type-check error instead of stopping at the first invalid filter. An error is reserved for an environment construction failure; invalid CEL is represented by diagnostics.