Documentation ¶ Index ¶ func CriteriaToFilter(criteria []Criterion) bson.M type Criterion type Type 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 Source Files ¶ View all Source files criterion.go types.go utilities.go Directories ¶ Show internal Expand all Path Synopsis exact text exception list date text or range date text wrapped Click to show internal directories. Click to hide internal directories.