Documentation ¶
Index ¶
- Variables
- func IPV4CIDRToRegex(cidr string) (string, error)
- func RangeToRegex(min, max int) string
- type BoolFilter
- func (*BoolFilter) Descriptor() ([]byte, []int)deprecated
- func (b *BoolFilter) Eval(g getter.Getter) bool
- func (x *BoolFilter) GetFilters() []*Filter
- func (x *BoolFilter) GetOp() BoolFilterOp
- func (*BoolFilter) ProtoMessage()
- func (x *BoolFilter) ProtoReflect() protoreflect.Message
- func (x *BoolFilter) Reset()
- func (x *BoolFilter) String() string
- type BoolFilterOp
- func (BoolFilterOp) Descriptor() protoreflect.EnumDescriptor
- func (x BoolFilterOp) Enum() *BoolFilterOp
- func (BoolFilterOp) EnumDescriptor() ([]byte, []int)deprecated
- func (x BoolFilterOp) Number() protoreflect.EnumNumber
- func (x BoolFilterOp) String() string
- func (BoolFilterOp) Type() protoreflect.EnumType
- type Filter
- func NewAndFilter(filters ...*Filter) *Filter
- func NewBoolFilter(op BoolFilterOp, filters ...*Filter) *Filter
- func NewFilterActiveIn(fr Range, prefix string) *Filter
- func NewFilterIncludedIn(fr Range, prefix string) *Filter
- func NewGtInt64Filter(key string, value int64) *Filter
- func NewGteInt64Filter(key string, value int64) *Filter
- func NewLtInt64Filter(key string, value int64) *Filter
- func NewLteInt64Filter(key string, value int64) *Filter
- func NewNotFilter(filter *Filter) *Filter
- func NewNotNullFilter(key string) *Filter
- func NewNullFilter(key string) *Filter
- func NewOrFilter(filters ...*Filter) *Filter
- func NewOrTermStringFilter(values []string, attrs ...string) *Filter
- func NewTermBoolFilter(key string, value bool) *Filter
- func NewTermInt64Filter(key string, value int64) *Filter
- func NewTermStringFilter(key string, value string) *Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (f *Filter) Eval(g getter.Getter) bool
- func (x *Filter) GetBoolFilter() *BoolFilter
- func (x *Filter) GetGtInt64Filter() *GtInt64Filter
- func (x *Filter) GetGteInt64Filter() *GteInt64Filter
- func (x *Filter) GetIPV4RangeFilter() *IPV4RangeFilter
- func (x *Filter) GetLtInt64Filter() *LtInt64Filter
- func (x *Filter) GetLteInt64Filter() *LteInt64Filter
- func (x *Filter) GetNullFilter() *NullFilter
- func (x *Filter) GetRegexFilter() *RegexFilter
- func (x *Filter) GetTermBoolFilter() *TermBoolFilter
- func (x *Filter) GetTermInt64Filter() *TermInt64Filter
- func (x *Filter) GetTermStringFilter() *TermStringFilter
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type GtInt64Filter
- func (*GtInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *GtInt64Filter) GetKey() string
- func (x *GtInt64Filter) GetValue() int64
- func (*GtInt64Filter) ProtoMessage()
- func (x *GtInt64Filter) ProtoReflect() protoreflect.Message
- func (x *GtInt64Filter) Reset()
- func (x *GtInt64Filter) String() string
- type GteInt64Filter
- func (*GteInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *GteInt64Filter) GetKey() string
- func (x *GteInt64Filter) GetValue() int64
- func (*GteInt64Filter) ProtoMessage()
- func (x *GteInt64Filter) ProtoReflect() protoreflect.Message
- func (x *GteInt64Filter) Reset()
- func (x *GteInt64Filter) String() string
- type IPV4RangeFilter
- func (*IPV4RangeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *IPV4RangeFilter) GetKey() string
- func (x *IPV4RangeFilter) GetValue() string
- func (*IPV4RangeFilter) ProtoMessage()
- func (x *IPV4RangeFilter) ProtoReflect() protoreflect.Message
- func (x *IPV4RangeFilter) Reset()
- func (x *IPV4RangeFilter) String() string
- type LtInt64Filter
- func (*LtInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *LtInt64Filter) GetKey() string
- func (x *LtInt64Filter) GetValue() int64
- func (*LtInt64Filter) ProtoMessage()
- func (x *LtInt64Filter) ProtoReflect() protoreflect.Message
- func (x *LtInt64Filter) Reset()
- func (x *LtInt64Filter) String() string
- type LteInt64Filter
- func (*LteInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *LteInt64Filter) GetKey() string
- func (x *LteInt64Filter) GetValue() int64
- func (*LteInt64Filter) ProtoMessage()
- func (x *LteInt64Filter) ProtoReflect() protoreflect.Message
- func (x *LteInt64Filter) Reset()
- func (x *LteInt64Filter) String() string
- type NeInt64Filter
- func (*NeInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *NeInt64Filter) GetKey() string
- func (x *NeInt64Filter) GetValue() int64
- func (*NeInt64Filter) ProtoMessage()
- func (x *NeInt64Filter) ProtoReflect() protoreflect.Message
- func (x *NeInt64Filter) Reset()
- func (x *NeInt64Filter) String() string
- type NeStringFilter
- func (*NeStringFilter) Descriptor() ([]byte, []int)deprecated
- func (x *NeStringFilter) GetKey() string
- func (x *NeStringFilter) GetValue() string
- func (*NeStringFilter) ProtoMessage()
- func (x *NeStringFilter) ProtoReflect() protoreflect.Message
- func (x *NeStringFilter) Reset()
- func (x *NeStringFilter) String() string
- type NullFilter
- type Range
- type RegexFilter
- type SearchQuery
- func (*SearchQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SearchQuery) GetDedup() bool
- func (x *SearchQuery) GetDedupBy() string
- func (x *SearchQuery) GetFilter() *Filter
- func (x *SearchQuery) GetPaginationRange() *Range
- func (x *SearchQuery) GetSort() bool
- func (x *SearchQuery) GetSortBy() string
- func (x *SearchQuery) GetSortOrder() SortOrder
- func (*SearchQuery) ProtoMessage()
- func (x *SearchQuery) ProtoReflect() protoreflect.Message
- func (x *SearchQuery) Reset()
- func (x *SearchQuery) String() string
- type SortOrder
- type TermBoolFilter
- func (*TermBoolFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TermBoolFilter) GetKey() string
- func (x *TermBoolFilter) GetValue() bool
- func (*TermBoolFilter) ProtoMessage()
- func (x *TermBoolFilter) ProtoReflect() protoreflect.Message
- func (x *TermBoolFilter) Reset()
- func (x *TermBoolFilter) String() string
- type TermInt64Filter
- func (*TermInt64Filter) Descriptor() ([]byte, []int)deprecated
- func (x *TermInt64Filter) GetKey() string
- func (x *TermInt64Filter) GetValue() int64
- func (*TermInt64Filter) ProtoMessage()
- func (x *TermInt64Filter) ProtoReflect() protoreflect.Message
- func (x *TermInt64Filter) Reset()
- func (x *TermInt64Filter) String() string
- type TermStringFilter
- func (*TermStringFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TermStringFilter) GetKey() string
- func (x *TermStringFilter) GetValue() string
- func (*TermStringFilter) ProtoMessage()
- func (x *TermStringFilter) ProtoReflect() protoreflect.Message
- func (x *TermStringFilter) Reset()
- func (x *TermStringFilter) String() string
Constants ¶
This section is empty.
Variables ¶
var ( BoolFilterOp_name = map[int32]string{ 0: "OR", 1: "AND", 2: "NOT", } BoolFilterOp_value = map[string]int32{ "OR": 0, "AND": 1, "NOT": 2, } )
Enum value maps for BoolFilterOp.
var ( SortOrder_name = map[int32]string{ 0: "NoOrder", 1: "Ascending", 2: "Descending", } SortOrder_value = map[string]int32{ "NoOrder": 0, "Ascending": 1, "Descending": 2, } )
Enum value maps for SortOrder.
var File_graffiti_filters_filters_proto protoreflect.FileDescriptor
Functions ¶
func IPV4CIDRToRegex ¶
IPV4CIDRToRegex returns a regex matching IPs belonging to a given cidr
func RangeToRegex ¶
RangeToRegex returns a regular expression matching number in the given range Golang version of https://github.com/dimka665/range-regex
Types ¶
type BoolFilter ¶
type BoolFilter struct { Op BoolFilterOp `protobuf:"varint,1,opt,name=Op,proto3,enum=filters.BoolFilterOp" json:"Op,omitempty"` Filters []*Filter `protobuf:"bytes,2,rep,name=Filters,proto3" json:"Filters,omitempty"` // contains filtered or unexported fields }
func (*BoolFilter) Descriptor
deprecated
func (*BoolFilter) Descriptor() ([]byte, []int)
Deprecated: Use BoolFilter.ProtoReflect.Descriptor instead.
func (*BoolFilter) Eval ¶
func (b *BoolFilter) Eval(g getter.Getter) bool
Eval evaluates a boolean (not, and, or) filter
func (*BoolFilter) GetFilters ¶
func (x *BoolFilter) GetFilters() []*Filter
func (*BoolFilter) GetOp ¶
func (x *BoolFilter) GetOp() BoolFilterOp
func (*BoolFilter) ProtoMessage ¶
func (*BoolFilter) ProtoMessage()
func (*BoolFilter) ProtoReflect ¶
func (x *BoolFilter) ProtoReflect() protoreflect.Message
func (*BoolFilter) Reset ¶
func (x *BoolFilter) Reset()
func (*BoolFilter) String ¶
func (x *BoolFilter) String() string
type BoolFilterOp ¶
type BoolFilterOp int32
const ( BoolFilterOp_OR BoolFilterOp = 0 BoolFilterOp_AND BoolFilterOp = 1 BoolFilterOp_NOT BoolFilterOp = 2 )
func (BoolFilterOp) Descriptor ¶
func (BoolFilterOp) Descriptor() protoreflect.EnumDescriptor
func (BoolFilterOp) Enum ¶
func (x BoolFilterOp) Enum() *BoolFilterOp
func (BoolFilterOp) EnumDescriptor
deprecated
func (BoolFilterOp) EnumDescriptor() ([]byte, []int)
Deprecated: Use BoolFilterOp.Descriptor instead.
func (BoolFilterOp) Number ¶
func (x BoolFilterOp) Number() protoreflect.EnumNumber
func (BoolFilterOp) String ¶
func (x BoolFilterOp) String() string
func (BoolFilterOp) Type ¶
func (BoolFilterOp) Type() protoreflect.EnumType
type Filter ¶
type Filter struct { TermStringFilter *TermStringFilter `protobuf:"bytes,1,opt,name=TermStringFilter,proto3" json:"TermStringFilter,omitempty"` TermInt64Filter *TermInt64Filter `protobuf:"bytes,2,opt,name=TermInt64Filter,proto3" json:"TermInt64Filter,omitempty"` TermBoolFilter *TermBoolFilter `protobuf:"bytes,3,opt,name=TermBoolFilter,proto3" json:"TermBoolFilter,omitempty"` GtInt64Filter *GtInt64Filter `protobuf:"bytes,4,opt,name=GtInt64Filter,proto3" json:"GtInt64Filter,omitempty"` LtInt64Filter *LtInt64Filter `protobuf:"bytes,5,opt,name=LtInt64Filter,proto3" json:"LtInt64Filter,omitempty"` GteInt64Filter *GteInt64Filter `protobuf:"bytes,6,opt,name=GteInt64Filter,proto3" json:"GteInt64Filter,omitempty"` LteInt64Filter *LteInt64Filter `protobuf:"bytes,7,opt,name=LteInt64Filter,proto3" json:"LteInt64Filter,omitempty"` BoolFilter *BoolFilter `protobuf:"bytes,8,opt,name=BoolFilter,proto3" json:"BoolFilter,omitempty"` RegexFilter *RegexFilter `protobuf:"bytes,9,opt,name=RegexFilter,proto3" json:"RegexFilter,omitempty"` NullFilter *NullFilter `protobuf:"bytes,10,opt,name=NullFilter,proto3" json:"NullFilter,omitempty"` IPV4RangeFilter *IPV4RangeFilter `protobuf:"bytes,11,opt,name=IPV4RangeFilter,proto3" json:"IPV4RangeFilter,omitempty"` // contains filtered or unexported fields }
func NewAndFilter ¶
NewAndFilter creates a new boolean And filter
func NewBoolFilter ¶
func NewBoolFilter(op BoolFilterOp, filters ...*Filter) *Filter
NewBoolFilter creates a new boolean filter
func NewFilterActiveIn ¶
NewFilterActiveIn returns a filter that returns elements that were active in the given time range.
func NewFilterIncludedIn ¶
NewFilterIncludedIn returns a filter that returns elements that include in the time range.
func NewGtInt64Filter ¶
NewGtInt64Filter creates a new > filter
func NewGteInt64Filter ¶
NewGteInt64Filter creates a new >= filter
func NewLtInt64Filter ¶
NewLtInt64Filter creates a new < filter
func NewLteInt64Filter ¶
NewLteInt64Filter creates a new <= filter
func NewNotFilter ¶
NewNotFilter creates a new boolean Not filter
func NewNotNullFilter ¶
NewNotNullFilter returns a filter that returns elements with a field set.
func NewOrFilter ¶
NewOrFilter creates a new boolean Or filter
func NewOrTermStringFilter ¶
NewOrTermStringFilter creates a new "or" filter based on values and attributes
func NewTermBoolFilter ¶
NewTermBoolFilter creates a new bool filter
func NewTermInt64Filter ¶
NewTermInt64Filter creates a new string iny64 filter
func NewTermStringFilter ¶
NewTermStringFilter creates a new string filter
func (*Filter) Descriptor
deprecated
func (*Filter) GetBoolFilter ¶
func (x *Filter) GetBoolFilter() *BoolFilter
func (*Filter) GetGtInt64Filter ¶
func (x *Filter) GetGtInt64Filter() *GtInt64Filter
func (*Filter) GetGteInt64Filter ¶
func (x *Filter) GetGteInt64Filter() *GteInt64Filter
func (*Filter) GetIPV4RangeFilter ¶
func (x *Filter) GetIPV4RangeFilter() *IPV4RangeFilter
func (*Filter) GetLtInt64Filter ¶
func (x *Filter) GetLtInt64Filter() *LtInt64Filter
func (*Filter) GetLteInt64Filter ¶
func (x *Filter) GetLteInt64Filter() *LteInt64Filter
func (*Filter) GetNullFilter ¶
func (x *Filter) GetNullFilter() *NullFilter
func (*Filter) GetRegexFilter ¶
func (x *Filter) GetRegexFilter() *RegexFilter
func (*Filter) GetTermBoolFilter ¶
func (x *Filter) GetTermBoolFilter() *TermBoolFilter
func (*Filter) GetTermInt64Filter ¶
func (x *Filter) GetTermInt64Filter() *TermInt64Filter
func (*Filter) GetTermStringFilter ¶
func (x *Filter) GetTermStringFilter() *TermStringFilter
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type GtInt64Filter ¶
type GtInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*GtInt64Filter) Descriptor
deprecated
func (*GtInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use GtInt64Filter.ProtoReflect.Descriptor instead.
func (*GtInt64Filter) GetKey ¶
func (x *GtInt64Filter) GetKey() string
func (*GtInt64Filter) GetValue ¶
func (x *GtInt64Filter) GetValue() int64
func (*GtInt64Filter) ProtoMessage ¶
func (*GtInt64Filter) ProtoMessage()
func (*GtInt64Filter) ProtoReflect ¶
func (x *GtInt64Filter) ProtoReflect() protoreflect.Message
func (*GtInt64Filter) Reset ¶
func (x *GtInt64Filter) Reset()
func (*GtInt64Filter) String ¶
func (x *GtInt64Filter) String() string
type GteInt64Filter ¶
type GteInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*GteInt64Filter) Descriptor
deprecated
func (*GteInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use GteInt64Filter.ProtoReflect.Descriptor instead.
func (*GteInt64Filter) GetKey ¶
func (x *GteInt64Filter) GetKey() string
func (*GteInt64Filter) GetValue ¶
func (x *GteInt64Filter) GetValue() int64
func (*GteInt64Filter) ProtoMessage ¶
func (*GteInt64Filter) ProtoMessage()
func (*GteInt64Filter) ProtoReflect ¶
func (x *GteInt64Filter) ProtoReflect() protoreflect.Message
func (*GteInt64Filter) Reset ¶
func (x *GteInt64Filter) Reset()
func (*GteInt64Filter) String ¶
func (x *GteInt64Filter) String() string
type IPV4RangeFilter ¶
type IPV4RangeFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func NewIPV4RangeFilter ¶
func NewIPV4RangeFilter(key, cidr string) (*IPV4RangeFilter, error)
NewIPV4RangeFilter creates a regex based filter corresponding to the ip range
func (*IPV4RangeFilter) Descriptor
deprecated
func (*IPV4RangeFilter) Descriptor() ([]byte, []int)
Deprecated: Use IPV4RangeFilter.ProtoReflect.Descriptor instead.
func (*IPV4RangeFilter) GetKey ¶
func (x *IPV4RangeFilter) GetKey() string
func (*IPV4RangeFilter) GetValue ¶
func (x *IPV4RangeFilter) GetValue() string
func (*IPV4RangeFilter) ProtoMessage ¶
func (*IPV4RangeFilter) ProtoMessage()
func (*IPV4RangeFilter) ProtoReflect ¶
func (x *IPV4RangeFilter) ProtoReflect() protoreflect.Message
func (*IPV4RangeFilter) Reset ¶
func (x *IPV4RangeFilter) Reset()
func (*IPV4RangeFilter) String ¶
func (x *IPV4RangeFilter) String() string
type LtInt64Filter ¶
type LtInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*LtInt64Filter) Descriptor
deprecated
func (*LtInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use LtInt64Filter.ProtoReflect.Descriptor instead.
func (*LtInt64Filter) GetKey ¶
func (x *LtInt64Filter) GetKey() string
func (*LtInt64Filter) GetValue ¶
func (x *LtInt64Filter) GetValue() int64
func (*LtInt64Filter) ProtoMessage ¶
func (*LtInt64Filter) ProtoMessage()
func (*LtInt64Filter) ProtoReflect ¶
func (x *LtInt64Filter) ProtoReflect() protoreflect.Message
func (*LtInt64Filter) Reset ¶
func (x *LtInt64Filter) Reset()
func (*LtInt64Filter) String ¶
func (x *LtInt64Filter) String() string
type LteInt64Filter ¶
type LteInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*LteInt64Filter) Descriptor
deprecated
func (*LteInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use LteInt64Filter.ProtoReflect.Descriptor instead.
func (*LteInt64Filter) GetKey ¶
func (x *LteInt64Filter) GetKey() string
func (*LteInt64Filter) GetValue ¶
func (x *LteInt64Filter) GetValue() int64
func (*LteInt64Filter) ProtoMessage ¶
func (*LteInt64Filter) ProtoMessage()
func (*LteInt64Filter) ProtoReflect ¶
func (x *LteInt64Filter) ProtoReflect() protoreflect.Message
func (*LteInt64Filter) Reset ¶
func (x *LteInt64Filter) Reset()
func (*LteInt64Filter) String ¶
func (x *LteInt64Filter) String() string
type NeInt64Filter ¶
type NeInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*NeInt64Filter) Descriptor
deprecated
func (*NeInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use NeInt64Filter.ProtoReflect.Descriptor instead.
func (*NeInt64Filter) GetKey ¶
func (x *NeInt64Filter) GetKey() string
func (*NeInt64Filter) GetValue ¶
func (x *NeInt64Filter) GetValue() int64
func (*NeInt64Filter) ProtoMessage ¶
func (*NeInt64Filter) ProtoMessage()
func (*NeInt64Filter) ProtoReflect ¶
func (x *NeInt64Filter) ProtoReflect() protoreflect.Message
func (*NeInt64Filter) Reset ¶
func (x *NeInt64Filter) Reset()
func (*NeInt64Filter) String ¶
func (x *NeInt64Filter) String() string
type NeStringFilter ¶
type NeStringFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*NeStringFilter) Descriptor
deprecated
func (*NeStringFilter) Descriptor() ([]byte, []int)
Deprecated: Use NeStringFilter.ProtoReflect.Descriptor instead.
func (*NeStringFilter) GetKey ¶
func (x *NeStringFilter) GetKey() string
func (*NeStringFilter) GetValue ¶
func (x *NeStringFilter) GetValue() string
func (*NeStringFilter) ProtoMessage ¶
func (*NeStringFilter) ProtoMessage()
func (*NeStringFilter) ProtoReflect ¶
func (x *NeStringFilter) ProtoReflect() protoreflect.Message
func (*NeStringFilter) Reset ¶
func (x *NeStringFilter) Reset()
func (*NeStringFilter) String ¶
func (x *NeStringFilter) String() string
type NullFilter ¶
type NullFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` // contains filtered or unexported fields }
func (*NullFilter) Descriptor
deprecated
func (*NullFilter) Descriptor() ([]byte, []int)
Deprecated: Use NullFilter.ProtoReflect.Descriptor instead.
func (*NullFilter) GetKey ¶
func (x *NullFilter) GetKey() string
func (*NullFilter) ProtoMessage ¶
func (*NullFilter) ProtoMessage()
func (*NullFilter) ProtoReflect ¶
func (x *NullFilter) ProtoReflect() protoreflect.Message
func (*NullFilter) Reset ¶
func (x *NullFilter) Reset()
func (*NullFilter) String ¶
func (x *NullFilter) String() string
type Range ¶
type Range struct { From int64 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"` To int64 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"` // contains filtered or unexported fields }
func (*Range) Descriptor
deprecated
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type RegexFilter ¶
type RegexFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func NewRegexFilter ¶
func NewRegexFilter(key string, pattern string) (*RegexFilter, error)
NewRegexFilter returns a new regular expression based filter
func (*RegexFilter) Descriptor
deprecated
func (*RegexFilter) Descriptor() ([]byte, []int)
Deprecated: Use RegexFilter.ProtoReflect.Descriptor instead.
func (*RegexFilter) GetKey ¶
func (x *RegexFilter) GetKey() string
func (*RegexFilter) GetValue ¶
func (x *RegexFilter) GetValue() string
func (*RegexFilter) ProtoMessage ¶
func (*RegexFilter) ProtoMessage()
func (*RegexFilter) ProtoReflect ¶
func (x *RegexFilter) ProtoReflect() protoreflect.Message
func (*RegexFilter) Reset ¶
func (x *RegexFilter) Reset()
func (*RegexFilter) String ¶
func (x *RegexFilter) String() string
type SearchQuery ¶
type SearchQuery struct { Filter *Filter `protobuf:"bytes,1,opt,name=Filter,proto3" json:"Filter,omitempty"` PaginationRange *Range `protobuf:"bytes,2,opt,name=PaginationRange,proto3" json:"PaginationRange,omitempty"` Sort bool `protobuf:"varint,3,opt,name=Sort,proto3" json:"Sort,omitempty"` Dedup bool `protobuf:"varint,4,opt,name=Dedup,proto3" json:"Dedup,omitempty"` DedupBy string `protobuf:"bytes,5,opt,name=DedupBy,proto3" json:"DedupBy,omitempty"` SortBy string `protobuf:"bytes,6,opt,name=SortBy,proto3" json:"SortBy,omitempty"` SortOrder SortOrder `protobuf:"varint,7,opt,name=SortOrder,proto3,enum=filters.SortOrder" json:"SortOrder,omitempty"` // contains filtered or unexported fields }
func (*SearchQuery) Descriptor
deprecated
func (*SearchQuery) Descriptor() ([]byte, []int)
Deprecated: Use SearchQuery.ProtoReflect.Descriptor instead.
func (*SearchQuery) GetDedup ¶
func (x *SearchQuery) GetDedup() bool
func (*SearchQuery) GetDedupBy ¶
func (x *SearchQuery) GetDedupBy() string
func (*SearchQuery) GetFilter ¶
func (x *SearchQuery) GetFilter() *Filter
func (*SearchQuery) GetPaginationRange ¶
func (x *SearchQuery) GetPaginationRange() *Range
func (*SearchQuery) GetSort ¶
func (x *SearchQuery) GetSort() bool
func (*SearchQuery) GetSortBy ¶
func (x *SearchQuery) GetSortBy() string
func (*SearchQuery) GetSortOrder ¶
func (x *SearchQuery) GetSortOrder() SortOrder
func (*SearchQuery) ProtoMessage ¶
func (*SearchQuery) ProtoMessage()
func (*SearchQuery) ProtoReflect ¶
func (x *SearchQuery) ProtoReflect() protoreflect.Message
func (*SearchQuery) Reset ¶
func (x *SearchQuery) Reset()
func (*SearchQuery) String ¶
func (x *SearchQuery) String() string
type SortOrder ¶
type SortOrder int32
func (SortOrder) Descriptor ¶
func (SortOrder) Descriptor() protoreflect.EnumDescriptor
func (SortOrder) EnumDescriptor
deprecated
func (SortOrder) Number ¶
func (x SortOrder) Number() protoreflect.EnumNumber
func (SortOrder) Type ¶
func (SortOrder) Type() protoreflect.EnumType
type TermBoolFilter ¶
type TermBoolFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value bool `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*TermBoolFilter) Descriptor
deprecated
func (*TermBoolFilter) Descriptor() ([]byte, []int)
Deprecated: Use TermBoolFilter.ProtoReflect.Descriptor instead.
func (*TermBoolFilter) GetKey ¶
func (x *TermBoolFilter) GetKey() string
func (*TermBoolFilter) GetValue ¶
func (x *TermBoolFilter) GetValue() bool
func (*TermBoolFilter) ProtoMessage ¶
func (*TermBoolFilter) ProtoMessage()
func (*TermBoolFilter) ProtoReflect ¶
func (x *TermBoolFilter) ProtoReflect() protoreflect.Message
func (*TermBoolFilter) Reset ¶
func (x *TermBoolFilter) Reset()
func (*TermBoolFilter) String ¶
func (x *TermBoolFilter) String() string
type TermInt64Filter ¶
type TermInt64Filter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*TermInt64Filter) Descriptor
deprecated
func (*TermInt64Filter) Descriptor() ([]byte, []int)
Deprecated: Use TermInt64Filter.ProtoReflect.Descriptor instead.
func (*TermInt64Filter) GetKey ¶
func (x *TermInt64Filter) GetKey() string
func (*TermInt64Filter) GetValue ¶
func (x *TermInt64Filter) GetValue() int64
func (*TermInt64Filter) ProtoMessage ¶
func (*TermInt64Filter) ProtoMessage()
func (*TermInt64Filter) ProtoReflect ¶
func (x *TermInt64Filter) ProtoReflect() protoreflect.Message
func (*TermInt64Filter) Reset ¶
func (x *TermInt64Filter) Reset()
func (*TermInt64Filter) String ¶
func (x *TermInt64Filter) String() string
type TermStringFilter ¶
type TermStringFilter struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*TermStringFilter) Descriptor
deprecated
func (*TermStringFilter) Descriptor() ([]byte, []int)
Deprecated: Use TermStringFilter.ProtoReflect.Descriptor instead.
func (*TermStringFilter) GetKey ¶
func (x *TermStringFilter) GetKey() string
func (*TermStringFilter) GetValue ¶
func (x *TermStringFilter) GetValue() string
func (*TermStringFilter) ProtoMessage ¶
func (*TermStringFilter) ProtoMessage()
func (*TermStringFilter) ProtoReflect ¶
func (x *TermStringFilter) ProtoReflect() protoreflect.Message
func (*TermStringFilter) Reset ¶
func (x *TermStringFilter) Reset()
func (*TermStringFilter) String ¶
func (x *TermStringFilter) String() string