Documentation ¶
Index ¶
- type PrepareSubmissionError
- type PrepareTestCasesError
- type RepositoryService
- func (r *RepositoryService) GetDescriptionPath(problemId string) string
- func (r *RepositoryService) GetExpectedPath(problemId string) string
- func (r *RepositoryService) GetInputPath(problemId string) string
- func (r *RepositoryService) GetSubmissionProblemPath(problemId string) string
- func (r *RepositoryService) GetTestCasesFromRepo(problemId string) ([]model.Test, error)
- func (r *RepositoryService) UploadSubmissionToRepo(problemId string, filename string, source []byte) (*model.Solution, error)
- type Service
- type UploadSubmissionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrepareSubmissionError ¶
type PrepareSubmissionError struct {
SubmissionId string
}
func (*PrepareSubmissionError) Error ¶
func (e *PrepareSubmissionError) Error() string
type PrepareTestCasesError ¶
type PrepareTestCasesError struct {
ProblemId string
}
func (*PrepareTestCasesError) Error ¶
func (e *PrepareTestCasesError) Error() string
type RepositoryService ¶
type RepositoryService struct {
// contains filtered or unexported fields
}
func (*RepositoryService) GetDescriptionPath ¶
func (r *RepositoryService) GetDescriptionPath(problemId string) string
func (*RepositoryService) GetExpectedPath ¶
func (r *RepositoryService) GetExpectedPath(problemId string) string
func (*RepositoryService) GetInputPath ¶
func (r *RepositoryService) GetInputPath(problemId string) string
func (*RepositoryService) GetSubmissionProblemPath ¶
func (r *RepositoryService) GetSubmissionProblemPath(problemId string) string
func (*RepositoryService) GetTestCasesFromRepo ¶
func (r *RepositoryService) GetTestCasesFromRepo(problemId string) ([]model.Test, error)
func (*RepositoryService) UploadSubmissionToRepo ¶
type Service ¶
type Service interface { UploadSubmissionToRepo(problemId string, filename string, source []byte) (*model.Solution, error) GetTestCasesFromRepo(problemId string) ([]model.Test, error) GetInputPath(problemId string) string GetExpectedPath(problemId string) string GetDescriptionPath(problemId string) string GetSubmissionProblemPath(problemId string) string }
type UploadSubmissionError ¶
type UploadSubmissionError struct {
Filename string
}
func (*UploadSubmissionError) Error ¶
func (e *UploadSubmissionError) Error() string
Click to show internal directories.
Click to hide internal directories.