Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Client = ConnectDB()
Functions ¶
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
Types ¶
type Config ¶
type Config struct { Application AppConfig Database DatabaseConfig }
func LoadConfig ¶
type DatabaseConfig ¶
func (*DatabaseConfig) GetUri ¶
func (db *DatabaseConfig) GetUri() string
Click to show internal directories.
Click to hide internal directories.