mongodb

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoDBConn

func NewMongoDBConn(ctx context.Context, cfg *Config) (*mongo.Client, error)

NewMongoDBConn Create new MongoDB client

Types

type Config

type Config struct {
	URI      string
	User     string
	Password string
	DB       string
}

Config MongoDB config

Jump to

Keyboard shortcuts

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