mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
21 lines
510 B
Go
21 lines
510 B
Go
package client
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/criyle/go-judge/file"
|
|
"github.com/criyle/go-sandbox/runner"
|
|
)
|
|
|
|
// JudgeTask contains task received from server
|
|
type JudgeTask struct {
|
|
Type string // defines problem type
|
|
TestData []file.File // test data (potential local)
|
|
Code file.SourceCode // code & code language / answer submit in extra files
|
|
|
|
// task parameters
|
|
TimeLimit time.Duration
|
|
MemoryLimit runner.Size
|
|
Extra map[string]interface{} // extra special parameters
|
|
}
|