mongo

package
v0.0.0-...-03d4f27 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mongo contains helpers for connecting and disconnecting a client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, uri string) (*mongo.Client, error)

Connect is going to create a new client

func Disconnect

func Disconnect(ctx context.Context, client *mongo.Client)

Disconnect is going to disconnect the client (make sure to defer this function after creating a new DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

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