Versions in this module Expand all Collapse all v2 v2.1.6 Feb 19, 2024 v2.1.5 Feb 19, 2024 v2.1.4 Feb 15, 2024 Changes in this version + const DefaultLimit + var File_github_com_lunchroum_atlas_app_toolkit_query_collection_operators_proto protoreflect.FileDescriptor + var LogicalOperator_Type_name = map[int32]string + var LogicalOperator_Type_value = map[string]int32 + var NumberArrayCondition_Type_name = map[int32]string + var NumberArrayCondition_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 StringArrayCondition_Type_name = map[int32]string + var StringArrayCondition_Type_value = map[string]int32 + var StringCondition_Type_name = map[int32]string + var StringCondition_Type_value = map[string]int32 + func DecodePageToken(ptoken string) (offset, limit int32, err error) + func EncodePageToken(offset, limit int32) string + 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 (x *Field) GetName() string + func (x *Field) GetSubs() map[string]*Field + func (x *Field) ProtoReflect() protoreflect.Message + func (x *Field) Reset() + func (x *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) AllFieldStrings() []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 (x *FieldSelection) GetFields() map[string]*Field + func (x *FieldSelection) ProtoReflect() protoreflect.Message + func (x *FieldSelection) Reset() + func (x *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 (m *Filtering) Filter(obj interface{}) (bool, error) + func (m *Filtering) GetRoot() isFiltering_Root + func (m *Filtering) SetRoot(r interface{}) error + func (x *Filtering) GetNullCondition() *NullCondition + func (x *Filtering) GetNumberArrayCondition() *NumberArrayCondition + func (x *Filtering) GetNumberCondition() *NumberCondition + func (x *Filtering) GetOperator() *LogicalOperator + func (x *Filtering) GetStringArrayCondition() *StringArrayCondition + func (x *Filtering) GetStringCondition() *StringCondition + func (x *Filtering) ProtoReflect() protoreflect.Message + func (x *Filtering) Reset() + func (x *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_NumberArrayCondition struct + NumberArrayCondition *NumberArrayCondition + func (m *Filtering_NumberArrayCondition) 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_StringArrayCondition struct + StringArrayCondition *StringArrayCondition + func (m *Filtering_StringArrayCondition) 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 InToken struct + func (t InToken) String() string + type InsensitiveEqToken struct + func (t InsensitiveEqToken) 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 (lop *LogicalOperator) Filter(obj interface{}) (bool, error) + func (m *LogicalOperator) GetLeft() isLogicalOperator_Left + func (m *LogicalOperator) GetRight() isLogicalOperator_Right + func (m *LogicalOperator) SetLeft(l interface{}) error + func (m *LogicalOperator) SetRight(r interface{}) error + func (x *LogicalOperator) GetIsNegative() bool + func (x *LogicalOperator) GetLeftNullCondition() *NullCondition + func (x *LogicalOperator) GetLeftNumberArrayCondition() *NumberArrayCondition + func (x *LogicalOperator) GetLeftNumberCondition() *NumberCondition + func (x *LogicalOperator) GetLeftOperator() *LogicalOperator + func (x *LogicalOperator) GetLeftStringArrayCondition() *StringArrayCondition + func (x *LogicalOperator) GetLeftStringCondition() *StringCondition + func (x *LogicalOperator) GetRightNullCondition() *NullCondition + func (x *LogicalOperator) GetRightNumberArrayCondition() *NumberArrayCondition + func (x *LogicalOperator) GetRightNumberCondition() *NumberCondition + func (x *LogicalOperator) GetRightOperator() *LogicalOperator + func (x *LogicalOperator) GetRightStringArrayCondition() *StringArrayCondition + func (x *LogicalOperator) GetRightStringCondition() *StringCondition + func (x *LogicalOperator) GetType() LogicalOperator_Type + func (x *LogicalOperator) ProtoReflect() protoreflect.Message + func (x *LogicalOperator) Reset() + func (x *LogicalOperator) String() string + type LogicalOperator_LeftNullCondition struct + LeftNullCondition *NullCondition + func (m *LogicalOperator_LeftNullCondition) Filter(obj interface{}) (bool, error) + type LogicalOperator_LeftNumberArrayCondition struct + LeftNumberArrayCondition *NumberArrayCondition + func (m *LogicalOperator_LeftNumberArrayCondition) 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_LeftStringArrayCondition struct + LeftStringArrayCondition *StringArrayCondition + func (m *LogicalOperator_LeftStringArrayCondition) 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_RightNumberArrayCondition struct + RightNumberArrayCondition *NumberArrayCondition + func (m *LogicalOperator_RightNumberArrayCondition) 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_RightStringArrayCondition struct + RightStringArrayCondition *StringArrayCondition + func (m *LogicalOperator_RightStringArrayCondition) 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) Descriptor() protoreflect.EnumDescriptor + func (LogicalOperator_Type) EnumDescriptor() ([]byte, []int) + func (LogicalOperator_Type) Type() protoreflect.EnumType + func (x LogicalOperator_Type) Enum() *LogicalOperator_Type + func (x LogicalOperator_Type) Number() protoreflect.EnumNumber + 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 (x *NullCondition) GetFieldPath() []string + func (x *NullCondition) GetIsNegative() bool + func (x *NullCondition) ProtoReflect() protoreflect.Message + func (x *NullCondition) Reset() + func (x *NullCondition) String() string + type NullToken struct + func (t NullToken) String() string + type NumberArrayCondition struct + FieldPath []string + IsNegative bool + Type NumberArrayCondition_Type + Values []float64 + func (*NumberArrayCondition) Descriptor() ([]byte, []int) + func (*NumberArrayCondition) ProtoMessage() + func (c *NumberArrayCondition) Filter(obj interface{}) (bool, error) + func (x *NumberArrayCondition) GetFieldPath() []string + func (x *NumberArrayCondition) GetIsNegative() bool + func (x *NumberArrayCondition) GetType() NumberArrayCondition_Type + func (x *NumberArrayCondition) GetValues() []float64 + func (x *NumberArrayCondition) ProtoReflect() protoreflect.Message + func (x *NumberArrayCondition) Reset() + func (x *NumberArrayCondition) String() string + type NumberArrayCondition_Type int32 + const NumberArrayCondition_IN + func (NumberArrayCondition_Type) Descriptor() protoreflect.EnumDescriptor + func (NumberArrayCondition_Type) EnumDescriptor() ([]byte, []int) + func (NumberArrayCondition_Type) Type() protoreflect.EnumType + func (x NumberArrayCondition_Type) Enum() *NumberArrayCondition_Type + func (x NumberArrayCondition_Type) Number() protoreflect.EnumNumber + func (x NumberArrayCondition_Type) String() string + type NumberArrayToken struct + Values []float64 + func (t NumberArrayToken) 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 (x *NumberCondition) GetFieldPath() []string + func (x *NumberCondition) GetIsNegative() bool + func (x *NumberCondition) GetType() NumberCondition_Type + func (x *NumberCondition) GetValue() float64 + func (x *NumberCondition) ProtoReflect() protoreflect.Message + func (x *NumberCondition) Reset() + func (x *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) Descriptor() protoreflect.EnumDescriptor + func (NumberCondition_Type) EnumDescriptor() ([]byte, []int) + func (NumberCondition_Type) Type() protoreflect.EnumType + func (x NumberCondition_Type) Enum() *NumberCondition_Type + func (x NumberCondition_Type) Number() protoreflect.EnumNumber + 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 (p *PageInfo) NoMore() bool + func (p *PageInfo) SetLastOffset() + func (p *PageInfo) SetLastToken() + func (x *PageInfo) GetOffset() int32 + func (x *PageInfo) GetPageToken() string + func (x *PageInfo) GetSize() int32 + func (x *PageInfo) ProtoReflect() protoreflect.Message + func (x *PageInfo) Reset() + func (x *PageInfo) String() string + 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 (p *Pagination) DefaultLimit(dl ...int32) int32 + func (p *Pagination) FirstPage() bool + func (x *Pagination) GetLimit() int32 + func (x *Pagination) GetOffset() int32 + func (x *Pagination) GetPageToken() string + func (x *Pagination) ProtoReflect() protoreflect.Message + func (x *Pagination) Reset() + func (x *Pagination) String() string + type RparenToken struct + func (t RparenToken) String() string + type Searching struct + Query string + func ParseSearching(s string) *Searching + func (*Searching) Descriptor() ([]byte, []int) + func (*Searching) ProtoMessage() + func (s *Searching) GoString() string + func (x *Searching) GetQuery() string + func (x *Searching) ProtoReflect() protoreflect.Message + func (x *Searching) Reset() + func (x *Searching) 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 (x *SortCriteria) GetOrder() SortCriteria_Order + func (x *SortCriteria) GetTag() string + func (x *SortCriteria) ProtoReflect() protoreflect.Message + func (x *SortCriteria) Reset() + func (x *SortCriteria) String() string + type SortCriteria_Order int32 + const SortCriteria_ASC + const SortCriteria_DESC + func (SortCriteria_Order) Descriptor() protoreflect.EnumDescriptor + func (SortCriteria_Order) EnumDescriptor() ([]byte, []int) + func (SortCriteria_Order) Type() protoreflect.EnumType + func (x SortCriteria_Order) Enum() *SortCriteria_Order + func (x SortCriteria_Order) Number() protoreflect.EnumNumber + 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 (s Sorting) GoString() string + func (x *Sorting) GetCriterias() []*SortCriteria + func (x *Sorting) ProtoReflect() protoreflect.Message + func (x *Sorting) Reset() + func (x *Sorting) String() string + type StringArrayCondition struct + FieldPath []string + IsNegative bool + Type StringArrayCondition_Type + Values []string + func (*StringArrayCondition) Descriptor() ([]byte, []int) + func (*StringArrayCondition) ProtoMessage() + func (c *StringArrayCondition) Filter(obj interface{}) (bool, error) + func (x *StringArrayCondition) GetFieldPath() []string + func (x *StringArrayCondition) GetIsNegative() bool + func (x *StringArrayCondition) GetType() StringArrayCondition_Type + func (x *StringArrayCondition) GetValues() []string + func (x *StringArrayCondition) ProtoReflect() protoreflect.Message + func (x *StringArrayCondition) Reset() + func (x *StringArrayCondition) String() string + type StringArrayCondition_Type int32 + const StringArrayCondition_IN + func (StringArrayCondition_Type) Descriptor() protoreflect.EnumDescriptor + func (StringArrayCondition_Type) EnumDescriptor() ([]byte, []int) + func (StringArrayCondition_Type) Type() protoreflect.EnumType + func (x StringArrayCondition_Type) Enum() *StringArrayCondition_Type + func (x StringArrayCondition_Type) Number() protoreflect.EnumNumber + func (x StringArrayCondition_Type) String() string + type StringArrayToken struct + Values []string + func (t StringArrayToken) String() 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 (x *StringCondition) GetFieldPath() []string + func (x *StringCondition) GetIsNegative() bool + func (x *StringCondition) GetType() StringCondition_Type + func (x *StringCondition) GetValue() string + func (x *StringCondition) ProtoReflect() protoreflect.Message + func (x *StringCondition) Reset() + func (x *StringCondition) String() string + type StringCondition_Type int32 + const StringCondition_EQ + const StringCondition_GE + const StringCondition_GT + const StringCondition_IEQ + const StringCondition_LE + const StringCondition_LT + const StringCondition_MATCH + func (StringCondition_Type) Descriptor() protoreflect.EnumDescriptor + func (StringCondition_Type) EnumDescriptor() ([]byte, []int) + func (StringCondition_Type) Type() protoreflect.EnumType + func (x StringCondition_Type) Enum() *StringCondition_Type + func (x StringCondition_Type) Number() protoreflect.EnumNumber + 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 Other modules containing this package github.com/lunchroum/atlas-app-toolkit