Documentation
¶
Index ¶
- type Controller
- func (c *Controller) GetAnnounces(ctx context.Context, page int) (model.Announces, error)
- func (c *Controller) GetGroupOptions(ctx context.Context) ([]model.Option, error)
- func (c *Controller) GetScheduleByGroup(ctx context.Context, group, date string) ([]model.Schedule, error)
- func (c *Controller) GetScheduleByTeacher(ctx context.Context, teacher, date string) ([]model.Schedule, error)
- func (c *Controller) GetTeacherOptions(ctx context.Context) ([]model.Option, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(client *redis.Client, logger *logrus.Logger) *Controller
func (*Controller) GetAnnounces ¶
GetAnnounces получает блок с объявлениями
func (*Controller) GetGroupOptions ¶
GetGroupOptions получает список групп
func (*Controller) GetScheduleByGroup ¶
func (c *Controller) GetScheduleByGroup(ctx context.Context, group, date string) ([]model.Schedule, error)
GetScheduleByGroup по идентификатору группы и дате получает расписание на неделю
func (*Controller) GetScheduleByTeacher ¶
func (c *Controller) GetScheduleByTeacher(ctx context.Context, teacher, date string) ([]model.Schedule, error)
GetScheduleByTeacher по ФИО преподавателя и дате получает расписание преподавателя
func (*Controller) GetTeacherOptions ¶
GetTeacherOptions получает список преподавателей
Click to show internal directories.
Click to hide internal directories.