management

package
v0.0.0-...-0ea846c Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementService

type ManagementService struct {
	*database.PostgresDBAccess
}

ManagementService is the service that handles the management of the application

func NewManagementService

func NewManagementService(db *database.PostgresDBAccess) *ManagementService

NewManagementService creates a new management service

func (ManagementService) GetAlum

func (m ManagementService) GetAlum(id string) (*dbmodels.Alumni, error)

GetAlum retrieves a single alumn from the database

func (ManagementService) GetAlumnus

func (m ManagementService) GetAlumnus() ([]dbmodels.Alumni, error)

GetAlumnus retrieves all the alumnus from the database

func (ManagementService) GetAssignment

func (m ManagementService) GetAssignment(id string) (*dbmodels.Assignment, error)

GetAssignment retrieves a single assignment from the database

func (ManagementService) GetAssignmentCodeTemplateForCode

func (m ManagementService) GetAssignmentCodeTemplateForCode(assignmentID string, language string) (*dbmodels.AssignmentCodeTemplate, error)

GetAssignmentCodeTemplateForCode retrieves a single assignment code template for a given language

func (ManagementService) GetProfessor

func (m ManagementService) GetProfessor(id string) (*dbmodels.Professor, error)

GetProfessor retrieves a single professor from the database

func (ManagementService) GetProfessors

func (m ManagementService) GetProfessors() ([]dbmodels.Professor, error)

GetProfessors retrieves all the professors from the database

func (ManagementService) GetSubjects

func (m ManagementService) GetSubjects() ([]dbmodels.Subject, error)

GetSubjects retrieves all the subjects from the database

Jump to

Keyboard shortcuts

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