database

package
v0.0.0-...-2e7418b Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoClient *mongo.Client

Functions

func CloseMongoConnection

func CloseMongoConnection(client *mongo.Client)

func CreateMongoConnection

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

func GetCollection

func GetCollection(collectionName string) *mongo.Collection

GetCollection getting database collections

func GetMongoClient

func GetMongoClient() *mongo.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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