mongodb

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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