db

package
v0.0.0-...-f23b7a0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoInstance

type MongoInstance struct {
	Client *mongo.Client
	Db     *mongo.Database // connection
}

MongoInstance contains the Mongo client and database objects

func NewMongoDB

func NewMongoDB(config *configs.Config) (*MongoInstance, error)

Jump to

Keyboard shortcuts

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