mongodb

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 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