db

package
v0.0.0-...-204c8b9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(mongoURI string) *mongo.Client

Connect will connect to MongoDB Database and return the client

func Disconnect

func Disconnect(client *mongo.Client)

Disconnect will disconnect the client from the Database

func SetIndexes

func SetIndexes(collection *mongo.Collection, keys bsonx.Doc)

SetIndexes will set the indexes in database

Types

This section is empty.

Jump to

Keyboard shortcuts

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