mongoconnector

package module
v0.0.0-...-129450a Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 9 Imported by: 0

README

letsgo-mongo-connector

GoDoc

letsgo-mongo-connector is a smaill handy tool to connect to mongodb using mongo-go-driver

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Instance of mongo Client

Instance of mongo Database

Functions

func Connect

func Connect() (*mongo.Client, *mongo.Database)

Connects to DB with given env variables and returns Client, DB

func TestConnect

func TestConnect() (*mongo.Client, *mongo.Database)

Connects to DB with given env variables and returns Client, DB for TESTING

Types

This section is empty.

Jump to

Keyboard shortcuts

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