Documentation ¶
Index ¶
Constants ¶
View Source
const CLOSE_BRACE = 57355
View Source
const COMMA = 57356
View Source
const DOT = 57357
View Source
const EQ = 57350
View Source
const IDENTIFIER = 57346
View Source
const LABELS = 57349
View Source
const MATCHERS = 57348
View Source
const NEQ = 57351
View Source
const NRE = 57353
View Source
const OPEN_BRACE = 57354
View Source
const PIPE_EXACT = 57359
View Source
const PIPE_MATCH = 57358
View Source
const RE = 57352
View Source
const STRING = 57347
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expr ¶
type Expr interface {
Eval(Querier) (iter.EntryIterator, error)
}
Expr is a LogQL expression.
func NewFilterExpr ¶
NewFilterExpr wraps an existing Expr with a next filter expression.
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError is what is returned when we failed to parse.
func (ParseError) Error ¶
func (p ParseError) Error() string
type Querier ¶
type Querier interface {
Query([]*labels.Matcher) (iter.EntryIterator, error)
}
Querier allows a LogQL expression to fetch an EntryIterator for a set of matchers.
type QuerierFunc ¶
type QuerierFunc func([]*labels.Matcher) (iter.EntryIterator, error)
QuerierFunc implements Querier.
func (QuerierFunc) Query ¶
func (q QuerierFunc) Query(ms []*labels.Matcher) (iter.EntryIterator, error)
Query implements Querier.
Click to show internal directories.
Click to hide internal directories.