Documentation
¶
Index ¶
- Constants
- func All(flags []bool) bool
- func Any(flags []bool) bool
- func Contains(arr []string, t string) bool
- type EndGroupExpr
- type Expr
- type Filter
- type IExpr
- type Key
- type Logic
- type LogicExpr
- type OP
- func NewOPEmpty(s string) (OP, error)
- func NewOPEnds(s string) (OP, error)
- func NewOPEqual(s string) (OP, error)
- func NewOPExists(s string) (OP, error)
- func NewOPGT(s string) (OP, error)
- func NewOPGTE(s string) (OP, error)
- func NewOPIEnds(s string) (OP, error)
- func NewOPILike(s string) (OP, error)
- func NewOPIStarts(s string) (OP, error)
- func NewOPLT(s string) (OP, error)
- func NewOPLTE(s string) (OP, error)
- func NewOPLike(s string) (OP, error)
- func NewOPStarts(s string) (OP, error)
- func NewOPTimeRangeA(s string) (OP, error)
- func NewOPTimeRangeAMS(s string) (OP, error)
- func NewOPTimeRangeR(s string) (OP, error)
- func NewOPTimeRangeRMS(s string) (OP, error)
- type OPEmpty
- type OPEnds
- type OPEqual
- type OPExists
- type OPFunc
- type OPGT
- type OPLT
- type OPLike
- type OPNewFunc
- type OPStarts
- type OPTimeRange
- type SimpleExpr
- type Stack
- type StartGroupExpr
- type Token
- type TokenError
- type Tokenizer
- type Value
Constants ¶
View Source
const FieldOpSep = "__"
View Source
const FieldParamSep = "="
View Source
const FieldSep = "."
View Source
const OPParamsSep = "__"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EndGroupExpr ¶
type EndGroupExpr struct {
Expr
}
func (*EndGroupExpr) Match ¶
func (e *EndGroupExpr) Match(data any) bool
type Filter ¶
type Filter struct { // 原始未解析的 key Key string // 原始未解析的 value Value string // contains filtered or unexported fields }
func ParseFilterString ¶
type OP ¶
type OP interface {
// contains filtered or unexported methods
}
func NewOPEmpty ¶
func NewOPEqual ¶
func NewOPExists ¶
func NewOPIEnds ¶
func NewOPILike ¶
func NewOPIStarts ¶
func NewOPStarts ¶
func NewOPTimeRangeA ¶
func NewOPTimeRangeAMS ¶
func NewOPTimeRangeR ¶
func NewOPTimeRangeRMS ¶
type OPTimeRange ¶
type OPTimeRange struct {
// contains filtered or unexported fields
}
func (*OPTimeRange) Name ¶
func (op *OPTimeRange) Name() string
type SimpleExpr ¶
type SimpleExpr struct { Expr // contains filtered or unexported fields }
func (*SimpleExpr) Match ¶
func (se *SimpleExpr) Match(data any) bool
func (*SimpleExpr) Strings ¶
func (se *SimpleExpr) Strings() string
type Stack ¶
type Stack[T any] struct { // contains filtered or unexported fields }
type StartGroupExpr ¶
type StartGroupExpr struct { Expr // contains filtered or unexported fields }
func (*StartGroupExpr) Match ¶
func (e *StartGroupExpr) Match(data any) bool
func (*StartGroupExpr) Strings ¶
func (sge *StartGroupExpr) Strings() string
type TokenError ¶
type TokenError struct {
// contains filtered or unexported fields
}
func (TokenError) Error ¶
func (te TokenError) Error() string
Click to show internal directories.
Click to hide internal directories.