mongo

package
v0.0.0-...-51ef577 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(c MongoConfig) (*mongo.Database, error)

Types

type MongoConfig

type MongoConfig struct {
	Timeout  int
	DBname   string
	Username string
	Password string
	Host     string
	Port     string
}

MongoConfig defines a config options for MongoDB

Jump to

Keyboard shortcuts

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