Documentation
¶
Index ¶
- func Get(ctx *gin.Context, model *models.Subject)
- func GetAllSubjects(ctx *gin.Context, model *models.Course)
- func GetCourses(ctx *gin.Context, courses []*models.Course)
- func GetInstitutes(ctx *gin.Context, institutes []models.Institute)
- func GetOfferings(ctx *gin.Context, IDs []string, offerings []*models.Offering)
- func GetRelations(ctx *gin.Context, model *models.Subject, weak, strong []models.Subject)
- func GetStats(ctx *gin.Context, stats *models.Stats)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllSubjects ¶
GetAllSubjects takes the course model and returns its response view object.
func GetCourses ¶
GetCourses takes the course models and returns its response view objects
func GetInstitutes ¶
GetInstitutes takes the institute models and returns its response view objects
func GetOfferings ¶
GetOfferings takes the offering models and returns its response view objects
It also takes the IDs of the professors for each offering, since that information is not stored in the DTO. Besides that, it sorts the offerings to rank most interesting ones on top Since this is a public endpoint, results size is limited to 3
func GetRelations ¶
GetRelations takes the subject model and its weak and strong successors It returns the view object for its graph
Types ¶
This section is empty.