mongohelper

package
v0.0.0-...-2b9378c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnectionError = errors.New("Mongo connection cannot be established.")
	PingError       = errors.New("Mongo connection cannot be pinged")
)

Functions

func NewDatabase

func NewDatabase(uri, databaseName string) (db *mongo.Database, err error)

Types

type Query

type Query struct {
	// contains filtered or unexported fields
}

func QueryOf

func QueryOf() *Query

func (*Query) Add

func (receiver *Query) Add(k string, v interface{})

func (*Query) Build

func (receiver *Query) Build() (query M)

Jump to

Keyboard shortcuts

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