Documentation
¶
Index ¶
- func GetScheduleGroups(schedule []Day, startDate time.Time, endDate time.Time) error
- func LazyCache[T any](key string, t time.Duration, callback func() (T, error)) (T, bool, error)
- func SortKeyValue(entries []KeyValue)
- type Class
- type Day
- type EmployeesAndChairs
- type Entry
- type Filters
- type Group
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetScheduleGroups ¶
func SortKeyValue ¶
func SortKeyValue(entries []KeyValue)
Types ¶
type Class ¶
type Class struct {
StudyTime string `json:"study_time"`
Begin string `json:"study_time_begin"`
End string `json:"study_time_end"`
Discipline string `json:"discipline"`
Type string `json:"study_type"`
Cabinet string `json:"cabinet"`
WeekDay string `json:"week_day"`
FullDate string `json:"full_date"`
Employee string `json:"employee"`
Groups string `json:"study_group"`
Subgroup string `json:"study_subgroup"`
}
type Day ¶
func GetEmployeeSchedule ¶
type EmployeesAndChairs ¶
type EmployeesAndChairs struct {
Employees []KeyValue `json:"employees"`
Chairs []KeyValue `json:"chairs"`
}
func GetAllEmployeesAndChairs ¶
func GetAllEmployeesAndChairs() (EmployeesAndChairs, bool, error)
func GetEmployeesAndChairs ¶
func GetEmployeesAndChairs(faculty string) (*EmployeesAndChairs, error)
type Filters ¶
type Filters struct {
Faculties []KeyValue `json:"faculties"`
EducationForms []KeyValue `json:"educForms"`
Courses []KeyValue `json:"courses"`
}
func GetFilters ¶
type Group ¶
func GetAllGroups ¶
Click to show internal directories.
Click to hide internal directories.