Documentation ¶
Index ¶
- Variables
- func InternalError(err error) error
- func UnknownFunction(name string) error
- func UnknownName(name string) error
- type AndExpr
- type FilterExpr
- type InTableExpr
- type IsNullExpr
- type Name
- type NameKind
- type OpExpr
- type OpKind
- type OrExpr
- type Resolver
- func (r *Resolver) InTable(name, typ string, args []ast.Expr) (*InTableExpr, error)
- func (r *Resolver) Resolve(e ast.Expr) (FilterExpr, error)
- func (r *Resolver) ResolveSort(e SortExpr) (SortExpr, error)
- func (r *Resolver) ResolveToIdent(e ast.Expr) (string, error)
- func (r *Resolver) ResolveToNumber(e ast.Expr) (int64, error)
- func (r *Resolver) ResolveToStr(e ast.Expr) (string, error)
- type ResolverAdapter
- type SortExpr
- type SortExprDefault
- type SortExprRandom
- type SortExprSort
- type SortItem
- type SortType
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternalError = errors.New("internal error")
View Source
var ErrUnknownFunction = errors.New("unknown function")
View Source
var ErrUnknownName = errors.New("unknown name")
Functions ¶
func InternalError ¶ added in v0.18.0
func UnknownFunction ¶ added in v0.18.0
func UnknownName ¶ added in v0.18.0
Types ¶
type AndExpr ¶
type AndExpr struct { Left FilterExpr Right FilterExpr }
type FilterExpr ¶
type FilterExpr interface {
// contains filtered or unexported methods
}
type InTableExpr ¶
type IsNullExpr ¶ added in v0.18.0
type OrExpr ¶
type OrExpr struct { Left FilterExpr Right FilterExpr }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func New ¶
func New(adpater ResolverAdapter) *Resolver
func (*Resolver) ResolveSort ¶ added in v0.18.0
type ResolverAdapter ¶
type SortExpr ¶ added in v0.18.0
type SortExpr interface {
// contains filtered or unexported methods
}
type SortExprDefault ¶ added in v0.18.0
type SortExprDefault struct{}
type SortExprRandom ¶ added in v0.18.0
type SortExprRandom struct{}
type SortExprSort ¶ added in v0.18.0
type SortExprSort struct {
Items []SortItem
}
Click to show internal directories.
Click to hide internal directories.