query

package
v3.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TERM_SHORT_NAME        = "n"
	TERM_SHORT_VERSION     = "v"
	TERM_SHORT_RELEASE     = "r"
	TERM_SHORT_EPOCH       = "e"
	TERM_SHORT_ARCH        = "a"
	TERM_SHORT_SOURCE      = "s"
	TERM_SHORT_LICENSE     = "l"
	TERM_SHORT_GROUP       = "g"
	TERM_SHORT_VENDOR      = "V"
	TERM_SHORT_PROVIDES    = "P"
	TERM_SHORT_REQUIRES    = "R"
	TERM_SHORT_RECOMMENDS  = "RC"
	TERM_SHORT_CONFLICTS   = "C"
	TERM_SHORT_OBSOLETES   = "O"
	TERM_SHORT_ENHANCES    = "E"
	TERM_SHORT_SUGGESTS    = "SG"
	TERM_SHORT_SUPPLEMENTS = "SP"
	TERM_SHORT_FILE        = "f"
	TERM_SHORT_DATE_ADD    = "d"
	TERM_SHORT_DATE_BUILD  = "D"
	TERM_SHORT_BUILD_HOST  = "h"
	TERM_SHORT_SIZE        = "S"
	TERM_SHORT_PAYLOAD     = "@"

	TERM_NAME        = "name"
	TERM_VERSION     = "version"
	TERM_RELEASE     = "release"
	TERM_EPOCH       = "epoch"
	TERM_ARCH        = "arch"
	TERM_SOURCE      = "source"
	TERM_LICENSE     = "license"
	TERM_GROUP       = "group"
	TERM_VENDOR      = "vendor"
	TERM_PROVIDES    = "provides"
	TERM_REQUIRES    = "requires"
	TERM_RECOMMENDS  = "recommends"
	TERM_CONFLICTS   = "conflicts"
	TERM_OBSOLETES   = "obsoletes"
	TERM_ENHANCES    = "enhances"
	TERM_SUGGESTS    = "suggests"
	TERM_SUPPLEMENTS = "supplements"
	TERM_FILE        = "file"
	TERM_DATE_ADD    = "date-add"
	TERM_DATE_BUILD  = "date-build"
	TERM_BUILD_HOST  = "host"
	TERM_SIZE        = "size"
	TERM_PAYLOAD     = "payload"
)
View Source
const (
	TERM_SHORT_RELEASED = "^"

	TERM_RELEASED = "released"
)
View Source
const (
	FILTER_FLAG_NONE       uint8 = 0
	FILTER_FLAG_RELEASED   uint8 = 1
	FILTER_FLAG_UNRELEASED uint8 = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Query      search.Query
	FilterFlag uint8
}

Request contains parsed query data

func Parse

func Parse(q []string) (*Request, error)

Parse parses string with data and creates search query

Jump to

Keyboard shortcuts

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