mongodb

package
v0.0.0-...-cbf5b65 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	Client *mongo.Client
	DB     *mongo.Database
}

func NewMongoDB

func NewMongoDB(cfg *configs.Configs) (*MongoDB, error)

func (*MongoDB) Close

func (m *MongoDB) Close()

func (*MongoDB) GetClient

func (m *MongoDB) GetClient() *mongo.Client

func (*MongoDB) GetDB

func (m *MongoDB) GetDB(dbname string) *mongo.Database

Jump to

Keyboard shortcuts

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