Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Database = DB{}
Database is the database connexion instance
Functions ¶
Types ¶
type DB ¶
type DB struct { Client *mongo.Client Collection *mongo.Collection UserCollection *mongo.Collection }
DB database structure
func (*DB) GetCollection ¶
func (db *DB) GetCollection() *mongo.Collection
GetCollection returns the metrics collection
func (*DB) GetUserCollection ¶
func (db *DB) GetUserCollection() *mongo.Collection
GetUserCollection returns the metrics collection
Click to show internal directories.
Click to hide internal directories.