Documentation ¶
Index ¶
- Variables
- func Connect(mongoURL string) error
- func GetCollection(name string) *mongo.Collection
- func GetCourseData() (map[string]models.CourseData, error)
- func GetEdt(uuid string) (bson.M, error)
- func StoreCourseEdt(courseEdt map[string]models.CourseData) error
- func StoreEdt(edt models.StudentEDT)
- type MongoInstance
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MongoURL string // MongoURL is the url of the mongo database Mg MongoInstance // Mg is the mongo instance )
Functions ¶
func GetCollection ¶
func GetCollection(name string) *mongo.Collection
GetCollection returns a collection from the database with the given name
func GetCourseData ¶
func GetCourseData() (map[string]models.CourseData, error)
func StoreCourseEdt ¶
func StoreCourseEdt(courseEdt map[string]models.CourseData) error
Types ¶
Click to show internal directories.
Click to hide internal directories.