database

package
v0.0.0-...-0cfb223 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *mongo.Database

GetDB returns a handle to the database

func Init

func Init() error

Init initiate the MongoDB connection

func Ping

func Ping(ctx context.Context) error

Ping sends a ping command to verify the DB connection

func Shutdown

func Shutdown() error

Shutdown closes all sockets and shuts down the client gracefully

Types

This section is empty.

Jump to

Keyboard shortcuts

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