mongodb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 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