mongodb

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(params *database.DBConnectionParams) (*mongo.Client, error)

Types

type MongoConnection

type MongoConnection struct {
	// contains filtered or unexported fields
}

func NewMongoConnection

func NewMongoConnection(params *database.DBConnectionParams) (*MongoConnection, error)

func (*MongoConnection) GetDB

func (c *MongoConnection) GetDB() *mongo.Client

func (*MongoConnection) GetMongoDoc

func (c *MongoConnection) GetMongoDoc(collection *mongo.Collection, docId string) (bson.M, error)

Jump to

Keyboard shortcuts

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