connectionhelper

package
v0.0.0-...-96394e0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECTIONSTRING = "mongodb://localhost:27017"
	DB               = "mr-grocery"
	ITEMS            = "items"
	TEST             = "test"
)

I have used below constants just to hold required database config's.

Variables

This section is empty.

Functions

func GetMongoClient

func GetMongoClient() (*mongo.Client, error)

GetMongoClient - Return mongodb connection to work with

Types

This section is empty.

Jump to

Keyboard shortcuts

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