Documentation
¶
Index ¶
- Variables
- type AdminClient
- type AuthTransport
- type 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
- type ParserClient
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
type AdminClient struct {
*Client
// contains filtered or unexported fields
}
func NewAdminClient ¶
func NewAdminClient(url, token string, timeout time.Duration) *AdminClient
func (*AdminClient) DeleteParser ¶
func (c *AdminClient) DeleteParser(ctx context.Context, id int64) error
type AuthTransport ¶
type AuthTransport struct {
// contains filtered or unexported fields
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetCampusByName ¶
func (*Client) GetCampuses ¶
func (*Client) GetCollege ¶
func (*Client) GetCollegeByName ¶
func (*Client) GetColleges ¶
func (*Client) GetGroupByName ¶
func (*Client) GetGroupsByCollegeID ¶
func (*Client) GetScheduleForDate ¶
func (*Client) GetScheduleForToday ¶
func (*Client) GetScheduleForTomorrow ¶
func (*Client) GetScheduleForWeekday ¶
func (*Client) GetScheduleForWeekdayOfNextWeek ¶
func (*Client) GetScheduleForWeekdayOfPreviousWeek ¶
func (*Client) GetSchedulesForCurrentWeek ¶
func (*Client) GetSchedulesForNextWeek ¶
func (*Client) GetSchedulesForPreviousWeek ¶
type ParserClient ¶
func NewParserClient ¶
func (*ParserClient) AddLessons ¶
func (*ParserClient) GetCampusByName ¶
func (c *ParserClient) GetCampusByName(ctx context.Context, name string) (*models.DtoCampusResponse, error)
func (*ParserClient) GetCampuses ¶
func (c *ParserClient) GetCampuses(ctx context.Context) ([]*models.DtoCampusResponse, error)
func (*ParserClient) GetCollege ¶
func (c *ParserClient) GetCollege(ctx context.Context) (*models.DtoCollegeResponse, error)
func (*ParserClient) GetGroups ¶
func (c *ParserClient) GetGroups(ctx context.Context) ([]*models.DtoStudentGroupResponse, error)
func (*ParserClient) GetGroupsByName ¶
func (c *ParserClient) GetGroupsByName(ctx context.Context, name string) ([]*models.DtoStudentGroupResponse, error)
func (*ParserClient) Run ¶
func (c *ParserClient) Run(ctx context.Context, errorCh chan<- error) error
func (*ParserClient) SetParser ¶
func (c *ParserClient) SetParser(parser Parser)
func (*ParserClient) UpdateCalls ¶
func (*ParserClient) UpdateGroups ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.