Versions in this module Expand all Collapse all v0 v0.87.3 Oct 9, 2026 v0.87.2 Oct 6, 2026 v0.87.1 Oct 1, 2026 v0.87.0 Sep 24, 2026 Changes in this version + type ConstExpr struct + V Value + func (e *ConstExpr) Eval(_ EvalContext) (Value, error) v0.86.2 Sep 24, 2026 v0.86.1 Sep 23, 2026 v0.86.0 Sep 18, 2026 v0.85.0 Sep 15, 2026 v0.84.3 Aug 27, 2026 v0.84.2 Aug 24, 2026 v0.84.1 Aug 5, 2026 v0.84.0 Jul 31, 2026 Changes in this version + var AbortError = errors.New("abort") + func DumpAST(expr Expr, depth int) string + func ToFloat(v Value) (float64, error) + type AbortExpr struct + func (e *AbortExpr) Eval(_ EvalContext) (Value, error) + type Argument struct + Name string + Value Expr + type ArrayExpr struct + Elements []Expr + func (e *ArrayExpr) Eval(ctx EvalContext) (Value, error) + type ArrayValue struct + V []Value + func (ArrayValue) AsBool() bool + func (ArrayValue) Kind() ValueKind + func (v ArrayValue) Equal(other Value) bool + func (v ArrayValue) String() string + type AssignExpr struct + Target Expr + Value Expr + func (e *AssignExpr) Eval(ctx EvalContext) (Value, error) + type BinaryExpr struct + Left Expr + Op string + Right Expr + func (e *BinaryExpr) Eval(ctx EvalContext) (Value, error) + type BoolLit struct + Value bool + func (e *BoolLit) Eval(_ EvalContext) (Value, error) + type BoolValue struct + V bool + func (BoolValue) Kind() ValueKind + func (v BoolValue) AsBool() bool + func (v BoolValue) Equal(other Value) bool + func (v BoolValue) String() string + type CallExpr struct + Args []Argument + Name string + func (e *CallExpr) Eval(ctx EvalContext) (Value, error) + type DelExpr struct + Target *PathExpr + func (e *DelExpr) Eval(ctx EvalContext) (Value, error) + type EvalContext interface + CallFunc func(pos Position, name string, positional []Value, named map[string]Value) (Value, error) + DeleteVar func(string) + GetTarget func() Target + GetVar func(string) (Value, bool) + SetVar func(string, Value) + type Expr interface + Eval func(ctx EvalContext) (Value, error) + Pos func() Position + type FloatLit struct + Value float64 + func (e *FloatLit) Eval(_ EvalContext) (Value, error) + type FloatValue struct + V float64 + func (FloatValue) AsBool() bool + func (FloatValue) Kind() ValueKind + func (v FloatValue) Equal(other Value) bool + func (v FloatValue) String() string + type ForExpr struct + Body []Expr + Index string + Item string + Iter Expr + func (e *ForExpr) Eval(ctx EvalContext) (Value, error) + type IdentExpr struct + Name string + func (e *IdentExpr) Eval(ctx EvalContext) (Value, error) + type IfExpr struct + Condition Expr + Else []Expr + Then []Expr + func (e *IfExpr) Eval(ctx EvalContext) (Value, error) + type IndexExpr struct + Index Expr + Object Expr + func (e *IndexExpr) Eval(ctx EvalContext) (Value, error) + type IntLit struct + Value int64 + func (e *IntLit) Eval(_ EvalContext) (Value, error) + type IntegerValue struct + V int64 + func (IntegerValue) AsBool() bool + func (IntegerValue) Kind() ValueKind + func (v IntegerValue) Equal(other Value) bool + func (v IntegerValue) String() string + type JSONNodeValue struct + N *insaneJSON.Node + func (v JSONNodeValue) AsBool() bool + func (v JSONNodeValue) Equal(other Value) bool + func (v JSONNodeValue) Kind() ValueKind + func (v JSONNodeValue) String() string + type KVPair struct + Key string + Value Expr + type Node struct + func NewNode(pos Position) Node + func (n Node) Pos() Position + type NullLit struct + func (e *NullLit) Eval(_ EvalContext) (Value, error) + type NullValue struct + func (NullValue) AsBool() bool + func (NullValue) Equal(other Value) bool + func (NullValue) Kind() ValueKind + func (NullValue) String() string + type ObjectExpr struct + Pairs []KVPair + func (e *ObjectExpr) Eval(ctx EvalContext) (Value, error) + type ObjectValue struct + V map[string]Value + func (ObjectValue) AsBool() bool + func (ObjectValue) Kind() ValueKind + func (v ObjectValue) Equal(other Value) bool + func (v ObjectValue) String() string + type Path struct + Root PathRoot + Segments []Segment + type PathExpr struct + Root PathRoot + Segments []PathSegment + func (e *PathExpr) Eval(ctx EvalContext) (Value, error) + type PathRoot int + const EventRoot + const MetadataRoot + type PathSegment struct + Field string + Index Expr + func (s PathSegment) IsField() bool + func (s PathSegment) IsIndex() bool + type Position interface + String func() string + type RegexLit struct + Compiled *regexp.Regexp + Pattern string + func (e *RegexLit) Eval(_ EvalContext) (Value, error) + type RegexValue struct + V *regexp.Regexp + func (RegexValue) AsBool() bool + func (RegexValue) Kind() ValueKind + func (v RegexValue) Equal(other Value) bool + func (v RegexValue) String() string + type Segment struct + Field string + Idx int + func FieldSeg(name string) Segment + func IndexSeg(idx int) Segment + func (s Segment) IsField() bool + func (s Segment) IsIndex() bool + type StringLit struct + Value string + func (e *StringLit) Eval(_ EvalContext) (Value, error) + type StringValue struct + V string + func (StringValue) AsBool() bool + func (StringValue) Kind() ValueKind + func (v StringValue) Equal(other Value) bool + func (v StringValue) String() string + type Target interface + Delete func(path Path) error + Get func(path Path) (Value, error) + Set func(path Path, value Value) error + type TimestampLit struct + Parsed time.Time + Value string + func (e *TimestampLit) Eval(_ EvalContext) (Value, error) + type TimestampValue struct + V time.Time + func (TimestampValue) AsBool() bool + func (TimestampValue) Kind() ValueKind + func (v TimestampValue) Equal(other Value) bool + func (v TimestampValue) String() string + type UnaryExpr struct + Op string + Operand Expr + func (e *UnaryExpr) Eval(ctx EvalContext) (Value, error) + type Value interface + AsBool func() bool + Equal func(Value) bool + Kind func() ValueKind + String func() string + func JsonNodeToValue(node *insaneJSON.Node) Value + type ValueKind int + const KindArray + const KindBool + const KindFloat + const KindInteger + const KindNull + const KindObject + const KindRegex + const KindString + const KindTimestamp + func (k ValueKind) String() string