Documentation ¶
Index ¶
- func GetSchedule(groupCode, date string, dataAccumulator ..., attemptsNumber int) error
- type Course
- type Data
- func (data *Data) GetBaseInfo() error
- func (data *Data) GetCourcesOfFacult(faultyCode string) ([]Course, error)
- func (data *Data) GetCurrentWeek() (string, error)
- func (data *Data) GetFaculties() ([]Faculty, error)
- func (data *Data) GetGroups(faultyCode, course string) ([]Group, error)
- func (data *Data) GetLecturers() []string
- func (data *Data) GetScheduleForLecturer(name string) (Schedule, error)
- func (data *Data) SaveToFile() error
- func (data *Data) StartScheduleUpdater()
- func (data *Data) UpdateSchedule() error
- type Faculty
- type Group
- type Lesson
- type Schedule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Faculties []Faculty `json:"faculties"` Courses []Course `json:"courses"` Groups []Group `json:"groups"` Schedule map[string]Schedule `json:"schedule"` GroupNames map[string]string `json:"group_names"` WeekType string `json:"week_type"` LastScheduleUpdateTime int64 `json:"last_schedule_update_time"` // contains filtered or unexported fields }
func (*Data) GetBaseInfo ¶
func (*Data) GetCourcesOfFacult ¶
func (*Data) GetCurrentWeek ¶
func (*Data) GetFaculties ¶
func (*Data) GetLecturers ¶
func (*Data) GetScheduleForLecturer ¶
func (*Data) StartScheduleUpdater ¶
func (data *Data) StartScheduleUpdater()
func (*Data) UpdateSchedule ¶
type Lesson ¶
type Lesson struct { Date string `json:"date"` // Дата в формате ДД.ММ.ГГГГ Number string `json:"number"` Title string `json:"title"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` Lecturer string `json:"lecturer"` Type string `json:"type"` Classroom string `json:"classroom"` Group string `json:"group"` }
Click to show internal directories.
Click to hide internal directories.