Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComparisonOperator ¶
type ComparisonOperator string
ComparisonOperator is a general comparison operator against a value
const ( CmpEq ComparisonOperator = "eq" CmpNe ComparisonOperator = "ne" CmpGt ComparisonOperator = "gt" CmpGte ComparisonOperator = "gte" CmpLt ComparisonOperator = "lt" CmpLte ComparisonOperator = "lte" )
List comparison operators
func (ComparisonOperator) Validate ¶
func (op ComparisonOperator) Validate() error
Validate checks that the operator is valid
type LogicalOperator ¶
type LogicalOperator string
LogicalOperator is a logical operator for joining expressions
const ( LogicalAnd LogicalOperator = "and" LogicalOr LogicalOperator = "or" )
List logical operators. These values are chosen to intentionally to match mongodb operators
func (LogicalOperator) Validate ¶
func (op LogicalOperator) Validate() error
Validate checks that the operator is valid
type RefOperator ¶
type RefOperator string
RefOperator is a comparison operator for a reference value used for determining a range of documents to examine
const ( RefOpGt RefOperator = "gt" RefOpGte RefOperator = "gte" RefOpLt RefOperator = "lt" RefOpLte RefOperator = "lte" )
Operators for reference values. These values are chosen intentionally to match mongodb operators
func (RefOperator) Validate ¶
func (op RefOperator) Validate() error
Validate checks that the operator is valid
Click to show internal directories.
Click to hide internal directories.