Documentation ¶
Overview ¶
Package query implements the custom query format used to filter event subscriptions in Tendermint.
Query expressions describe properties of events and their attributes, using strings like:
abci.invoice.number = 22 AND abci.invoice.owner = 'Ivan'
Query expressions can handle attribute values encoding numbers, strings, dates, and timestamps. The complete query grammar is described in the query/syntax package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
A Query is the compiled form of a query.
var All *Query
All is a query that matches all events.
func MustCompile ¶
MustCompile compiles the query expression into an executable query. In case of error, MustCompile will panic.
This is intended for use in program initialization; use query.New if you need to check errors.
func MustParse ¶
MustParse turns the given string into a query or panics; for tests or others cases where you know the string is valid.
func (*Query) Matches ¶
Matches reports whether q matches the given events. If q == nil, the query matches any non-empty collection of events.