Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBrowser ¶
func NewBrowser() (context.CancelFunc, error)
Initializes the browser session used for pdf generation. The caller is responsible for termination.
Types ¶
type VGroup ¶
type VGroup struct { Name string `json:"group_name"` // 1 - 500 characters Routine map[uint]VGroupRoutine `json:"routine"` // required mapping of day (1-Monday to 7-Sunday) to routine Classes []VGroupClass `json:"classes"` // required LessonDurationInMinutes uint `json:"lesson_duration_in_minutes"` // minimum of 1 }
type VGroupClass ¶
type VGroupClass struct { Name string `json:"class_name"` // 1 - 100 characters TeacherId int `json:"teacher_in_charge_id"` // pre-specified teacher id Lessons []VGroupClassLesson `json:"lessons"` // required }
type VGroupClassLesson ¶
type VGroupClassLesson struct { SubjectId int `json:"subject_id"` // pre-specified subject id TeacherId int `json:"teacher_id"` // pre-specified teacher id MaxLessonCount uint32 `json:"max_lesson_count"` // optional maximum number of lessons in a week including the total count of mandatory specifics (specified duration is unconsidered). MandatorySpecifics map[uint][]string `json:"mandatory_specifics"` // optional mapping of day (1-Monday to 7-Sunday) to a list of time ranges (eg. '[9:00,11:00]'). within routine range & non-overlapping. }
type VGroupRoutine ¶
Click to show internal directories.
Click to hide internal directories.