Versions in this module Expand all Collapse all v0 v0.3.2 Aug 12, 2026 v0.3.1 Aug 11, 2026 Changes in this version + var ErrNotFound = errors.New("not found") + type AdminClient struct + func NewAdminClient(url, token string, timeout time.Duration) *AdminClient + func (c *AdminClient) DeleteParser(ctx context.Context, id int64) error + func (c *AdminClient) NewParser(ctx context.Context, collegeName string, campusNames []string) (string, error) + type AuthTransport struct + func (at *AuthTransport) RoundTrip(req *http.Request) (*http.Response, error) + type Client struct + func NewClient(url string, timeout time.Duration) *Client + func (c *Client) GetCampus(ctx context.Context, id int64) (*models.DtoCampusResponse, error) + func (c *Client) GetCampusByName(ctx context.Context, collegeID int64, name string) (*models.DtoCampusResponse, error) + func (c *Client) GetCampuses(ctx context.Context, collegeID int64) ([]*models.DtoCampusResponse, error) + func (c *Client) GetCollege(ctx context.Context, id int64) (*models.DtoCollegeResponse, error) + func (c *Client) GetCollegeByName(ctx context.Context, name string) (*models.DtoCollegeResponse, error) + func (c *Client) GetColleges(ctx context.Context) ([]*models.DtoCollegeResponse, error) + func (c *Client) GetGroup(ctx context.Context, id int64) (*models.DtoStudentGroupResponse, error) + func (c *Client) GetGroupByName(ctx context.Context, campusID int64, name string) (*models.DtoStudentGroupResponse, error) + func (c *Client) GetGroups(ctx context.Context, campusID int64) ([]*models.DtoStudentGroupResponse, error) + func (c *Client) GetGroupsByCollegeID(ctx context.Context, collegeID int64, name *string) ([]*models.DtoStudentGroupResponse, error) + func (c *Client) GetScheduleForDate(ctx context.Context, groupID int64, date time.Time) (*models.DtoScheduleResponse, error) + func (c *Client) GetScheduleForToday(ctx context.Context, groupID int64) (*models.DtoScheduleResponse, error) + func (c *Client) GetScheduleForTomorrow(ctx context.Context, groupID int64) (*models.DtoScheduleResponse, error) + func (c *Client) GetScheduleForWeekday(ctx context.Context, groupID int64, weekday time.Weekday) (*models.DtoScheduleResponse, error) + func (c *Client) GetScheduleForWeekdayOfNextWeek(ctx context.Context, groupID int64, weekday time.Weekday) (*models.DtoScheduleResponse, error) + func (c *Client) GetScheduleForWeekdayOfPreviousWeek(ctx context.Context, groupID int64, weekday time.Weekday) (*models.DtoScheduleResponse, error) + func (c *Client) GetSchedulesForCurrentWeek(ctx context.Context, groupID int64) ([]*models.DtoScheduleResponse, error) + func (c *Client) GetSchedulesForNextWeek(ctx context.Context, groupID int64) ([]*models.DtoScheduleResponse, error) + func (c *Client) GetSchedulesForPreviousWeek(ctx context.Context, groupID int64) ([]*models.DtoScheduleResponse, error) + type Parser interface + GetCalls func() ([]models.DtoCall, error) + GetStudentGroupNames func(campusName string) (groupNames []string, _ error) + SendLessons func(groups map[string]int64, lessons chan<- []*models.DtoLesson) error + type ParserClient struct + Parser Parser + func NewParserClient(ctx context.Context, url, token string, timeout time.Duration) (*ParserClient, error) + func (c *ParserClient) AddLessons(ctx context.Context, lessons []*models.DtoLesson) error + func (c *ParserClient) GetCampusByName(ctx context.Context, name string) (*models.DtoCampusResponse, error) + func (c *ParserClient) GetCampuses(ctx context.Context) ([]*models.DtoCampusResponse, error) + func (c *ParserClient) GetCollege(ctx context.Context) (*models.DtoCollegeResponse, error) + func (c *ParserClient) GetGroups(ctx context.Context) ([]*models.DtoStudentGroupResponse, error) + func (c *ParserClient) GetGroupsByName(ctx context.Context, name string) ([]*models.DtoStudentGroupResponse, error) + func (c *ParserClient) Run(ctx context.Context, errorCh chan<- error) error + func (c *ParserClient) SetParser(parser Parser) + func (c *ParserClient) UpdateCalls(ctx context.Context, calls []models.DtoCall) error + func (c *ParserClient) UpdateGroups(ctx context.Context, campusID int64, studentGroupNames []string) error