package
Version:
v0.0.0-...-77f4496
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
PendingStatus = "Pending"
RunningStatus = "Running"
FailedStatus = "Failed"
OkStatus = "OK"
AC_Status = "Accepted"
WA_Status = "Wrong answer"
CE_Status = "Compile error"
RE_Status = "Runtime error"
TL_Status = "Time limit"
)
type Compiler struct {
CompilerId string `json:"compilerId"`
Name string `json:"name"`
CmdCompile string `json:"cmdCompile"`
CmdRun string `json:"cmdRun"`
}
type Execution struct {
CompilerId string `json:"compilerId"`
Time int `json:"time"`
Memory int `json:"memory"`
Error string `json:"error"`
}
type Problem struct {
ProblemId string `json:"problemId"`
Title string `json:"title"`
}
type ProposedSolution struct {
ProblemId string `json:"problemId"`
CompilerId string `json:"compilerId"`
Filename string `json:"filename"`
Source []byte `json:"source"`
}
type Solution struct {
Checksum string `json:"checksum"`
FileName string `json:"filename"`
FileSize int `json:"size"`
}
type Submission struct {
SubmissionId string `json:"submissionId"`
Problem *Problem `json:"problem"`
Solution *Solution `json:"solution"`
Execution Execution `json:"execution"`
Tests []Test `json:"tests"`
Status string `json:"status"`
Date string `json:"date"`
}
type Test struct {
Case int `json:"case"`
Status string `json:"status"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.