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()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.