Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
Condition represents an optional boolean condition on the RHS of a query. nolint:govet
type Invocation ¶
Invocation represents a function call. nolint:govet
type ParsedQuery ¶ added in v0.45.0
type ParsedQuery struct {
Invocation Invocation `@@`
Condition *Condition `( "where" @@ )?`
}
ParsedQuery represents a parsed query. It is the entry point into the query DSL. nolint:govet
func Parse ¶
func Parse(raw string) (*ParsedQuery, error)
type Path ¶
type Path struct {
Fields []Field `@@ ( "." @@ )*`
}
Path represents a telemetry path expression. nolint:govet
type Value ¶
type Value struct {
Invocation *Invocation `( @@`
String *string `| @String`
Float *float64 `| @Float`
Int *int64 `| @Int`
Path *Path `| @@ )`
}
Value represents a part of a parsed query which is resolved to a value of some sort. This can be a telemetry path expression, function call, or literal. nolint:govet
Click to show internal directories.
Click to hide internal directories.