Documentation ¶
Index ¶
- func String(expr Expr) string
- type AST
- type Attr
- type BinaryExpr
- type BinaryOp
- type BoolOp
- type Column
- type Columns
- type Expr
- type Filter
- type FilterOp
- type FuncCall
- type Grouping
- type JSONError
- type NumberKind
- type NumberValue
- type ParenExpr
- type QueryPart
- type Selector
- type StringValue
- type StringValues
- type Token
- type TokenID
- type Value
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryExpr ¶
func (*BinaryExpr) AppendString ¶
func (e *BinaryExpr) AppendString(b []byte) []byte
type Filter ¶
func (*Filter) AppendString ¶
type FilterOp ¶
type FilterOp string
const ( FilterEqual FilterOp = "=" FilterNotEqual FilterOp = "!=" FilterIn FilterOp = "in" FilterNotIn FilterOp = "not in" FilterLike FilterOp = "like" FilterNotLike FilterOp = "not like" FilterContains FilterOp = "contains" FilterNotContains FilterOp = "not contains" FilterExists FilterOp = "exists" FilterNotExists FilterOp = "not exists" // For compatibility with metrics. FilterRegexp FilterOp = "~" FilterNotRegexp FilterOp = "!~" )
type FuncCall ¶
func (*FuncCall) AppendString ¶
type NumberKind ¶
type NumberKind int
const ( NumberUnitless NumberKind = iota NumberDuration NumberBytes )
type NumberValue ¶
type NumberValue struct { Kind NumberKind Text string }
func (NumberValue) AppendString ¶
func (n NumberValue) AppendString(b []byte) []byte
func (NumberValue) String ¶
func (n NumberValue) String() string
func (NumberValue) Values ¶
func (v NumberValue) Values() []string
type QueryPart ¶
type QueryPart struct { Query string `json:"query"` Error JSONError `json:"error,omitempty"` Disabled bool `json:"disabled,omitempty"` AST any `json:"-"` }
func ParseQuery ¶
func ParseQueryError ¶
type StringValue ¶
type StringValue struct {
Text string
}
func (StringValue) AppendString ¶
func (v StringValue) AppendString(b []byte) []byte
func (StringValue) String ¶
func (v StringValue) String() string
func (StringValue) Values ¶
func (v StringValue) Values() []string
type StringValues ¶
type StringValues struct {
Strings []string
}
func (StringValues) AppendString ¶
func (v StringValues) AppendString(b []byte) []byte
func (StringValues) String ¶
func (v StringValues) String() string
func (StringValues) Values ¶
func (v StringValues) Values() []string
Click to show internal directories.
Click to hide internal directories.