Documentation ¶
Index ¶
- type Filter
- func AND(filters ...Filter) Filter
- func ArrayAll(field string, items []interface{}) Filter
- func ArrayContains(field string, value interface{}) Filter
- func ArrayNotContains(field string, value interface{}) Filter
- func ArraySingleMatch(field string, filters ...Filter) Filter
- func ArraySize(field string, size int) Filter
- func BitsAll0(field string, mask int) Filter
- func BitsAll1(field string, mask int) Filter
- func BitsAny0(field string, mask int) Filter
- func BitsAny1(field string, mask int) Filter
- func Equal(field string, value interface{}) Filter
- func Exists(field string, exists bool) Filter
- func GreaterThan(field string, value interface{}) Filter
- func GreaterThanOrEqual(field string, value interface{}) Filter
- func IsType(field string, typ types.Type) Filter
- func JavascriptExpression(expression string) Filter
- func LessThan(field string, value interface{}) Filter
- func LessThanOrEqual(field string, value interface{}) Filter
- func Modulo(field string, divisor int, remainder int) Filter
- func NOR(filters ...Filter) Filter
- func NOT(filter Filter) Filter
- func NotEqual(field string, value interface{}) Filter
- func OR(filters ...Filter) Filter
- func Regex(field string, regex string) Filter
- func TextSearch(text string) Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter fields
func ArrayContains ¶
ArrayContains matches if the array in the field contains the specified value
func ArrayNotContains ¶
ArrayNotContains matches if the array in the field does not contain the specified value
func ArraySingleMatch ¶
ArraySingleMatch matches if any of the items in the array match all filters
func BitsAll0 ¶
BitsAll0 matches if all bits in a binary value (that are matched by the bitmask) are 0
func BitsAll1 ¶
BitsAll1 matches if all bits in a binary value (that are matched by the bitmask) are 1
func GreaterThan ¶
GreaterThan matches if field value is greater than the specified value
func GreaterThanOrEqual ¶
GreaterThanOrEqual matches if field value is greater than or equal to the specified value
func JavascriptExpression ¶
JavascriptExpression matches if the field contains the specified text
func LessThanOrEqual ¶
LessThanOrEqual matches if field value is less than or equal to the specified value
func Modulo ¶
Modulo matches if the remainder of devision on the fields value with the deviser equals the specified remainder
func TextSearch ¶
TextSearch matches if the field contains the specified text