mongo

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 6 Imported by: 0

README

mongo-go

A go module to handle connections with a mongoDB cluster

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFieldIndex added in v0.3.0

func AddFieldIndex(collection *mongo.Collection, field string) (string, error)

func Connect added in v0.2.0

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

func Disconnect added in v0.2.0

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

func Ping added in v0.2.2

func Ping(client *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