db

package
v0.0.0-...-37d92c4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialConnection

func InitialConnection(dbName string, mongoURI string) *mongo.Database

InitialConnection will create new connection to mongo db

func SetIndexes

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

SetIndexes will create mongo indexes for collection and keys that sent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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