Documentation
¶
Overview ¶
Package query provides a simple query language for filtering records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldQuery ¶
type FieldQuery struct {
Key stringMatcher
Value valueMatcher
}
func (*FieldQuery) Optimize ¶
func (q *FieldQuery) Optimize() Query
func (*FieldQuery) String ¶
func (q *FieldQuery) String() string
type Query ¶
type Query interface {
fmt.Stringer
Match(api.Record) bool
Optimize() Query
TimeRange() (*time.Time, *time.Time)
}
func ParseQuery ¶
type SimpleQuery ¶
type SimpleQuery struct {
Value valueMatcher
}
func (*SimpleQuery) Optimize ¶
func (q *SimpleQuery) Optimize() Query
func (*SimpleQuery) String ¶
func (q *SimpleQuery) String() string
Click to show internal directories.
Click to hide internal directories.