connection

package
v0.0.0-...-a953039 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disconnect

func Disconnect(client *mongo.Client)

func Init

func Init() *mongo.Client

Types

type Database

type Database struct {
	Users     *mongo.Collection
	Posts     *mongo.Collection
	Comments  *mongo.Collection
	Images    *mongo.Collection
	Reactions *mongo.Collection
}

func GetDB

func GetDB() Database

func NewDatabase

func NewDatabase(client *mongo.Client) Database

Jump to

Keyboard shortcuts

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