utils

package
v0.0.0-...-7d02bc1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMongoDbClient

func CloseMongoDbClient()

******* * Close MongoDb connection * TODO: * ~Stop MongoClient when its ideal for more than 2 mins ********

func ConnectAndGetMongoDbCollection

func ConnectAndGetMongoDbCollection(documentName string, tableName string) *mongo.Collection

******* * connect To MongoDb and get Collection by passing documentName,tableName as a String * and Return the collection pointer ********

Types

This section is empty.

Jump to

Keyboard shortcuts

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