builder

package
v0.0.0-...-a21cb6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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) Equals

func (q *Query) Equals(field string, values ...string) *Query

func (*Query) EqualsExact

func (q *Query) EqualsExact(field string, values ...string) *Query

func (*Query) InRange

func (q *Query) InRange(field string, min, max float64) *Query

func (*Query) NotEquals

func (q *Query) NotEquals(field string, values ...string) *Query

func (*Query) NotEqualsExact

func (q *Query) NotEqualsExact(field string, values ...string) *Query

func (*Query) NotInRange

func (q *Query) NotInRange(field string, min, max float64) *Query

func (*Query) NotWithinRadius

func (q *Query) NotWithinRadius(field string, centre qb.Coord, radius float64, unit qb.GeoRadiusUnit) *Query

func (*Query) QueryString

func (q *Query) QueryString() string

func (*Query) TagsIn

func (q *Query) TagsIn(field string, tags ...string) *Query

func (*Query) TagsNotIn

func (q *Query) TagsNotIn(field string, tags ...string) *Query

func (*Query) WithinRadius

func (q *Query) WithinRadius(field string, centre qb.Coord, radius float64, unit qb.GeoRadiusUnit) *Query

type QueryBuilder

type QueryBuilder struct {
	// contains filtered or unexported fields
}

func (*QueryBuilder) NewQuery

func (qb *QueryBuilder) NewQuery(index string) *Query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL