query

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

This section is empty.

Types

type Query

type Query struct {
	Limit  int         `json:"limit"`
	Offset int         `json:"offset"`
	Order  []SortOrder `json:"order"`
	SortBy []string    `json:"sortBy"`
}

func (Query) ToMongoSortFormat

func (q Query) ToMongoSortFormat() []string

type SortOrder

type SortOrder string
const SortOrderAscending SortOrder = "asc"
const SortOrderDescending SortOrder = "desc"

Jump to

Keyboard shortcuts

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