Documentation ¶
Index ¶
- type Assign
- type AssignId
- type Conversation
- type Course
- type CourseId
- type DownloadItem
- type DownloadSection
- type DownloadType
- type Exception
- type File
- type Grade
- type Member
- type Message
- type Moodle
- func (m *Moodle) Assign(id AssignId) (Assign, error)
- func (m *Moodle) Conversations() ([]Conversation, error)
- func (m *Moodle) CourseSearch(query string) ([]Course, error)
- func (m *Moodle) DownloadCenter(id CourseId) ([]DownloadSection, error)
- func (m *Moodle) DownloadCenterDownload(id CourseId, topic uint, typ DownloadType, item uint) (io.ReadCloser, error)
- func (m *Moodle) GradeReport(course CourseId) ([]Grade, error)
- func (m *Moodle) LoginShibboleth(username, password string) error
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversation ¶
type Conversation struct { Id uint Name string MemberCount uint IsMuted bool IsFavourite bool IsRead bool UnreadCount uint Members []Member Messages []Message CanDeleteMessagesForAllUsers bool }
func (Conversation) Title ¶
func (c Conversation) Title() string
type DownloadItem ¶
type DownloadItem struct { Id uint Type DownloadType Title string }
type DownloadSection ¶
type DownloadSection struct { Id uint Title string Items []DownloadItem }
type DownloadType ¶
type DownloadType uint8
const ( DownloadResource DownloadType = iota DownloadAssign DownloadFolder )
func (DownloadType) String ¶
func (t DownloadType) String() string
type Moodle ¶
func (*Moodle) Conversations ¶
func (m *Moodle) Conversations() ([]Conversation, error)
func (*Moodle) DownloadCenter ¶
func (m *Moodle) DownloadCenter(id CourseId) ([]DownloadSection, error)
func (*Moodle) DownloadCenterDownload ¶
func (m *Moodle) DownloadCenterDownload(id CourseId, topic uint, typ DownloadType, item uint) (io.ReadCloser, error)
func (*Moodle) LoginShibboleth ¶
Click to show internal directories.
Click to hide internal directories.