mongodb

package
v0.0.0-...-ff84f7d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() (*mongo.Client, error)

func GetCollectionHandle

func GetCollectionHandle(name string) (*mongo.Collection, error)

func GetMongoIDFromHex

func GetMongoIDFromHex(id interface{}) (primitive.ObjectID, error)

func GetStringFromMongoID

func GetStringFromMongoID(id interface{}) string

func IsValidMongoID

func IsValidMongoID(id string) bool

Types

type MongoDBInstance

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

Jump to

Keyboard shortcuts

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