Documentation
¶
Index ¶
- func InternalErrorResp(c echo.Context) error
- type AddProblemsToSetResponse
- type AddStudentsResponse
- type AdminCreateUserResponse
- type AdminGetLogsResponse
- type AdminGetUserResponse
- type AdminGetUsersResponse
- type AdminUpdateUserResponse
- type CloneProblemSetResponse
- type CreateClassResponse
- type CreateImageResponse
- type CreateProblemResponse
- type CreateProblemSetResponse
- type CreateSubmissionResponse
- type CreateTestCaseResponse
- type DeleteProblemsFromSetResponse
- type DeleteStudentsResponse
- type EmailVerificationResponse
- type GetClassGradesResponse
- type GetClassResponse
- type GetClassResponseForAdmin
- type GetClassesIManageResponse
- type GetClassesITakeResponse
- type GetMeResponse
- type GetProblemResponse
- type GetProblemResponseForAdmin
- type GetProblemSetGradesResponse
- type GetProblemSetProblemResponse
- type GetProblemSetProblemResponseForAdmin
- type GetProblemSetResponse
- type GetProblemSetResponseForAdmin
- type GetProblemSetResponseSummary
- type GetProblemsResponse
- type GetProblemsResponseForAdmin
- type GetRandomProblemResponse
- type GetScriptResponse
- type GetSubmissionResponse
- type GetSubmissionsResponse
- type GetTaskResponse
- type GetUserProblemInfoResponse
- type GetUserResponse
- type GetUsersResponse
- type JoinClassResponse
- type LoginResponse
- type ProblemSetCreateSubmissionResponse
- type ProblemSetGetSubmissionResponse
- type ProblemSetGetSubmissionsResponse
- type RefreshGradesResponse
- type RefreshInviteCodeResponse
- type RegisterResponse
- type RequestResetPasswordResponse
- type ResendEmailVerificationResponse
- type Response
- type UpdateClassResponse
- type UpdateEmailResponse
- type UpdateMeResponse
- type UpdateProblemResponse
- type UpdateProblemSetResponse
- type UpdateTestCaseResponse
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternalErrorResp ¶
Types ¶
type AddProblemsToSetResponse ¶
type AddProblemsToSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type AddStudentsResponse ¶
type AddStudentsResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type AdminCreateUserResponse ¶
type AdminCreateUserResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type AdminGetLogsResponse ¶
type AdminGetUserResponse ¶
type AdminGetUserResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type AdminGetUsersResponse ¶
type AdminGetUsersResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
Users []resource.User `json:"users"`
Total int `json:"total"`
Count int `json:"count"`
Offset int `json:"offset"`
Prev *string `json:"prev"`
Next *string `json:"next"`
} `json:"data"`
}
type AdminUpdateUserResponse ¶
type AdminUpdateUserResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type CloneProblemSetResponse ¶
type CloneProblemSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type CreateClassResponse ¶
type CreateClassResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type CreateImageResponse ¶
type CreateProblemResponse ¶
type CreateProblemResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemForAdmin `json:"problem"`
} `json:"data"`
}
type CreateProblemSetResponse ¶
type CreateProblemSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type CreateSubmissionResponse ¶
type CreateSubmissionResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.SubmissionDetail `json:"submission"`
} `json:"data"`
}
type CreateTestCaseResponse ¶
type CreateTestCaseResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.TestCaseForAdmin `json:"test_case"`
} `json:"data"`
}
type DeleteProblemsFromSetResponse ¶
type DeleteProblemsFromSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type DeleteStudentsResponse ¶
type DeleteStudentsResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type EmailVerificationResponse ¶
type EmailVerificationResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data interface{} `json:"data"`
}
type GetClassGradesResponse ¶
type GetClassGradesResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
ProblemSets []*resource.ProblemSetWithGrades `json:"problem_sets"`
} `json:"data"`
}
type GetClassResponse ¶
type GetClassResponseForAdmin ¶
type GetClassResponseForAdmin struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type GetClassesITakeResponse ¶
type GetMeResponse ¶
type GetMeResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type GetProblemResponse ¶
type GetProblemResponseForAdmin ¶
type GetProblemResponseForAdmin struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemForAdmin `json:"problem"`
} `json:"data"`
}
type GetProblemSetGradesResponse ¶
type GetProblemSetGradesResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetWithGrades `json:"problem_set"`
} `json:"data"`
}
type GetProblemSetProblemResponseForAdmin ¶
type GetProblemSetProblemResponseForAdmin struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemForAdmin `json:"problem"`
} `json:"data"`
}
type GetProblemSetResponse ¶
type GetProblemSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSet `json:"problem_set"`
} `json:"data"`
}
type GetProblemSetResponseForAdmin ¶
type GetProblemSetResponseForAdmin struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type GetProblemSetResponseSummary ¶
type GetProblemSetResponseSummary struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetSummary `json:"problem_set"`
} `json:"data"`
}
type GetProblemsResponse ¶
type GetProblemsResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
Problems []resource.ProblemSummary `json:"problems"`
Total int `json:"total"`
Count int `json:"count"`
Offset int `json:"offset"`
Prev *string `json:"prev"`
Next *string `json:"next"`
} `json:"data"`
}
type GetProblemsResponseForAdmin ¶
type GetProblemsResponseForAdmin struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
Problems []resource.ProblemSummaryForAdmin `json:"problems"`
Total int `json:"total"`
Count int `json:"count"`
Offset int `json:"offset"`
Prev *string `json:"prev"`
Next *string `json:"next"`
} `json:"data"`
}
type GetScriptResponse ¶
type GetScriptResponse struct {
}
GetScriptResponse Will redirect to download url
type GetSubmissionResponse ¶
type GetSubmissionResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.SubmissionDetail `json:"submission"`
} `json:"data"`
}
type GetSubmissionsResponse ¶
type GetSubmissionsResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
Submissions []resource.Submission `json:"submissions"`
Total int `json:"total"`
Count int `json:"count"`
Offset int `json:"offset"`
Prev *string `json:"prev"`
Next *string `json:"next"`
} `json:"data"`
}
type GetTaskResponse ¶
type GetTaskResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
RunID uint `json:"run_id"`
Language models.Language `json:"language"`
TestCaseID uint `json:"test_case_id"`
InputFile string `json:"input_file"` // pre-signed url
OutputFile string `json:"output_file"` // same as above
CodeFile string `json:"code_file"`
TestCaseUpdatedAt time.Time `json:"test_case_updated_at"`
MemoryLimit uint64 `json:"memory_limit"` // Byte
TimeLimit uint `json:"time_limit"` // ms
BuildArg string `json:"build_arg"` // E.g. O2=false
CompareScript models.Script `json:"compare_script"`
} `json:"data"`
}
type GetUserResponse ¶
type GetUsersResponse ¶
type JoinClassResponse ¶
type LoginResponse ¶
type LoginResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
User resource.UserForAdmin `json:"user"`
Token string `json:"token"`
} `json:"data"`
}
type ProblemSetCreateSubmissionResponse ¶
type ProblemSetCreateSubmissionResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.SubmissionDetail `json:"submission"`
} `json:"data"`
}
type ProblemSetGetSubmissionResponse ¶
type ProblemSetGetSubmissionResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.SubmissionDetail `json:"submission"`
} `json:"data"`
}
type ProblemSetGetSubmissionsResponse ¶
type ProblemSetGetSubmissionsResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
Submissions []resource.Submission `json:"submissions"`
Total int `json:"total"`
Count int `json:"count"`
Offset int `json:"offset"`
Prev *string `json:"prev"`
Next *string `json:"next"`
} `json:"data"`
}
type RefreshGradesResponse ¶
type RefreshGradesResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetWithGrades `json:"problem_set"`
} `json:"data"`
}
type RefreshInviteCodeResponse ¶
type RefreshInviteCodeResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type RegisterResponse ¶
type RegisterResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
User resource.UserForAdmin `json:"user"`
Token string `json:"token"`
} `json:"data"`
}
type RequestResetPasswordResponse ¶
type RequestResetPasswordResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data interface{} `json:"data"`
}
type ResendEmailVerificationResponse ¶
type ResendEmailVerificationResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data interface{} `json:"data"`
}
type Response ¶
type Response struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data interface{} `json:"data"`
}
func MakeInternalErrorResp ¶
func MakeInternalErrorResp() Response
type UpdateClassResponse ¶
type UpdateClassResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ClassDetail `json:"class"`
} `json:"data"`
}
type UpdateEmailResponse ¶
type UpdateEmailResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type UpdateMeResponse ¶
type UpdateMeResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.UserForAdmin `json:"user"`
} `json:"data"`
}
type UpdateProblemResponse ¶
type UpdateProblemResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemForAdmin `json:"problem"`
} `json:"data"`
}
type UpdateProblemSetResponse ¶
type UpdateProblemSetResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.ProblemSetDetail `json:"problem_set"`
} `json:"data"`
}
type UpdateTestCaseResponse ¶
type UpdateTestCaseResponse struct {
Message string `json:"message"`
Error interface{} `json:"error"`
Data struct {
*resource.TestCaseForAdmin `json:"test_case"`
} `json:"data"`
}
type ValidationError ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.