mongo

package
v0.0.0-...-6f3e148 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("odata syntax error")

ErrInvalidInput Client errors

Functions

func ODataCount

func ODataCount(collection *mgo.Collection) (int, error)

ODataCount runs a collection.Count() function based on $count odata parameter

func ODataInlineCount

func ODataInlineCount(collection *mgo.Collection) (int, error)

ODataInlineCount retrieves the total count from a filtered data

func ODataQuery

func ODataQuery(query url.Values, object interface{}, collection *mgo.Collection) error

ODataQuery creates a mgo query based on odata parameters nolint :gocyclo

Types

This section is empty.

Jump to

Keyboard shortcuts

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