database

package
v0.0.0-...-f265f0c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT-0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MongoClient     *mongo.Client
	UsersCollection *mongo.Collection
	TasksCollection *mongo.Collection
)

Global variables to store the MongoDB client and collection references

Functions

func Disconnect

func Disconnect()

Disconnect disconnects from the MongoDB server

func Init

func Init(mongoURI string)

Init initializes the MongoDB connection and sets up the collections mongoURI is the URI string for connecting to the MongoDB instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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