mongodb

package
v0.0.0-...-d4e3b39 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectIDFromHex

func ObjectIDFromHex(hex string) (objectID primitive.ObjectID, err error)

Types

type MongoDBInterface

type MongoDBInterface interface {
	GetCollection() (*mongo.Collection, error)
	GetCollectionByName(name string) *mongo.Collection
}

func New

func New(conf *config.Config) MongoDBInterface

Jump to

Keyboard shortcuts

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