dbmongo

package
v0.0.0-...-a0fbff0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dbmongo has the mongoDB client as singleton

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context) (err error)

Close closes all the connections to the database

func GetClient

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

GetClient returns a MongoDB client

func Start

func Start(opts ...*options.ClientOptions) (err error)

Start should be called on the service start up. Makes the first connection to the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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