Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type And ¶
type And []ValueFilter
type Equal ¶
func (Equal) ValuesRange ¶
type Greater ¶
func (Greater) ValuesRange ¶
type Less ¶
func (Less) ValuesRange ¶
type Not ¶
type Not struct {
Filter ValueFilter
}
type Or ¶
type Or []ValueFilter
type Range ¶
Range represents a range of sortable values. If inclusive is set, the range is [start, end], if not, the range is (start, end).
func (Range) Prefix ¶
func (f Range) Prefix() (values.BinaryString, bool)
Prefix returns a common prefix of the range. Boolean flag indicates if prefix fully describes the range.
func (Range) ValuesRange ¶
type SortableFilter ¶
type SortableFilter interface { ValueFilter FilterSortable(v values.Sortable) bool // ValuesRange returns an optional range of value that matches the filter. // It is used as an optimization for complex filters for backend to limit the range of keys that will be considered. ValuesRange() *Range }
func Prefix ¶
func Prefix(pref values.BinaryString) SortableFilter
type ValueFilter ¶
Click to show internal directories.
Click to hide internal directories.