Versions in this module Expand all Collapse all v0 v0.5.1 Jun 5, 2018 v0.5.0 May 31, 2018 v0.4.0 May 11, 2018 Changes in this version + const DefaultLimit + var LogicalOperator_Type_name = map[int32]string + var LogicalOperator_Type_value = map[string]int32 + var NumberCondition_Type_name = map[int32]string + var NumberCondition_Type_value = map[string]int32 + var SortCriteria_Order_name = map[int32]string + var SortCriteria_Order_value = map[string]int32 + var StringCondition_Type_name = map[int32]string + var StringCondition_Type_value = map[string]int32 + func Filter(obj interface{}, filter string) (bool, error) + type AndToken struct + func (t AndToken) String() string + type EOFToken struct + func (t EOFToken) String() string + type EqToken struct + func (t EqToken) String() string + type Field struct + Name string + Subs map[string]*Field + func (*Field) Descriptor() ([]byte, []int) + func (*Field) ProtoMessage() + func (m *Field) GetName() string + func (m *Field) GetSubs() map[string]*Field + func (m *Field) Reset() + func (m *Field) String() string + type FieldSelection struct + Fields map[string]*Field + func ParseFieldSelection(input string, delimiter ...string) *FieldSelection + func (*FieldSelection) Descriptor() ([]byte, []int) + func (*FieldSelection) ProtoMessage() + func (f *FieldSelection) Add(field string, delimiter ...string) + func (f *FieldSelection) Delete(field string, delimiter ...string) bool + func (f *FieldSelection) Get(field string, delimiter ...string) *Field + func (f *FieldSelection) GoString() string + func (m *FieldSelection) GetFields() map[string]*Field + func (m *FieldSelection) Reset() + func (m *FieldSelection) String() string + type FieldSelectionMap map[string]*Field + type FieldToken struct + Value string + func (t FieldToken) String() string + type Filtering struct + Root isFiltering_Root + func ParseFiltering(text string) (*Filtering, error) + func (*Filtering) Descriptor() ([]byte, []int) + func (*Filtering) ProtoMessage() + func (*Filtering) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (m *Filtering) Filter(obj interface{}) (bool, error) + func (m *Filtering) GetNullCondition() *NullCondition + func (m *Filtering) GetNumberCondition() *NumberCondition + func (m *Filtering) GetOperator() *LogicalOperator + func (m *Filtering) GetRoot() isFiltering_Root + func (m *Filtering) GetStringCondition() *StringCondition + func (m *Filtering) Reset() + func (m *Filtering) SetRoot(r interface{}) error + func (m *Filtering) String() string + type FilteringExpression interface + Filter func(interface{}) (bool, error) + type FilteringLexer interface + NextToken func() (Token, error) + func NewFilteringLexer(text string) FilteringLexer + type FilteringParser interface + Parse func(string) (*Filtering, error) + func NewFilteringParser() FilteringParser + type Filtering_NullCondition struct + NullCondition *NullCondition + func (m *Filtering_NullCondition) Filter(obj interface{}) (bool, error) + type Filtering_NumberCondition struct + NumberCondition *NumberCondition + func (m *Filtering_NumberCondition) Filter(obj interface{}) (bool, error) + type Filtering_Operator struct + Operator *LogicalOperator + func (m *Filtering_Operator) Filter(obj interface{}) (bool, error) + type Filtering_StringCondition struct + StringCondition *StringCondition + func (m *Filtering_StringCondition) Filter(obj interface{}) (bool, error) + type GeToken struct + func (t GeToken) String() string + type GtToken struct + func (t GtToken) String() string + type LeToken struct + func (t LeToken) String() string + type LogicalOperator struct + IsNegative bool + Left isLogicalOperator_Left + Right isLogicalOperator_Right + Type LogicalOperator_Type + func (*LogicalOperator) Descriptor() ([]byte, []int) + func (*LogicalOperator) ProtoMessage() + func (*LogicalOperator) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (lop *LogicalOperator) Filter(obj interface{}) (bool, error) + func (m *LogicalOperator) GetIsNegative() bool + func (m *LogicalOperator) GetLeft() isLogicalOperator_Left + func (m *LogicalOperator) GetLeftNullCondition() *NullCondition + func (m *LogicalOperator) GetLeftNumberCondition() *NumberCondition + func (m *LogicalOperator) GetLeftOperator() *LogicalOperator + func (m *LogicalOperator) GetLeftStringCondition() *StringCondition + func (m *LogicalOperator) GetRight() isLogicalOperator_Right + func (m *LogicalOperator) GetRightNullCondition() *NullCondition + func (m *LogicalOperator) GetRightNumberCondition() *NumberCondition + func (m *LogicalOperator) GetRightOperator() *LogicalOperator + func (m *LogicalOperator) GetRightStringCondition() *StringCondition + func (m *LogicalOperator) GetType() LogicalOperator_Type + func (m *LogicalOperator) Reset() + func (m *LogicalOperator) SetLeft(l interface{}) error + func (m *LogicalOperator) SetRight(r interface{}) error + func (m *LogicalOperator) String() string + type LogicalOperator_LeftNullCondition struct + LeftNullCondition *NullCondition + func (m *LogicalOperator_LeftNullCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_LeftNumberCondition struct + LeftNumberCondition *NumberCondition + func (m *LogicalOperator_LeftNumberCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_LeftOperator struct + LeftOperator *LogicalOperator + func (m *LogicalOperator_LeftOperator) Filter(obj interface{}) (bool, error) + type LogicalOperator_LeftStringCondition struct + LeftStringCondition *StringCondition + func (m *LogicalOperator_LeftStringCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_RightNullCondition struct + RightNullCondition *NullCondition + func (m *LogicalOperator_RightNullCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_RightNumberCondition struct + RightNumberCondition *NumberCondition + func (m *LogicalOperator_RightNumberCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_RightOperator struct + RightOperator *LogicalOperator + func (m *LogicalOperator_RightOperator) Filter(obj interface{}) (bool, error) + type LogicalOperator_RightStringCondition struct + RightStringCondition *StringCondition + func (m *LogicalOperator_RightStringCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_Type int32 + const LogicalOperator_AND + const LogicalOperator_OR + func (LogicalOperator_Type) EnumDescriptor() ([]byte, []int) + func (x LogicalOperator_Type) String() string + type LparenToken struct + func (t LparenToken) String() string + type LtToken struct + func (t LtToken) String() string + type MatchToken struct + func (t MatchToken) String() string + type Matcher interface + Match func(*Filtering) (bool, error) + type NeToken struct + func (t NeToken) String() string + type NmatchToken struct + func (t NmatchToken) String() string + type NotToken struct + func (t NotToken) String() string + type NullCondition struct + FieldPath []string + IsNegative bool + func (*NullCondition) Descriptor() ([]byte, []int) + func (*NullCondition) ProtoMessage() + func (c *NullCondition) Filter(obj interface{}) (bool, error) + func (m *NullCondition) GetFieldPath() []string + func (m *NullCondition) GetIsNegative() bool + func (m *NullCondition) Reset() + func (m *NullCondition) String() string + type NullToken struct + func (t NullToken) String() string + type NumberCondition struct + FieldPath []string + IsNegative bool + Type NumberCondition_Type + Value float64 + func (*NumberCondition) Descriptor() ([]byte, []int) + func (*NumberCondition) ProtoMessage() + func (c *NumberCondition) Filter(obj interface{}) (bool, error) + func (m *NumberCondition) GetFieldPath() []string + func (m *NumberCondition) GetIsNegative() bool + func (m *NumberCondition) GetType() NumberCondition_Type + func (m *NumberCondition) GetValue() float64 + func (m *NumberCondition) Reset() + func (m *NumberCondition) String() string + type NumberCondition_Type int32 + const NumberCondition_EQ + const NumberCondition_GE + const NumberCondition_GT + const NumberCondition_LE + const NumberCondition_LT + func (NumberCondition_Type) EnumDescriptor() ([]byte, []int) + func (x NumberCondition_Type) String() string + type NumberToken struct + Value float64 + func (t NumberToken) String() string + type OrToken struct + func (t OrToken) String() string + type PageInfo struct + Offset int32 + PageToken string + Size int32 + func (*PageInfo) Descriptor() ([]byte, []int) + func (*PageInfo) ProtoMessage() + func (m *PageInfo) GetOffset() int32 + func (m *PageInfo) GetPageToken() string + func (m *PageInfo) GetSize() int32 + func (m *PageInfo) Reset() + func (m *PageInfo) String() string + func (p *PageInfo) NoMore() bool + func (p *PageInfo) SetLastOffset() + func (p *PageInfo) SetLastToken() + type Pagination struct + Limit int32 + Offset int32 + PageToken string + func ParsePagination(limit, offset, ptoken string) (*Pagination, error) + func (*Pagination) Descriptor() ([]byte, []int) + func (*Pagination) ProtoMessage() + func (m *Pagination) GetLimit() int32 + func (m *Pagination) GetOffset() int32 + func (m *Pagination) GetPageToken() string + func (m *Pagination) Reset() + func (m *Pagination) String() string + func (p *Pagination) DefaultLimit(dl ...int) int + func (p *Pagination) FirstPage() bool + type RparenToken struct + func (t RparenToken) String() string + type SortCriteria struct + Order SortCriteria_Order + Tag string + func (*SortCriteria) Descriptor() ([]byte, []int) + func (*SortCriteria) ProtoMessage() + func (c SortCriteria) GoString() string + func (c SortCriteria) IsAsc() bool + func (c SortCriteria) IsDesc() bool + func (m *SortCriteria) GetOrder() SortCriteria_Order + func (m *SortCriteria) GetTag() string + func (m *SortCriteria) Reset() + func (m *SortCriteria) String() string + type SortCriteria_Order int32 + const SortCriteria_ASC + const SortCriteria_DESC + func (SortCriteria_Order) EnumDescriptor() ([]byte, []int) + func (x SortCriteria_Order) String() string + type Sorting struct + Criterias []*SortCriteria + func ParseSorting(s string) (*Sorting, error) + func (*Sorting) Descriptor() ([]byte, []int) + func (*Sorting) ProtoMessage() + func (m *Sorting) GetCriterias() []*SortCriteria + func (m *Sorting) Reset() + func (m *Sorting) String() string + func (s Sorting) GoString() string + type StringCondition struct + FieldPath []string + IsNegative bool + Type StringCondition_Type + Value string + func (*StringCondition) Descriptor() ([]byte, []int) + func (*StringCondition) ProtoMessage() + func (c *StringCondition) Filter(obj interface{}) (bool, error) + func (m *StringCondition) GetFieldPath() []string + func (m *StringCondition) GetIsNegative() bool + func (m *StringCondition) GetType() StringCondition_Type + func (m *StringCondition) GetValue() string + func (m *StringCondition) Reset() + func (m *StringCondition) String() string + type StringCondition_Type int32 + const StringCondition_EQ + const StringCondition_MATCH + func (StringCondition_Type) EnumDescriptor() ([]byte, []int) + func (x StringCondition_Type) String() string + type StringToken struct + Value string + func (t StringToken) String() string + type Token interface + Token func() + type TokenBase struct + func (t TokenBase) Token() + type TypeMismatchError struct + FieldPath []string + ReqType string + func (e *TypeMismatchError) Error() string + type UnexpectedSymbolError struct + Pos int + S rune + func (e *UnexpectedSymbolError) Error() string + type UnexpectedTokenError struct + T Token + func (e *UnexpectedTokenError) Error() string + type UnsupportedOperatorError struct + Op string + Type string + func (e *UnsupportedOperatorError) Error() string