nosqldbdriver

package
v0.0.0-...-3d01394 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBDriver

type MongoDBDriver struct {
	DB func() (*mongo.Database, error)
}

MongoDBDriver is responsible for providing a mongo client driver

func (*MongoDBDriver) GetDocByID

func (driver *MongoDBDriver) GetDocByID(hexID string, collection string) (interface{}, error)

GetDocByID is responsible for obtaining a single document from the database by _id

Jump to

Keyboard shortcuts

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