database

package
v0.0.0-...-3e1c22f Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MongoDB exported mongodb connection
	MongoDB       *mongo.Database
	MongoDBClient *mongo.Client
)

Functions

func ConnectMongo

func ConnectMongo() *mongo.Database

ConnectMongo creates new MongoDB connection.

func CreateIndexes

func CreateIndexes()

CreateIndexes create mongodb indexes as required

Types

This section is empty.

Jump to

Keyboard shortcuts

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