Versions in this module Expand all Collapse all v0 v0.1.4 Oct 10, 2026 v0.1.3 Oct 2, 2026 v0.1.2 Jun 5, 2026 v0.1.1 May 28, 2026 v0.1.0 May 21, 2026 Changes in this version + const ABSENT_OVER_TIME + const ADD + const AND + const APPROX_TOPK + const AVG + const AVG_OVER_TIME + const And + const BOOL + const BOTTOMK + const BY + const BYTES + const BYTES_CONV + const BYTES_OVER_TIME + const BYTES_RATE + const Bin + const Binary + const Bytes + const CLOSE_BRACE + const CLOSE_BRACKET + const CLOSE_PARENTHESIS + const CMP_EQ + const COMMA + const COUNT + const COUNT_OVER_TIME + const Card + const Char + const Comment + const DECOLORIZE + const DIV + const DOT + const DROP + const DURATION + const DURATION_CONV + const DURATION_SECONDS_CONV + const Dst + const Duration + const EOF + const EQ + const EmptyMatchers + const FIRST_OVER_TIME + const FUNCTION_FLAG + const Float + const GROUP_LEFT + const GROUP_RIGHT + const GT + const GTE + const GoTokens + const GoWhitespace + const GroupingField + const Groups + const IDENTIFIER + const IGNORING + const IP + const IPField + const Ident + const Identifier + const Include + const Inner + const Int + const IntervalNanos + const JSON + const KEEP + const LABELS + const LABEL_FMT + const LABEL_REPLACE + const LAST_OVER_TIME + const LHS + const LINE_FMT + const LOGFMT + const LT + const LTE + const Label + const LabelReplace + const Literal + const LogSelector + const MATCHERS + const MAX + const MAX_OVER_TIME + const MIN + const MIN_OVER_TIME + const MOD + const MUL + const MatchingLabels + const NEQ + const NPA + const NRE + const NUMBER + const Name + const NoopField + const Numeric + const OF + const OFFSET + const ON + const OPEN_BRACE + const OPEN_BRACKET + const OPEN_PARENTHESIS + const OR + const Of + const OffsetNanos + const On + const Op + const OpConvBytes + const OpConvDuration + const OpConvDurationSeconds + const OpDecolorize + const OpDrop + const OpFilterIP + const OpFmtLabel + const OpFmtLine + const OpGroupLeft + const OpGroupRight + const OpIgnoring + const OpKeep + const OpKeepEmpty + const OpLabelReplace + const OpOffset + const OpOn + const OpParserTypeJSON + const OpParserTypeLogfmt + const OpParserTypePattern + const OpParserTypeRegexp + const OpParserTypeUnpack + const OpPipe + const OpRangeTypeAbsent + const OpRangeTypeAvg + const OpRangeTypeBytes + const OpRangeTypeBytesRate + const OpRangeTypeCount + const OpRangeTypeFirst + const OpRangeTypeFirstWithTimestamp + const OpRangeTypeLast + const OpRangeTypeLastWithTimestamp + const OpRangeTypeMax + const OpRangeTypeMin + const OpRangeTypeQuantile + const OpRangeTypeQuantileSketch + const OpRangeTypeRate + const OpRangeTypeRateCounter + const OpRangeTypeStddev + const OpRangeTypeStdvar + const OpRangeTypeSum + const OpStrict + const OpTypeAdd + const OpTypeAnd + const OpTypeApproxTopK + const OpTypeAvg + const OpTypeBottomK + const OpTypeCmpEQ + const OpTypeCount + const OpTypeCountMinSketch + const OpTypeDiv + const OpTypeGT + const OpTypeGTE + const OpTypeLT + const OpTypeLTE + const OpTypeMax + const OpTypeMin + const OpTypeMod + const OpTypeMul + const OpTypeNEQ + const OpTypeOr + const OpTypePow + const OpTypeSort + const OpTypeSortDesc + const OpTypeStddev + const OpTypeStdvar + const OpTypeSub + const OpTypeSum + const OpTypeTopK + const OpTypeUnless + const OpTypeVector + const OpUnwrap + const OpVariants + const Options + const PATTERN + const PIPE + const PIPE_EXACT + const PIPE_MATCH + const PIPE_PATTERN + const POW + const Params + const Pattern + const PostFilterers + const QUANTILE_OVER_TIME + const RANGE + const RATE + const RATE_COUNTER + const RE + const REGEXP + const RHS + const Range + const RangeAgg + const Raw + const RawString + const RegexField + const Replacement + const ReturnBool + const SORT + const SORT_DESC + const STDDEV + const STDDEV_OVER_TIME + const STDVAR + const STDVAR_OVER_TIME + const STRING + const SUB + const SUM + const SUM_OVER_TIME + const ScanChars + const ScanComments + const ScanFloats + const ScanIdents + const ScanInts + const ScanRawStrings + const ScanStrings + const SkipComments + const Src + const String + const StringField + const TOPK + const Type + const UNLESS + const UNPACK + const UNWRAP + const UnsupportedErr + const Unwrap + const VARIANTS + const VECTOR + const Value + const Variants + const VariantsOf + const Vector + const VectorAgg + const VectorMatchingField + const WITHOUT + const Without + var MaxCharsPerLine = 100 + func AssertExpressions(t *testing.T, expected, actual Expr) + func AssertMatchers(t *testing.T, expected, actual []*labels.Matcher) + func Clone[T Expr](e T) (T, error) + func EncodeJSON(e Expr, w io.Writer) error + func Indent(level int) string + func IsComparisonOperator(op string) bool + func IsLogicalBinOp(op string) bool + func IsMatchEqualFilterer(filterer log.LabelFilterer) bool + func MatchersString(xs []*labels.Matcher) string + func MergeBinOp(op string, left, right *promql.Sample, swap, filter, isVectorComparison bool) (*promql.Sample, error) + func MustClone[T Expr](e T) T + func NeedSplit(e Expr) bool + func ParseLabels(lbs string) (labels.Labels, error) + func ParseMatchers(input string, validate bool) ([]*labels.Matcher, error) + func Prettify(e Expr) string + func ReducesLabels(e Expr) (conflict bool) + func RemoveFastRegexMatchers(matchers []*labels.Matcher) []*labels.Matcher + func TokenString(tok rune) string + type AcceptVisitor interface + Accept func(RootVisitor) + type BinOpExpr struct + Op string + Opts *BinOpOptions + RHS SampleExpr + func (e *BinOpExpr) Accept(v RootVisitor) + func (e *BinOpExpr) MatcherGroups() ([]MatcherRange, error) + func (e *BinOpExpr) Pretty(level int) string + func (e *BinOpExpr) Shardable(topLevel bool) bool + func (e *BinOpExpr) String() string + func (e *BinOpExpr) Walk(f WalkFn) + type BinOpOptions struct + ReturnBool bool + VectorMatching *VectorMatching + type DecolorizeExpr struct + func (e *DecolorizeExpr) Accept(v RootVisitor) + func (e *DecolorizeExpr) Pretty(_ int) string + func (e *DecolorizeExpr) Shardable(_ bool) bool + func (e *DecolorizeExpr) Stage() (log.Stage, error) + func (e *DecolorizeExpr) String() string + func (e *DecolorizeExpr) Walk(f WalkFn) + type DepthFirstTraversal struct + VisitBinOpFn func(v RootVisitor, e *BinOpExpr) + VisitDecolorizeFn func(v RootVisitor, e *DecolorizeExpr) + VisitDropLabelsFn func(v RootVisitor, e *DropLabelsExpr) + VisitJSONExpressionParserFn func(v RootVisitor, e *JSONExpressionParserExpr) + VisitKeepLabelFn func(v RootVisitor, e *KeepLabelsExpr) + VisitLabelFilterFn func(v RootVisitor, e *LabelFilterExpr) + VisitLabelFmtFn func(v RootVisitor, e *LabelFmtExpr) + VisitLabelParserFn func(v RootVisitor, e *LineParserExpr) + VisitLabelReplaceFn func(v RootVisitor, e *LabelReplaceExpr) + VisitLineFilterFn func(v RootVisitor, e *LineFilterExpr) + VisitLineFmtFn func(v RootVisitor, e *LineFmtExpr) + VisitLiteralFn func(v RootVisitor, e *LiteralExpr) + VisitLogRangeFn func(v RootVisitor, e *LogRangeExpr) + VisitLogfmtExpressionParserFn func(v RootVisitor, e *LogfmtExpressionParserExpr) + VisitLogfmtParserFn func(v RootVisitor, e *LogfmtParserExpr) + VisitMatchersFn func(v RootVisitor, e *MatchersExpr) + VisitPipelineFn func(v RootVisitor, e *PipelineExpr) + VisitRangeAggregationFn func(v RootVisitor, e *RangeAggregationExpr) + VisitVariantsFn func(v RootVisitor, e *MultiVariantExpr) + VisitVectorAggregationFn func(v RootVisitor, e *VectorAggregationExpr) + VisitVectorFn func(v RootVisitor, e *VectorExpr) + func (v *DepthFirstTraversal) VisitBinOp(e *BinOpExpr) + func (v *DepthFirstTraversal) VisitDecolorize(e *DecolorizeExpr) + func (v *DepthFirstTraversal) VisitDropLabels(e *DropLabelsExpr) + func (v *DepthFirstTraversal) VisitJSONExpressionParser(e *JSONExpressionParserExpr) + func (v *DepthFirstTraversal) VisitKeepLabel(e *KeepLabelsExpr) + func (v *DepthFirstTraversal) VisitLabelFilter(e *LabelFilterExpr) + func (v *DepthFirstTraversal) VisitLabelFmt(e *LabelFmtExpr) + func (v *DepthFirstTraversal) VisitLabelParser(e *LineParserExpr) + func (v *DepthFirstTraversal) VisitLabelReplace(e *LabelReplaceExpr) + func (v *DepthFirstTraversal) VisitLineFilter(e *LineFilterExpr) + func (v *DepthFirstTraversal) VisitLineFmt(e *LineFmtExpr) + func (v *DepthFirstTraversal) VisitLiteral(e *LiteralExpr) + func (v *DepthFirstTraversal) VisitLogRange(e *LogRangeExpr) + func (v *DepthFirstTraversal) VisitLogfmtExpressionParser(e *LogfmtExpressionParserExpr) + func (v *DepthFirstTraversal) VisitLogfmtParser(e *LogfmtParserExpr) + func (v *DepthFirstTraversal) VisitMatchers(e *MatchersExpr) + func (v *DepthFirstTraversal) VisitPipeline(e *PipelineExpr) + func (v *DepthFirstTraversal) VisitRangeAggregation(e *RangeAggregationExpr) + func (v *DepthFirstTraversal) VisitVariants(e *MultiVariantExpr) + func (v *DepthFirstTraversal) VisitVector(e *VectorExpr) + func (v *DepthFirstTraversal) VisitVectorAggregation(e *VectorAggregationExpr) + type DropLabelsExpr struct + func (e *DropLabelsExpr) Accept(v RootVisitor) + func (e *DropLabelsExpr) HasNamedMatchers() bool + func (e *DropLabelsExpr) Names() []string + func (e *DropLabelsExpr) Pretty(level int) string + func (e *DropLabelsExpr) Shardable(_ bool) bool + func (e *DropLabelsExpr) Stage() (log.Stage, error) + func (e *DropLabelsExpr) String() string + func (e *DropLabelsExpr) Walk(f WalkFn) + type Expr interface + Pretty func(level int) string + Shardable func(topLevel bool) bool + func DecodeJSON(raw string) (Expr, error) + func MustParseExpr(input string) Expr + func ParseExpr(input string) (Expr, error) + func ParseExprWithoutValidation(input string) (expr Expr, err error) + type Grouping struct + Groups []string + Without bool + func (g *Grouping) Pretty(_ int) string + func (g Grouping) Noop() bool + func (g Grouping) Singleton() bool + func (g Grouping) String() string + type JSONExpressionParserExpr struct + Expressions []log.LabelExtractionExpr + func (e *JSONExpressionParserExpr) Pretty(level int) string + func (j *JSONExpressionParserExpr) Accept(v RootVisitor) + func (j *JSONExpressionParserExpr) Shardable(_ bool) bool + func (j *JSONExpressionParserExpr) Stage() (log.Stage, error) + func (j *JSONExpressionParserExpr) String() string + func (j *JSONExpressionParserExpr) Walk(f WalkFn) + type JSONSerializer struct + func NewJSONSerializer(s *jsoniter.Stream) *JSONSerializer + func (*JSONSerializer) VisitDecolorize(*DecolorizeExpr) + func (*JSONSerializer) VisitDropLabels(*DropLabelsExpr) + func (*JSONSerializer) VisitJSONExpressionParser(*JSONExpressionParserExpr) + func (*JSONSerializer) VisitKeepLabel(*KeepLabelsExpr) + func (*JSONSerializer) VisitLabelFilter(*LabelFilterExpr) + func (*JSONSerializer) VisitLabelFmt(*LabelFmtExpr) + func (*JSONSerializer) VisitLabelParser(*LineParserExpr) + func (*JSONSerializer) VisitLineFilter(*LineFilterExpr) + func (*JSONSerializer) VisitLineFmt(*LineFmtExpr) + func (*JSONSerializer) VisitLogfmtExpressionParser(*LogfmtExpressionParserExpr) + func (*JSONSerializer) VisitLogfmtParser(*LogfmtParserExpr) + func (v *JSONSerializer) VisitBinOp(e *BinOpExpr) + func (v *JSONSerializer) VisitLabelReplace(e *LabelReplaceExpr) + func (v *JSONSerializer) VisitLiteral(e *LiteralExpr) + func (v *JSONSerializer) VisitLogRange(e *LogRangeExpr) + func (v *JSONSerializer) VisitMatchers(e *MatchersExpr) + func (v *JSONSerializer) VisitPipeline(e *PipelineExpr) + func (v *JSONSerializer) VisitRangeAggregation(e *RangeAggregationExpr) + func (v *JSONSerializer) VisitVariants(e *MultiVariantExpr) + func (v *JSONSerializer) VisitVector(e *VectorExpr) + func (v *JSONSerializer) VisitVectorAggregation(e *VectorAggregationExpr) + type KeepLabelsExpr struct + func (e *KeepLabelsExpr) Accept(v RootVisitor) + func (e *KeepLabelsExpr) Pretty(level int) string + func (e *KeepLabelsExpr) Shardable(_ bool) bool + func (e *KeepLabelsExpr) Stage() (log.Stage, error) + func (e *KeepLabelsExpr) String() string + func (e *KeepLabelsExpr) Walk(f WalkFn) + type LabelFilterExpr struct + func ExtractLabelFiltersBeforeParser(e Expr) []*LabelFilterExpr + func (e *LabelFilterExpr) Accept(v RootVisitor) + func (e *LabelFilterExpr) Pretty(level int) string + func (e *LabelFilterExpr) Shardable(_ bool) bool + func (e *LabelFilterExpr) Stage() (log.Stage, error) + func (e *LabelFilterExpr) String() string + func (e *LabelFilterExpr) Walk(f WalkFn) + type LabelFmtExpr struct + Formats []log.LabelFmt + func (e *LabelFmtExpr) Accept(v RootVisitor) + func (e *LabelFmtExpr) Pretty(level int) string + func (e *LabelFmtExpr) Shardable(_ bool) bool + func (e *LabelFmtExpr) Stage() (log.Stage, error) + func (e *LabelFmtExpr) String() string + func (e *LabelFmtExpr) Walk(f WalkFn) + type LabelReplaceExpr struct + Dst string + Left SampleExpr + Re *regexp.Regexp + Regex string + Replacement string + Src string + func (e *LabelReplaceExpr) Accept(v RootVisitor) + func (e *LabelReplaceExpr) Extractors() ([]SampleExtractor, error) + func (e *LabelReplaceExpr) MatcherGroups() ([]MatcherRange, error) + func (e *LabelReplaceExpr) Pretty(level int) string + func (e *LabelReplaceExpr) Selector() (LogSelectorExpr, error) + func (e *LabelReplaceExpr) Shardable(_ bool) bool + func (e *LabelReplaceExpr) String() string + func (e *LabelReplaceExpr) Walk(f WalkFn) + type LineFilter struct + Match string + Op string + Ty log.LineMatchType + func (lf *LineFilter) Unmarshal(b []byte) error + func (lf LineFilter) Equal(o LineFilter) bool + func (lf LineFilter) MarshalTo(b []byte) (int, error) + func (lf LineFilter) Size() int + type LineFilterExpr struct + IsOrChild bool + Left *LineFilterExpr + Or *LineFilterExpr + func ExtractLineFilters(e Expr) []LineFilterExpr + func (e *LineFilterExpr) Accept(v RootVisitor) + func (e *LineFilterExpr) Filter() (log.Filterer, error) + func (e *LineFilterExpr) Pretty(level int) string + func (e *LineFilterExpr) Shardable(_ bool) bool + func (e *LineFilterExpr) Stage() (log.Stage, error) + func (e *LineFilterExpr) String() string + func (e *LineFilterExpr) Walk(f WalkFn) + type LineFmtExpr struct + Value string + func (e *LineFmtExpr) Accept(v RootVisitor) + func (e *LineFmtExpr) Pretty(level int) string + func (e *LineFmtExpr) Shardable(_ bool) bool + func (e *LineFmtExpr) Stage() (log.Stage, error) + func (e *LineFmtExpr) String() string + func (e *LineFmtExpr) Walk(f WalkFn) + type LineParserExpr struct + Op string + Param string + func (e *LineParserExpr) Accept(v RootVisitor) + func (e *LineParserExpr) Pretty(level int) string + func (e *LineParserExpr) Shardable(_ bool) bool + func (e *LineParserExpr) Stage() (log.Stage, error) + func (e *LineParserExpr) String() string + func (e *LineParserExpr) Walk(f WalkFn) + type LiteralExpr struct + Val float64 + func (e *LiteralExpr) Accept(v RootVisitor) + func (e *LiteralExpr) Extractors() ([]log.SampleExtractor, error) + func (e *LiteralExpr) HasFilter() bool + func (e *LiteralExpr) MatcherGroups() ([]MatcherRange, error) + func (e *LiteralExpr) Matchers() []*labels.Matcher + func (e *LiteralExpr) Pipeline() (log.Pipeline, error) + func (e *LiteralExpr) Pretty(level int) string + func (e *LiteralExpr) Selector() (LogSelectorExpr, error) + func (e *LiteralExpr) Shardable(_ bool) bool + func (e *LiteralExpr) String() string + func (e *LiteralExpr) Value() (float64, error) + func (e *LiteralExpr) Walk(f WalkFn) + type LogRangeExpr struct + Interval time.Duration + Left LogSelectorExpr + Offset time.Duration + Unwrap *UnwrapExpr + func (e *LogRangeExpr) Pretty(level int) string + func (r *LogRangeExpr) Accept(v RootVisitor) + func (r *LogRangeExpr) Shardable(topLevel bool) bool + func (r *LogRangeExpr) Walk(f WalkFn) + func (r *LogRangeExpr) WithoutUnwrap() (*LogRangeExpr, error) + func (r LogRangeExpr) String() string + type LogSelectorExpr interface + HasFilter func() bool + Matchers func() []*labels.Matcher + Pipeline func() (Pipeline, error) + func AddFilterExpr(expr LogSelectorExpr, ty log.LineMatchType, op, match string) (LogSelectorExpr, error) + func ParseLogSelector(input string, validate bool) (LogSelectorExpr, error) + type LogSelectorExprVisitor interface + VisitLiteral func(*LiteralExpr) + VisitMatchers func(*MatchersExpr) + VisitPipeline func(*PipelineExpr) + VisitVector func(*VectorExpr) + type LogfmtExpressionParserExpr struct + Expressions []log.LabelExtractionExpr + KeepEmpty bool + Strict bool + func (e *LogfmtExpressionParserExpr) Pretty(level int) string + func (l *LogfmtExpressionParserExpr) Accept(v RootVisitor) + func (l *LogfmtExpressionParserExpr) Shardable(_ bool) bool + func (l *LogfmtExpressionParserExpr) Stage() (log.Stage, error) + func (l *LogfmtExpressionParserExpr) String() string + func (l *LogfmtExpressionParserExpr) Walk(f WalkFn) + type LogfmtParserExpr struct + KeepEmpty bool + Strict bool + func (e *LogfmtParserExpr) Accept(v RootVisitor) + func (e *LogfmtParserExpr) Pretty(level int) string + func (e *LogfmtParserExpr) Shardable(_ bool) bool + func (e *LogfmtParserExpr) Stage() (log.Stage, error) + func (e *LogfmtParserExpr) String() string + func (e *LogfmtParserExpr) Walk(f WalkFn) + type MatcherRange struct + Interval time.Duration + Matchers []*labels.Matcher + Offset time.Duration + func MatcherGroups(expr Expr) ([]MatcherRange, error) + type MatchersExpr struct + Mts []*labels.Matcher + func (e *MatchersExpr) Accept(v RootVisitor) + func (e *MatchersExpr) AppendMatchers(m []*labels.Matcher) + func (e *MatchersExpr) HasFilter() bool + func (e *MatchersExpr) Matchers() []*labels.Matcher + func (e *MatchersExpr) Pipeline() (log.Pipeline, error) + func (e *MatchersExpr) Pretty(level int) string + func (e *MatchersExpr) Shardable(_ bool) bool + func (e *MatchersExpr) String() string + func (e *MatchersExpr) Walk(f WalkFn) + type MultiStageExpr []StageExpr + func (m MultiStageExpr) Pipeline() (log.Pipeline, error) + func (m MultiStageExpr) String() string + type MultiVariantExpr struct + func NewMultiVariantExpr(logRange *LogRangeExpr, variants []SampleExpr) MultiVariantExpr + func (m *MultiVariantExpr) Accept(v RootVisitor) + func (m *MultiVariantExpr) AddVariant(v SampleExpr) + func (m *MultiVariantExpr) Extractors() ([]log.SampleExtractor, error) + func (m *MultiVariantExpr) Interval() time.Duration + func (m *MultiVariantExpr) LogRange() *LogRangeExpr + func (m *MultiVariantExpr) MatcherGroups() ([]MatcherRange, error) + func (m *MultiVariantExpr) Matchers() []*labels.Matcher + func (m *MultiVariantExpr) Offset() time.Duration + func (m *MultiVariantExpr) Pretty(level int) string + func (m *MultiVariantExpr) Selector() (LogSelectorExpr, error) + func (m *MultiVariantExpr) SetLogSelector(e *LogRangeExpr) + func (m *MultiVariantExpr) SetVariant(i int, v SampleExpr) error + func (m *MultiVariantExpr) Shardable(topLevel bool) bool + func (m *MultiVariantExpr) String() string + func (m *MultiVariantExpr) Variants() []SampleExpr + func (m *MultiVariantExpr) Walk(f WalkFn) + type OffsetExpr struct + Offset time.Duration + func (e *OffsetExpr) Pretty(_ int) string + func (o *OffsetExpr) String() string + type Pipeline = log.Pipeline + type PipelineExpr struct + Left *MatchersExpr + MultiStages MultiStageExpr + func (e *PipelineExpr) Accept(v RootVisitor) + func (e *PipelineExpr) HasFilter() bool + func (e *PipelineExpr) Matchers() []*labels.Matcher + func (e *PipelineExpr) Pipeline() (log.Pipeline, error) + func (e *PipelineExpr) Pretty(level int) string + func (e *PipelineExpr) Shardable(topLevel bool) bool + func (e *PipelineExpr) String() string + func (e *PipelineExpr) Walk(f WalkFn) + type Position struct + Column int + Filename string + Line int + Offset int + func (pos *Position) IsValid() bool + func (pos Position) String() string + type RangeAggregationExpr struct + Grouping *Grouping + Left *LogRangeExpr + Operation string + Params *float64 + func (e *RangeAggregationExpr) Accept(v RootVisitor) + func (e *RangeAggregationExpr) MatcherGroups() ([]MatcherRange, error) + func (e *RangeAggregationExpr) Pretty(level int) string + func (e *RangeAggregationExpr) Selector() (LogSelectorExpr, error) + func (e *RangeAggregationExpr) Shardable(topLevel bool) bool + func (e *RangeAggregationExpr) String() string + func (e *RangeAggregationExpr) Walk(f WalkFn) + func (e RangeAggregationExpr) Validate() error + func (r RangeAggregationExpr) Extractors() ([]log.SampleExtractor, error) + type RootVisitor interface + VisitLogRange func(*LogRangeExpr) + type SampleExpr interface + Extractors func() ([]SampleExtractor, error) + MatcherGroups func() ([]MatcherRange, error) + Selector func() (LogSelectorExpr, error) + func ParseSampleExpr(input string) (SampleExpr, error) + type SampleExprVisitor interface + VisitBinOp func(*BinOpExpr) + VisitLabelReplace func(*LabelReplaceExpr) + VisitLiteral func(*LiteralExpr) + VisitRangeAggregation func(*RangeAggregationExpr) + VisitVector func(*VectorExpr) + VisitVectorAggregation func(*VectorAggregationExpr) + type SampleExtractor = log.SampleExtractor + type Scanner struct + Error func(s *Scanner, msg string) + ErrorCount int + IsIdentRune func(ch rune, i int) bool + Mode uint + Whitespace uint64 + func (s *Scanner) Init(src io.Reader) *Scanner + func (s *Scanner) Next() rune + func (s *Scanner) Peek() rune + func (s *Scanner) Pos() (pos Position) + func (s *Scanner) Scan() rune + func (s *Scanner) TokenText() string + type StageExpr interface + Stage func() (log.Stage, error) + type StageExprVisitor interface + VisitDecolorize func(*DecolorizeExpr) + VisitDropLabels func(*DropLabelsExpr) + VisitJSONExpressionParser func(*JSONExpressionParserExpr) + VisitKeepLabel func(*KeepLabelsExpr) + VisitLabelFilter func(*LabelFilterExpr) + VisitLabelFmt func(*LabelFmtExpr) + VisitLabelParser func(*LineParserExpr) + VisitLineFilter func(*LineFilterExpr) + VisitLineFmt func(*LineFmtExpr) + VisitLogfmtExpressionParser func(*LogfmtExpressionParserExpr) + VisitLogfmtParser func(*LogfmtParserExpr) + type UnwrapExpr struct + Identifier string + Operation string + PostFilters []log.LabelFilterer + func (e *UnwrapExpr) Pretty(level int) string + func (u UnwrapExpr) String() string + type VariantsExpr interface + Extractors func() ([]SampleExtractor, error) + Interval func() time.Duration + LogRange func() *LogRangeExpr + MatcherGroups func() ([]MatcherRange, error) + Matchers func() []*labels.Matcher + Offset func() time.Duration + Selector func() (LogSelectorExpr, error) + SetVariant func(i int, e SampleExpr) error + Variants func() []SampleExpr + type VariantsExprVisitor interface + VisitVariants func(*MultiVariantExpr) + type VectorAggregationExpr struct + Grouping *Grouping + Left SampleExpr + Operation string + Params int + func (e *VectorAggregationExpr) Accept(v RootVisitor) + func (e *VectorAggregationExpr) Extractors() ([]SampleExtractor, error) + func (e *VectorAggregationExpr) MatcherGroups() ([]MatcherRange, error) + func (e *VectorAggregationExpr) Pretty(level int) string + func (e *VectorAggregationExpr) Selector() (LogSelectorExpr, error) + func (e *VectorAggregationExpr) Shardable(topLevel bool) bool + func (e *VectorAggregationExpr) String() string + func (e *VectorAggregationExpr) Walk(f WalkFn) + type VectorExpr struct + Val float64 + func NewVectorExpr(scalar string) *VectorExpr + func (e *VectorExpr) Accept(v RootVisitor) + func (e *VectorExpr) Err() error + func (e *VectorExpr) Extractors() ([]log.SampleExtractor, error) + func (e *VectorExpr) HasFilter() bool + func (e *VectorExpr) MatcherGroups() ([]MatcherRange, error) + func (e *VectorExpr) Matchers() []*labels.Matcher + func (e *VectorExpr) Pipeline() (log.Pipeline, error) + func (e *VectorExpr) Pretty(level int) string + func (e *VectorExpr) Selector() (LogSelectorExpr, error) + func (e *VectorExpr) Shardable(_ bool) bool + func (e *VectorExpr) String() string + func (e *VectorExpr) Value() (float64, error) + func (e *VectorExpr) Walk(f WalkFn) + type VectorMatchCardinality int + const CardManyToOne + const CardOneToMany + const CardOneToOne + func (vmc VectorMatchCardinality) String() string + type VectorMatching struct + Card VectorMatchCardinality + Include []string + MatchingLabels []string + On bool + type WalkFn = func(e Expr) bool + type Walkable interface + Walk func(f WalkFn)