Documentation ¶
Index ¶
- func NewAggregationOperator(expr *promql.AggregateExpr) (parser.Params, error)
- func NewBinaryOperator(expr *promql.BinaryExpr, lhs, rhs parser.NodeID) (parser.Params, error)
- func NewFunctionExpr(name string, argValues []interface{}) (parser.Params, error)
- func NewScalarOperator(expr *promql.NumberLiteral) parser.Params
- func NewSelectorFromMatrix(n *promql.MatrixSelector) (parser.Params, error)
- func NewSelectorFromVector(n *promql.VectorSelector) (parser.Params, error)
- func Parse(q string) (parser.Parser, error)
- type ItemType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAggregationOperator ¶ added in v0.4.2
func NewAggregationOperator(expr *promql.AggregateExpr) (parser.Params, error)
NewAggregationOperator creates a new aggregation operator based on the type
func NewBinaryOperator ¶
NewBinaryOperator creates a new binary operator based on the type
func NewFunctionExpr ¶
NewFunctionExpr creates a new function expr based on the type
func NewScalarOperator ¶ added in v0.4.1
func NewScalarOperator(expr *promql.NumberLiteral) parser.Params
NewScalarOperator creates a new scalar operator
func NewSelectorFromMatrix ¶
func NewSelectorFromMatrix(n *promql.MatrixSelector) (parser.Params, error)
NewSelectorFromMatrix creates a new fetchop
func NewSelectorFromVector ¶
func NewSelectorFromVector(n *promql.VectorSelector) (parser.Params, error)
NewSelectorFromVector creates a new fetchop
Types ¶
Click to show internal directories.
Click to hide internal directories.