mongo

package
v0.0.0-...-9edbc40 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context)

func GetMongoDB

func GetMongoDB() *mongo.Database

func New

func New(configs ...OptMongo) *mongo.Database

Types

type OptMongo

type OptMongo struct {
	URI               string
	DB                string
	AppName           string
	ConnectionTimeOut int
	PingTimeOut       int
}

Jump to

Keyboard shortcuts

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