zpa

package
v1.95.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlannedExam

type PlannedExam struct {
	Ancode            int    `json:"anCode"`
	Module            string `json:"module"`
	MainExamer        string `json:"main_examer"`
	MainExamerID      int    `json:"main_examer_id"`
	Number            int    `json:"number"`
	Date              string `json:"date"`
	Starttime         string `json:"start_time"`
	RoomName          string `json:"room"`
	IsReserve         bool   `json:"is_reserve"`
	IsHandicap        bool   `json:"is_handicap"`
	Supervisor        string `json:"supervisor"`
	Duration          int    `json:"duration"`
	ReserveSupervisor string `json:"reserve_supervisor"`
}

type SupervisorRequirements

type SupervisorRequirements struct {
	Invigilator            string   `json:"invigilator"`
	InvigilatorID          int      `json:"invigilator_id"`
	ExcludedDates          []string `json:"excluded_dates"`
	PartTime               float64  `json:"part_time"`
	OralExamsContribution  int      `json:"oral_exams_contribution"`
	LivecodingContribution int      `json:"livecoding_contribution"`
	MasterContribution     int      `json:"master_contribution"`
	FreeSemester           float64  `json:"free_semester"`
	OvertimeLastSemester   float64  `json:"overtime_last_semester"`
	OvertimeThisSemester   float64  `json:"overtime_this_semester"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ZPA

type ZPA struct {
	// contains filtered or unexported fields
}

func NewZPA

func NewZPA(baseurl string, username string, password string, semester string) (*ZPA, error)

func (*ZPA) DeleteStudentRegsFromZPA

func (zpa *ZPA) DeleteStudentRegsFromZPA(ancodes []*model.ZPAAncodes) (string, []byte, error)

func (*ZPA) GetExams

func (zpa *ZPA) GetExams() []*model.ZPAExam

func (*ZPA) GetPlannedExams

func (zpa *ZPA) GetPlannedExams() ([]*PlannedExam, error)

func (*ZPA) GetStudents

func (zpa *ZPA) GetStudents(mtknr string) ([]*model.ZPAStudent, error)

func (*ZPA) GetSupervisorRequirements

func (zpa *ZPA) GetSupervisorRequirements() []*SupervisorRequirements

func (*ZPA) GetTeachers

func (zpa *ZPA) GetTeachers() []*model.Teacher

func (*ZPA) PostExams

func (zpa *ZPA) PostExams(exams []*model.ZPAExamPlan) (string, []byte, error)

func (*ZPA) PostStudentRegsToZPA

func (zpa *ZPA) PostStudentRegsToZPA(studentRegs []*model.ZPAStudentReg) (string, []byte, error)

func (*ZPA) StudentReg2ZPAStudentReg

func (zpa *ZPA) StudentReg2ZPAStudentReg(studreg *model.StudentReg) *model.ZPAStudentReg

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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