Versions in this module Expand all Collapse all v0 v0.1.1 Nov 20, 2026 v0.1.0 Nov 12, 2026 Changes in this version + type Announcement struct + Attachments []Attachment + Body string + CourseCode *string + CourseID int + CreatedDate *string + EndDate *string + ID int + IsHidden bool + IsPinned bool + LastModifiedDate *string + StartDate *string + Title string + type AnnouncementFeed struct + Announcements []Announcement + Errors []CourseError + type Assignment struct + AvailableFrom *string + AvailableUntil *string + DueDate *string + ID int + Name string + Points *float64 + type Attachment struct + ID int + Name string + Size *int + type Client struct + func New(httpClient Doer) *Client + func Open(ctx context.Context, options auth.Options) (*Client, error) + func (c *Client) AllAnnouncements(ctx context.Context, since string) (AnnouncementFeed, error) + func (c *Client) Announcements(ctx context.Context, courseID int, since string) ([]Announcement, error) + func (c *Client) Assignments(ctx context.Context, courseID int) ([]Assignment, error) + func (c *Client) Content(ctx context.Context, courseID int) (TableOfContents, error) + func (c *Client) Courses(ctx context.Context) ([]Course, error) + func (c *Client) Download(ctx context.Context, contentURL string) (io.ReadCloser, error) + func (c *Client) DownloadSubmissionFile(ctx context.Context, courseID, folderID, submissionID, fileID int) (io.ReadCloser, error) + func (c *Client) Enrollments(ctx context.Context) ([]Course, error) + func (c *Client) Grades(ctx context.Context, courseID int) (Grades, error) + func (c *Client) Submissions(ctx context.Context, courseID, folderID int) ([]Submission, error) + func (c *Client) Topic(ctx context.Context, courseID, topicID int) (Topic, error) + func (c *Client) WhoAmI(ctx context.Context) (User, error) + type Course struct + Code *string + ID int + RawName string + Role string + Section *string + Title string + Type string + type CourseError struct + CourseID int + Error string + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Error struct + Body string + Label string + Status int + func (e *Error) Error() string + type Grade struct + DisplayedGrade *string + ExcludeFromFinal bool + Feedback *string + GradeType string + ID string + IsBonus bool + LastModified *string + MaxPoints *float64 + Name string + Score *float64 + ScoreMax *float64 + Weight *float64 + type Grades struct + CourseID int + Grades []Grade + func (g Grades) Graded() Grades + type Module struct + Description *string + ID int + LastModified *string + Modules []Module + Title string + Topics []Topic + type Submission struct + Comment string + Date *string + Files []SubmissionFile + ID int + SubmittedBy string + type SubmissionFile struct + ID int + Name string + Size int64 + type TableOfContents struct + CourseID int + Modules []Module + func (t TableOfContents) Flatten() []Topic + type Topic struct + DueDate *string + ID int + LastModified *string + Module string + Title string + Type int + URL string + type User struct + FirstName string + ID string + LastName string + UniqueName string