Documentation
¶
Index ¶
Constants ¶
View Source
const ( OUTCOME_AC = "AC" // answer correct OUTCOME_WA = "WA" // wrong answer OUTCOME_RTE = "RTE" // run time error OUTCOME_CE = "CE" // compile error OUTCOME_TLE = "TLE" // time limit exceeded OUTCOME_MLE = "MLE" // memory limit exceeded OUTCOME_ILL = "ILL" // illegal operation OUTCOME_ISE = "ISE" // internal server error OUTCOME_SKIP = "SKIP" // skipped judging OUTCOME_OLE = "OLE" // output limit exceeded )
Variables ¶
Functions ¶
Types ¶
type JudgeSession ¶
type JudgeSession struct { Workspace string Code string Language string OriginalRequest *pb.TestSolutionRequest CommandFd uintptr RunCommand *exec.Cmd // limits set by adapters FSizeLimit int64 NProcLimit int64 MemLimit uint64 SandboxWithSeccomp bool SeccompProfile util.SandboxProfile LanguageAdapter SmoothieAdapter }
type JudgeStatus ¶
type JudgeStatus struct { Err error // any possible errors Res pb.TestSolutionResponse // response to send back }
type SmoothieAdapter ¶
type SmoothieAdapter interface { GetName() string Compile(session *JudgeSession) (*exec.Cmd, error) // return command in the workspace JudgeFinished(tcr *pb.TestCaseResult) }
Click to show internal directories.
Click to hide internal directories.