Documentation ¶
Index ¶
- Variables
- func AddAnnouncement(ctx context.Context, a *agent.Agent, announcement AddAnnouncementRequest) (*http.Response, error)
- func AddClass(ctx context.Context, a *agent.Agent, courseID string, ...) (*http.Response, error)
- func AddCourse(ctx context.Context, a *agent.Agent, courseRequest AddCourseRequest) (*http.Response, error)
- func BrowserAccess(ctx context.Context, a *agent.Agent, path string) (*http.Response, agent.Resources, error)
- func DownloadSubmittedAssignments(ctx context.Context, a *agent.Agent, courseID, classID string) (*http.Response, error)
- func GetAnnouncementDetail(ctx context.Context, a *agent.Agent, id string) (*http.Response, error)
- func GetAnnouncementList(ctx context.Context, a *agent.Agent, rawURL string, courseID string) (*http.Response, error)
- func GetClasses(ctx context.Context, a *agent.Agent, courseID string) (*http.Response, error)
- func GetCourseDetail(ctx context.Context, a *agent.Agent, courseID string) (*http.Response, error)
- func GetGrades(ctx context.Context, a *agent.Agent) (*http.Response, error)
- func GetMe(ctx context.Context, a *agent.Agent) (*http.Response, error)
- func GetRegisteredCourses(ctx context.Context, a *agent.Agent) (*http.Response, error)
- func Initialize(ctx context.Context, a *agent.Agent) (*http.Response, error)
- func Login(ctx context.Context, a *agent.Agent, auth LoginRequest) (*http.Response, error)
- func RegisterCourses(ctx context.Context, a *agent.Agent, courses []RegisterCourseRequestContent) (*http.Response, error)
- func RegisterScores(ctx context.Context, a *agent.Agent, courseID, classID string, ...) (*http.Response, error)
- func SearchCourse(ctx context.Context, a *agent.Agent, param *SearchCourseRequest) (*http.Response, error)
- func SearchCourseWithNext(ctx context.Context, a *agent.Agent, pathParam string) (*http.Response, error)
- func SetCourseStatus(ctx context.Context, a *agent.Agent, courseID string, status CourseStatus) (*http.Response, error)
- func SubmitAssignment(ctx context.Context, a *agent.Agent, courseID, classID, fileName string, ...) (*http.Response, error)
- type AddAnnouncementRequest
- type AddClassRequest
- type AddClassResponse
- type AddCourseRequest
- type AddCourseResponse
- type AnnouncementResponse
- type ClassScore
- type CourseResult
- type CourseStatus
- type CourseType
- type DayOfWeek
- type GetAnnouncementDetailResponse
- type GetAnnouncementsResponse
- type GetClassResponse
- type GetCourseDetailResponse
- type GetGradeResponse
- type GetMeResponse
- type GetRegisteredCourseResponseContent
- type InitializeResponse
- type LoginRequest
- type RegisterCourseRequestContent
- type RegisterCoursesErrorResponse
- type RegisterScoreRequestContent
- type SearchCourseRequest
- type SetCourseStatusRequest
- type Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var DayOfWeekTable = []DayOfWeek{
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
}
Functions ¶
func AddAnnouncement ¶
func BrowserAccess ¶
func GetAnnouncementDetail ¶
func GetAnnouncementList ¶
func GetClasses ¶
func GetCourseDetail ¶
func GetRegisteredCourses ¶
func RegisterCourses ¶
func RegisterScores ¶
func SearchCourse ¶
func SearchCourseWithNext ¶
func SetCourseStatus ¶
Types ¶
type AddAnnouncementRequest ¶
type AddClassRequest ¶
type AddClassResponse ¶
type AddClassResponse struct {
ClassID string `json:"class_id"`
}
type AddCourseRequest ¶
type AddCourseResponse ¶
type AddCourseResponse struct {
ID string `json:"id"`
}
type AnnouncementResponse ¶
type ClassScore ¶
type CourseResult ¶
type CourseResult struct { Name string `json:"name"` Code string `json:"code"` TotalScore int `json:"total_score"` TotalScoreTScore float64 `json:"total_score_t_score"` // 偏差値 TotalScoreAvg float64 `json:"total_score_avg"` // 平均値 TotalScoreMax int `json:"total_score_max"` // 最大値 TotalScoreMin int `json:"total_score_min"` // 最小値 ClassScores []ClassScore `json:"class_scores"` }
type CourseStatus ¶
type CourseStatus string
const ( StatusRegistration CourseStatus = "registration" StatusInProgress CourseStatus = "in-progress" StatusClosed CourseStatus = "closed" )
type CourseType ¶
type CourseType string
const ( CourseTypeLiberalArts CourseType = "liberal-arts" CourseTypeMajorSubjects CourseType = "major-subjects" )
type GetAnnouncementsResponse ¶
type GetAnnouncementsResponse struct { UnreadCount int `json:"unread_count"` Announcements []AnnouncementResponse `json:"announcements"` }
type GetClassResponse ¶
type GetCourseDetailResponse ¶
type GetCourseDetailResponse struct { ID string `json:"id"` Code string `json:"code"` Type CourseType `json:"type"` Name string `json:"name"` Description string `json:"description"` Credit uint8 `json:"credit"` Period uint8 `json:"period"` DayOfWeek DayOfWeek `json:"day_of_week"` Teacher string `json:"teacher"` Status CourseStatus `json:"status"` Keywords string `json:"keywords"` }
type GetGradeResponse ¶
type GetGradeResponse struct { Summary Summary `json:"summary"` CourseResults []CourseResult `json:"courses"` }
type GetMeResponse ¶
type InitializeResponse ¶
type InitializeResponse struct {
Language string `json:"language"`
}
type LoginRequest ¶
type RegisterCourseRequestContent ¶
type RegisterCourseRequestContent struct {
ID string `json:"id"`
}
type SearchCourseRequest ¶
type SearchCourseRequest struct { Type CourseType Credit uint8 Teacher string Period uint8 DayOfWeek DayOfWeek Keywords string Status CourseStatus }
type SetCourseStatusRequest ¶
type SetCourseStatusRequest struct {
Status CourseStatus `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.