query

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func IsNotFound

func IsNotFound(err error) bool

func Select

func Select(conf *config.Configuration, queries ...string) ([]*config.Directive, error)

Select 查询配置内容。

func SelectWith

func SelectWith(conf *config.Configuration, manager *methods.FunctionManager, queries ...string) (items []*config.Directive, err error)

查询匹配配内容并附带方法管理器

func Selects

func Selects(conf *config.Configuration, query string) ([]*config.Directive, error)

pql查询指令

func SelectsWith

func SelectsWith(conf *config.Configuration, manager *methods.FunctionManager, query string) (items []*config.Directive, err error)

pql查询志林

Types

type Arg

type Arg struct {
	Pos        lexer.Position
	Comparison string  `(([@("!" | "@" | "^" | "$")]`
	Value      *string `@String)`
	Regex      *string `|@Regex`
	Group      *Args   `|("(" @@ ")"))`
}

type Args

type Args struct {
	Pos      lexer.Position
	Left     Arg    `@@`
	Operator string `[Space (@("&""&") | @("|""|")) Space`
	Right    *Arg   `@@]`
}

type Index

type Index struct {
	Pos   lexer.Position
	Start *int   `[@Number]`
	Split string `[@(":")]`
	End   *int   `[@Number]`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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