Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Client = ClientConnectDB()
Functions ¶
func ClientConnectDB ¶
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
Get database collections
Types ¶
type EnvConfiguration ¶
type EnvConfiguration struct {
MongoURI string
}
func LoadConfiguration ¶
func LoadConfiguration() *EnvConfiguration
Click to show internal directories.
Click to hide internal directories.