database

package
v0.0.0-...-41d384d Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsersCollectionName         = "users"
	PostsCollectionName         = "posts"
	CommentsCollectionName      = "comments"
	NofiticationsCollectionName = "notifications"
)
View Source
const DatabaseName = "db"

Variables

View Source
var (
	Users         *mongo.Collection
	Posts         *mongo.Collection
	Comments      *mongo.Collection
	Notifications *mongo.Collection
)
View Source
var (
	Client *mongo.Client
)

Functions

func Disconnect

func Disconnect()

func Setup

func Setup()

Types

This section is empty.

Jump to

Keyboard shortcuts

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