utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMongoDb

func CloseMongoDb(client *mongo.Client) error

CloseMongoDb - Close db connection

func GetMongoDbCollection

func GetMongoDbCollection(client *mongo.Client, collectionName string) (*mongo.Collection, error)

GetMongoDbCollection - Collection return

func OpenMongoDbConnection

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

OpenMongoDbConnection get connection of mongodb

Types

This section is empty.

Jump to

Keyboard shortcuts

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