mdb

package
v0.0.0-...-879a25f Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mdb is to work with MongoDB client.

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Client is the MongoDB client.

Functions

func InitMongoDB

func InitMongoDB()

InitMongoDB is to initialize the database

func OpenConnection

func OpenConnection(URI, username, password string) *mongo.Client

OpenConnection is to open a connection with MongoDB and get the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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