Back to

Package query

Latest Go to latest

The highest tagged major version is .

Published: Oct 4, 2020 | License: GPL3 | Module:


type Filters

type Filters struct {
	Status      []bug.Status
	Author      []string
	Actor       []string
	Participant []string
	Label       []string
	Title       []string
	NoLabel     bool

Filters is a collection of Filter that implement a complex filter

type OrderBy

type OrderBy int
const (
	OrderById OrderBy

type OrderDirection

type OrderDirection int
const (
	OrderAscending OrderDirection

type Query

type Query struct {

Query is the intermediary representation of a Bug's query. It is either produced by parsing a query string (ex: "status:open author:rene") or created manually. This query doesn't do anything by itself and need to be interpreted for the specific domain of application.

func NewQuery

func NewQuery() *Query

NewQuery return an identity query with the default sorting (creation-desc).

func Parse

func Parse(query string) (*Query, error)

Parse parse a query DSL

Ex: "status:open author:descartes sort:edit-asc"

Supported filter qualifiers and syntax are described in docs/

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier