util

package
v0.0.360 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertQueryParams added in v0.0.359

func ConvertQueryParams(params QueryParams) (filter bson.D, sort bson.D, projection bson.D)

Types

type Filter added in v0.0.359

type Filter struct {
	Field     string
	Operation interface{}
}

type Projection added in v0.0.359

type Projection struct {
	Field     string
	Inclusion bool
}

type QueryParams

type QueryParams struct {
	Start      int64
	Limit      int
	Sort       []Sort
	Filter     []Filter
	Projection []Projection
}

func GetQueryParams

func GetQueryParams(query string) QueryParams

type Sort added in v0.0.359

type Sort struct {
	Field string
	Order int
}

Jump to

Keyboard shortcuts

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