database

package
v0.0.0-...-9d902f9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Client pointer of Mongo Client

DB is pointer of Mongo Database

Functions

func Connect

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

Connect to database

func TestConnect

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

TestConnect to database while testing

func UserCollection

func UserCollection() *mongo.Collection

Types

This section is empty.

Jump to

Keyboard shortcuts

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