database

package
v0.0.0-...-2ce6fab Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectMongoDB

func ConnectMongoDB(uri string) *mongo.Database

Types

type MongoDB

type MongoDB struct {
	Database   *mongo.Database
	Collection *mongo.Collection
}

func NewMongoDB

func NewMongoDB(mongoURI, collection string) *MongoDB

Jump to

Keyboard shortcuts

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