Documentation ¶
Index ¶
- func TagNames(expression Expression) []string
- func Type(token Token) string
- func ValueNames(expression Expression) []string
- type AndExpression
- type AndOperatorToken
- type CloseParenToken
- type ComparisonExpression
- type ComparisonOperatorToken
- type EmptyExpression
- type EndToken
- type Expression
- type NotExpression
- type NotOperatorToken
- type OpenParenToken
- type OrExpression
- type OrOperatorToken
- type Parser
- type Scanner
- type SymbolToken
- type TagExpression
- type Token
- type ValueExpression
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TagNames ¶
func TagNames(expression Expression) []string
Retrieves the set of tag names from an expression
func ValueNames ¶ added in v0.4.0
func ValueNames(expression Expression) []string
Retrieves the set of value names from an expression
Types ¶
type AndExpression ¶
type AndExpression struct { LeftOperand Expression RightOperand Expression }
type AndOperatorToken ¶
type AndOperatorToken struct { }
type CloseParenToken ¶
type CloseParenToken struct { }
type ComparisonExpression ¶ added in v0.4.0
type ComparisonExpression struct { Tag TagExpression Operator string Value ValueExpression }
type ComparisonOperatorToken ¶ added in v0.4.0
type ComparisonOperatorToken struct {
// contains filtered or unexported fields
}
type EmptyExpression ¶ added in v0.4.0
type EmptyExpression struct { }
type Expression ¶
type Expression interface { }
func HasAll ¶ added in v0.4.0
func HasAll(tagNames []string) Expression
Creates an 'and' expression for all the tag names specified
func Parse ¶
func Parse(query string) (Expression, error)
type NotExpression ¶
type NotExpression struct {
Operand Expression
}
type NotOperatorToken ¶
type NotOperatorToken struct { }
type OpenParenToken ¶
type OpenParenToken struct { }
type OrExpression ¶
type OrExpression struct { LeftOperand Expression RightOperand Expression }
type OrOperatorToken ¶
type OrOperatorToken struct { }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (Parser) Parse ¶
func (parser Parser) Parse() (Expression, error)
type SymbolToken ¶ added in v0.4.0
type SymbolToken struct {
// contains filtered or unexported fields
}
type TagExpression ¶
type TagExpression struct {
Name string
}
type ValueExpression ¶ added in v0.4.0
type ValueExpression struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.