list

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL