public

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx *gin.Context, DB db.Database, sub *controllers.Subject)

Get gets a subject by its identifier: subject code, course code and course specialization code

func GetAllSubjects

func GetAllSubjects(ctx *gin.Context, DB db.Database, controller *controllers.Course)

GetAllSubjects gets all subjects from a given course in the database

func GetCourses

func GetCourses(ctx *gin.Context, DB db.Database, institute *controllers.Institute)

GetCourses gets all course codes from a given institute the database

func GetInstitutes

func GetInstitutes(ctx *gin.Context, DB db.Database)

GetInstitutes gets all institutes from the database

func GetOfferings

func GetOfferings(ctx *gin.Context, DB db.Database, sub *controllers.Subject)

GetOfferings retrieves the list of offerings for a given subject

func GetRelations

func GetRelations(ctx *gin.Context, DB db.Database, sub *controllers.Subject)

GetRelations gets the subject's graph: their direct predecessors and successors

func GetStats

func GetStats(ctx *gin.Context, DB db.Database)

GetStats fetches some statistics from the database

This function does not scale well. TODO: Switch to a manual counter later on

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL