Documentation
¶
Overview ¶
Package jsonexpr provides JSON extractor expression parser.
Index ¶
Constants ¶
View Source
const ( Index = iota + 1 Key )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Selector ¶
type Selector struct {
Type SelectorType
Index int
Key string
}
Selector is a JSON field/element selector.
type SelectorTree ¶ added in v0.20.0
type SelectorTree struct {
// contains filtered or unexported fields
}
SelectorTree is a simple prefix tree of selectors. Efficient for matching multiple JSON paths.
func MakeSelectorTree ¶ added in v0.20.0
func MakeSelectorTree(paths map[logql.Label]Path) SelectorTree
MakeSelectorTree creates a new SelectorTree from the given paths.
func (SelectorTree) IsEmpty ¶ added in v0.20.0
func (p SelectorTree) IsEmpty() bool
IsEmpty returns true if the tree is empty.
Click to show internal directories.
Click to hide internal directories.