database

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 5 Imported by: 0

README

golang-mongodb-driver

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	*mongo.Client
	*mongo.Database
	// contains filtered or unexported fields
}

func NewMongoDB

func NewMongoDB(d SetupData) (*MongoDB, error)

func (*MongoDB) Close

func (d *MongoDB) Close()

type SetupData

type SetupData interface {
	MongodbDsn() string
	MongodbDsnDBName() string
}

Jump to

Keyboard shortcuts

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