criterion

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CriteriaToFilter

func CriteriaToFilter(criteria []Criterion) bson.M

Types

type Criterion

type Criterion interface {
	IsValid() error                   // Returns the validity of the Criterion
	Type() Type                       // Returns the Type of the Criterion
	ToFilter() map[string]interface{} // Returns a map filter to use to query the databases
}

type Type

type Type string
const DateRange Type = "DateRange"

range criteria

const ExactText Type = "ExactText"

exact criteria

const ListText Type = "ListText"

list criteria

const Or Type = "Or"

compound criteria

const Text Type = "Text"

basic criteria

Directories

Path Synopsis
exact
list
range

Jump to

Keyboard shortcuts

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