Documentation ¶
Index ¶
- Constants
- type GroupOperator
- type GroupQuery
- type Query
- func (q *Query) CaptureGroup(operator ...GroupOperator) *Query
- func (q *Query) Equals(field string, values ...string) *Query
- func (q *Query) EqualsExact(field string, values ...string) *Query
- func (q *Query) InRange(field string, min, max float64) *Query
- func (q *Query) NotEquals(field string, values ...string) *Query
- func (q *Query) NotEqualsExact(field string, values ...string) *Query
- func (q *Query) NotInRange(field string, min, max float64) *Query
- func (q *Query) NotWithinRadius(field string, centre qb.Coord, radius float64, unit qb.GeoRadiusUnit) *Query
- func (q *Query) QueryString() string
- func (q *Query) TagsIn(field string, tags ...string) *Query
- func (q *Query) TagsNotIn(field string, tags ...string) *Query
- func (q *Query) WithinRadius(field string, centre qb.Coord, radius float64, unit qb.GeoRadiusUnit) *Query
- type QueryBuilder
Constants ¶
View Source
const ( And = GroupOperator("") Or = GroupOperator("| ") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupOperator ¶
type GroupOperator string
type GroupQuery ¶
type GroupQuery struct { *Query // contains filtered or unexported fields }
func (*GroupQuery) QueryString ¶
func (group *GroupQuery) QueryString() string
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) CaptureGroup ¶
func (q *Query) CaptureGroup(operator ...GroupOperator) *Query
func (*Query) NotEqualsExact ¶
func (*Query) NotWithinRadius ¶
func (*Query) QueryString ¶
func (*Query) WithinRadius ¶
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
func (*QueryBuilder) NewQuery ¶
func (qb *QueryBuilder) NewQuery(index string) *Query
Click to show internal directories.
Click to hide internal directories.