Documentation
¶
Index ¶
- Constants
- func AutoloadProblem(questID int) (string, int, error)
- func CompileCode(lang string, isolateID int, codeContent string) (bool, int, string)
- func InitalIsolate(isolateID int) int
- func LookUpMeta(isolateID int) (int, string)
- func NewProblemDir(file *multipart.FileHeader, questID int) (bool, error)
- func RemoveProblemDir(questID int) (bool, error)
- func RunnerIsolate(isolateID int, boxFile int, questID int, max_time float32, max_mem int) (bool, int, int, string, error)
- func VerifyResult(questID int, testcaseNo int, output string) bool
- type TestcaseDesc
Constants ¶
View Source
const ( OK = 1 TIMEOUT = 2 DIE = -99 SYS_DIE = -98 )
View Source
const ( LF = 10 // LINEFEED EOT = 3 // END-OF-TEXT like EOF SPACEBAR = 20 )
Variables ¶
This section is empty.
Functions ¶
func CompileCode ¶
func InitalIsolate ¶
func LookUpMeta ¶
func NewProblemDir ¶
func NewProblemDir(file *multipart.FileHeader, questID int) (bool, error)
func RemoveProblemDir ¶
func RunnerIsolate ¶
Types ¶
type TestcaseDesc ¶
type TestcaseDesc struct {
ProblemTitle string `json:"problem_title"`
MaxTime float32 `json:"max_time"`
MaxMemory int `json:"max_memory"`
AmountTestcase int `json:"amount_testcase"`
}
func FullLoadProblem ¶
func FullLoadProblem(questID int) (TestcaseDesc, error)
Click to show internal directories.
Click to hide internal directories.