search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	FieldName string
	Value     interface{}
	Operator  Operator
}

type Operator

type Operator int
const (
	EQ Operator = iota + 1
	NE
	LIKE
	GT
	LT
	GTE
	LTE
	IN
	NI
)

type Query

type Query struct {
	common.Query
}

{"pageSize":10,"page":0,"sorted":[{"id":"firstName","desc":false}],"filtered":[{"id":"firstName","value":"3"}]}

func NewQuery

func NewQuery(query common.Query) Query

func (Query) MarkFiltered

func (sp Query) MarkFiltered(column map[string]Filter) bson.D

func (Query) MarkSort

func (sp Query) MarkSort(column map[string]Filter) (option *options.FindOptions)

Jump to

Keyboard shortcuts

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