Documentation
¶
Index ¶
- Variables
- type AuthService
- type Client
- type CommentParams
- type Correction
- type CourseMember
- type Credentials
- type DownloadParams
- type ExerciseService
- func (exercise *ExerciseService) Download(params *DownloadParams) (*Submission, error)
- func (exercise *ExerciseService) Export(query *GradesExportQuery) ([]Grading, error)
- func (exercise *ExerciseService) List(params *ListParams) ([]SubmissionMeta, error)
- func (exercise *ExerciseService) UpdateComment(params *CommentParams, correction Correction) error
- func (exercise *ExerciseService) UpdateGrades(params *GradesUpdateQuery, corrections []Correction) error
- type GradesExportQuery
- type GradesUpdateQuery
- type Grading
- type ListParams
- type MemberParams
- type MemberService
- type Submission
- type SubmissionMeta
- type UploadFile
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService service
type Client ¶
type Client struct { // The current user's login name. User *User // Base URL for requests. Should end with a dash. BaseURL *url.URL // Host field set within request headers Host string Auth *AuthService Exercise *ExerciseService Members *MemberService // contains filtered or unexported fields }
func (*Client) NewMultipartRequest ¶
type CommentParams ¶
type Correction ¶
type CourseMember ¶
type CourseMember struct { Identifier string Username string Firstname string Lastname string Role string }
func (*CourseMember) ToRow ¶
func (s *CourseMember) ToRow() []string
type Credentials ¶
type DownloadParams ¶
type ExerciseService ¶
type ExerciseService service
func (*ExerciseService) Download ¶
func (exercise *ExerciseService) Download(params *DownloadParams) (*Submission, error)
func (*ExerciseService) Export ¶
func (exercise *ExerciseService) Export(query *GradesExportQuery) ([]Grading, error)
func (*ExerciseService) List ¶
func (exercise *ExerciseService) List(params *ListParams) ([]SubmissionMeta, error)
func (*ExerciseService) UpdateComment ¶
func (exercise *ExerciseService) UpdateComment(params *CommentParams, correction Correction) error
func (*ExerciseService) UpdateGrades ¶
func (exercise *ExerciseService) UpdateGrades(params *GradesUpdateQuery, corrections []Correction) error
type GradesExportQuery ¶
type GradesExportQuery struct {
Reference string `schema:"ref_id"`
}
type GradesUpdateQuery ¶
type ListParams ¶
type MemberParams ¶
type MemberParams struct {
Reference string `schema:"ref_id"`
}
type MemberService ¶
type MemberService service
func (*MemberService) List ¶
func (members *MemberService) List(params *MemberParams) ([]CourseMember, error)
type Submission ¶
type SubmissionMeta ¶
type SubmissionMeta struct { Identifier string Firstname string Lastname string UserId string Date string }
func (*SubmissionMeta) ToRow ¶
func (s *SubmissionMeta) ToRow() []string
type UploadFile ¶
type UploadFile struct { Header textproto.MIMEHeader Content *bytes.Buffer }
Click to show internal directories.
Click to hide internal directories.