mongo

package
v0.0.0-...-e10842c Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mongo to allow us to interact with NoSQL via MongoDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MDB

type MDB struct {
	DB *mongo.Database
}

MDB is the mongo db (NoSQL) struct

func Init

func Init(c *cfg.MongoDB) (*MDB, error)

Init initializes the mongo db connection

func (*MDB) Close

func (r *MDB) Close()

Close use this method to close database connection

Jump to

Keyboard shortcuts

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