Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Client = ConnectDB()
Client instance
Functions ¶
func GetAllEntities ¶
func GetAllEntities() ([]models.EntityInfo, error)
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
getting database collections
func GetEntities ¶
func GetEntities() ([]models.EntityInfo, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.