Documentation ¶
Index ¶
Constants ¶
View Source
const ( Schema = "MONGODB_SCHEMA" Uri = "MONGODB_URI" Username = "MONGODB_USERNAME" Password = "MONGODB_PASSWORD" Options = "MONGODB_OPTIONS" )
Variables ¶
View Source
var ( CollectionOnce sync.Once ConnectionTimeout = time.Duration(connectionTimeout, 2*time.Minute) )
View Source
var ( MgoDb = "databaseHere" CollectionName = "Clientes" )
Functions ¶
func GetCollectionClientes ¶
func GetCollectionClientes() *mongo.Collection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.