Documentation ¶
Index ¶
- func ConvertDayGroupScheduleToText(daySchedule *types.Day, groupName string, daysAfterCurr int) string
- func GetCurrWeekGroupSchedule(groupName string) (*types.Week, error)
- func GetCurrWeekGroupScheduleImg(groupName string) (string, error)
- func GetCurrWeekTeacherSchedule(teacherName string) (*types.Week, error)
- func GetCurrWeekTeacherScheduleImg(teacherName string) (string, error)
- func GetDayGroupSchedule(groupName string, daysAfterCurr int) (*types.Day, error)
- func GetDayGroupScheduleByDate(groupName, date string) (*types.Day, error)
- func GetDayGroupScheduleByWeekDay(groupName, weekDay string) (*types.Day, error)
- func GetDayTeacherSchedule(teacherName string, daysAfterCurr int) (*types.Day, error)
- func GetDayTeacherScheduleByDate(teacherName, date string) (*types.Day, error)
- func GetDayTeacherScheduleByWeekDay(teacherName, weekDay string) (*types.Day, error)
- func GetFullGroupSchedule(groupName string) (*types.Schedule, error)
- func GetFullTeacherSchedule(teacher string) (*types.Schedule, error)
- func GetGroups() []string
- func GetImgByWeekGroupSchedule(schedule *types.Week, groupName string, weekNum int) (string, error)
- func GetNextWeekGroupSchedule(groupName string) (*types.Week, error)
- func GetNextWeekGroupScheduleImg(groupName string) (string, error)
- func GetNextWeekTeacherSchedule(teacherName string) (*types.Week, error)
- func GetNextWeekTeacherScheduleImg(teacherName string) (string, error)
- func GetTeachers() ([]string, error)
- func GetTextDayGroupSchedule(groupName string, daysAfterCurr int) (string, error)
- func GetTextDayGroupScheduleByDate(groupName, inputDate string) (string, error)
- func GetTextDayGroupScheduleByWeekDay(groupName, weekDay string) (string, error)
- func GetTextDayTeacherSchedule(teacherName string, daysAfterCurr int) (string, error)
- func GetTextDayTeacherScheduleByDate(teacherName, inputDate string) (string, error)
- func GetTextDayTeacherScheduleByWeekDay(teacherName, weekDay string) (string, error)
- func GetWeekGroupSchedule(groupName string, weekNum int) (*types.Week, error)
- func GetWeekGroupScheduleImg(groupName string, weekNum int) (string, error)
- func GetWeekTeacherSchedule(teacherName string, weekNum int) (*types.Week, error)
- func GetWeekTeacherScheduleImg(teacherName string, weekNum int) (string, error)
- func IsFullScheduleEmpty(s *types.Schedule) bool
- func IsWeekScheduleEmpty(week types.Week) bool
- func ParseCurrWeekGroupSchedule(schedule *types.Schedule, groupName string) (*types.Week, error)
- func ParseCurrWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)
- func ParseDayGroupSchedule(schedule *types.Schedule, groupName string, daysAfterCurr int) (*types.Day, error)
- func ParseDayGroupScheduleByDate(schedule *types.Schedule, groupName string, date string) (*types.Day, error)
- func ParseDayGroupScheduleByWeekDay(schedule *types.Schedule, groupName string, weekDay string) (*types.Day, error)
- func ParseNextWeekGroupSchedule(schedule *types.Schedule, groupName string) (*types.Week, error)
- func ParseNextWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)
- func ParseTeacherWeekSchedule(schedule *types.Week, teacherName string, weekNum int) (string, error)
- func ParseWeekGroupSchedule(schedule *types.Schedule, groupName string, weekNum int) (*types.Week, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDayGroupScheduleToText ¶ added in v0.9.2
func ConvertDayGroupScheduleToText(daySchedule *types.Day, groupName string, daysAfterCurr int) string
ConvertDayGroupScheduleToText converts the information that *types.Day contains into text.
func GetCurrWeekGroupSchedule ¶
GetCurrWeekGroupSchedule returns *types.Week received from the UlSTU site based on the current school week.
func GetCurrWeekGroupScheduleImg ¶
GetCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.
func GetCurrWeekTeacherSchedule ¶
GetCurrWeekTeacherSchedule return object of current week schedule
func GetCurrWeekTeacherScheduleImg ¶
GetCurrWeekTeacherScheduleImg return img of current week schedule
func GetDayGroupSchedule ¶ added in v0.9.2
GetDayGroupSchedule returns *types.Day received from the UlSTU site regarding how many days have passed relative to the current time.
func GetDayGroupScheduleByDate ¶ added in v0.9.2
GetDayGroupScheduleByDate returns *types.Day received from the UlSTU site based on the string representation of the date.
func GetDayGroupScheduleByWeekDay ¶ added in v0.9.2
GetDayGroupScheduleByWeekDay returns *types.Day received from the UlSTU site based on the selected day of the current week.
func GetDayTeacherSchedule ¶ added in v0.9.2
GetDayTeacherSchedule returns *types.Day received from the full schedule regarding how many days have passed relative to the current time.
func GetDayTeacherScheduleByDate ¶ added in v0.9.2
GetDayTeacherScheduleByDate returns *types.Day received from the full schedule based on the string representation of the date.
func GetDayTeacherScheduleByWeekDay ¶ added in v0.9.2
GetDayTeacherScheduleByWeekDay returns *types.Day received from the full schedule based on the selected day of the current week.
func GetFullGroupSchedule ¶
GetFullGroupSchedule returns the full group's schedule.
func GetFullTeacherSchedule ¶
GetFullTeacherSchedule returns the full teacher's schedule.
func GetGroups ¶
func GetGroups() []string
GetGroups returns all available group names from UlSTU site.
func GetImgByWeekGroupSchedule ¶ added in v0.9.2
GetImgByWeekGroupSchedule returns the path to the image with the week schedule based on the week schedule of the group, the name of the group and the selected school week.
func GetNextWeekGroupSchedule ¶
GetNextWeekGroupSchedule returns *types.Week received from the UlSTU site based on the next school week.
func GetNextWeekGroupScheduleImg ¶
GetNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.
func GetNextWeekTeacherSchedule ¶
GetNextWeekTeacherSchedule return object of next week schedule
func GetNextWeekTeacherScheduleImg ¶
GetNextWeekTeacherScheduleImg return img of next week schedule
func GetTeachers ¶
func GetTextDayGroupSchedule ¶ added in v0.9.2
GetTextDayGroupSchedule returns a text representation of the day schedule.
func GetTextDayGroupScheduleByDate ¶ added in v0.9.2
GetTextDayGroupScheduleByDate returns a text representation of the day schedule based on the the string representation of the date.
func GetTextDayGroupScheduleByWeekDay ¶ added in v0.9.2
GetTextDayGroupScheduleByWeekDay returns a text representation of the day schedule based on the selected day of the current week.
func GetTextDayTeacherSchedule ¶ added in v0.9.2
GetTextDayTeacherSchedule returns a text representation of the day schedule.
func GetTextDayTeacherScheduleByDate ¶ added in v0.9.2
GetTextDayTeacherScheduleByDate returns a text representation of the day schedule based on the the string representation of the date.
func GetTextDayTeacherScheduleByWeekDay ¶ added in v0.9.2
GetTextDayTeacherScheduleByWeekDay returns a text representation of the day schedule based on the selected day of the current week.
func GetWeekGroupSchedule ¶ added in v0.9.2
GetWeekGroupSchedule returns *types.Week received from the UlSTU site based on the selected school week.
func GetWeekGroupScheduleImg ¶ added in v0.9.2
GetWeekGroupScheduleImg returns the path to the image with the week schedule based on the selected school week.
func GetWeekTeacherSchedule ¶ added in v0.9.2
GetWeekTeacherSchedule return object of week schedule
func GetWeekTeacherScheduleImg ¶ added in v0.9.2
GetWeekTeacherScheduleImg return path on img of schedule
func IsFullScheduleEmpty ¶ added in v0.9.7
IsFullScheduleEmpty returns true if the full schedule is empty, otherwise - false.
func IsWeekScheduleEmpty ¶ added in v0.9.7
IsWeekScheduleEmpty returns true if the week schedule is empty, otherwise - false.
func ParseCurrWeekGroupSchedule ¶ added in v0.9.2
ParseCurrWeekGroupSchedule returns *types.Week received from *types.Schedule based on the current school week.
func ParseCurrWeekGroupScheduleImg ¶ added in v0.9.2
ParseCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.
func ParseDayGroupSchedule ¶ added in v0.9.2
func ParseDayGroupSchedule(schedule *types.Schedule, groupName string, daysAfterCurr int) (*types.Day, error)
ParseDayGroupSchedule returns *types.Day received from types.Schedule regarding how many days have passed relative to the current time.
func ParseDayGroupScheduleByDate ¶ added in v0.9.2
func ParseDayGroupScheduleByDate(schedule *types.Schedule, groupName string, date string) (*types.Day, error)
ParseDayGroupScheduleByDate returns *types.Day received from types.Schedule based on the string representation of the date.
func ParseDayGroupScheduleByWeekDay ¶ added in v0.9.2
func ParseDayGroupScheduleByWeekDay(schedule *types.Schedule, groupName string, weekDay string) (*types.Day, error)
ParseDayGroupScheduleByWeekDay returns *types.Day received from types.Schedule based on the selected day of the current week.
func ParseNextWeekGroupSchedule ¶ added in v0.9.2
ParseNextWeekGroupSchedule returns *types.Week received from *types.Schedule based on the next school week.
func ParseNextWeekGroupScheduleImg ¶ added in v0.9.2
ParseNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.
Types ¶
This section is empty.