Documentation ¶
Index ¶
- Variables
- func CCompileHelper(session *shared.JudgeSession, compileCmd *exec.Cmd, fileName string) error
- func CompileAndGetRunCommand(session *shared.JudgeSession) (*exec.Cmd, error)
- func CppHelper(session *shared.JudgeSession, std string) (*exec.Cmd, error)
- func JavaHelper(session *shared.JudgeSession) (*exec.Cmd, error)
- type C11Adapter
- type Cpp11Adapter
- type Cpp14Adapter
- type Cpp17Adapter
- type Cpp98Adapter
- type Java11Adapter
- type Python3Adapter
Constants ¶
This section is empty.
Variables ¶
View Source
var JavaSecurityPolicy = `` /* 1779-byte string literal not displayed */
taken from https://github.com/DMOJ/judge-server/blob/master/dmoj/executors/java-security.policy
Functions ¶
func CCompileHelper ¶
func CompileAndGetRunCommand ¶
func CompileAndGetRunCommand(session *shared.JudgeSession) (*exec.Cmd, error)
func JavaHelper ¶
func JavaHelper(session *shared.JudgeSession) (*exec.Cmd, error)
Types ¶
type C11Adapter ¶
type C11Adapter struct{}
func (C11Adapter) Compile ¶
func (adapter C11Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (C11Adapter) GetName ¶
func (adapter C11Adapter) GetName() string
func (C11Adapter) JudgeFinished ¶
func (adapter C11Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Cpp11Adapter ¶
type Cpp11Adapter struct{}
func (Cpp11Adapter) Compile ¶
func (adapter Cpp11Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Cpp11Adapter) GetName ¶
func (adapter Cpp11Adapter) GetName() string
func (Cpp11Adapter) JudgeFinished ¶
func (adapter Cpp11Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Cpp14Adapter ¶
type Cpp14Adapter struct{}
func (Cpp14Adapter) Compile ¶
func (adapter Cpp14Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Cpp14Adapter) GetName ¶
func (adapter Cpp14Adapter) GetName() string
func (Cpp14Adapter) JudgeFinished ¶
func (adapter Cpp14Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Cpp17Adapter ¶
type Cpp17Adapter struct{}
func (Cpp17Adapter) Compile ¶
func (adapter Cpp17Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Cpp17Adapter) GetName ¶
func (adapter Cpp17Adapter) GetName() string
func (Cpp17Adapter) JudgeFinished ¶
func (adapter Cpp17Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Cpp98Adapter ¶
type Cpp98Adapter struct{}
func (Cpp98Adapter) Compile ¶
func (adapter Cpp98Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Cpp98Adapter) GetName ¶
func (adapter Cpp98Adapter) GetName() string
func (Cpp98Adapter) JudgeFinished ¶
func (adapter Cpp98Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Java11Adapter ¶
type Java11Adapter struct{}
func (Java11Adapter) Compile ¶
func (adapter Java11Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Java11Adapter) GetName ¶
func (adapter Java11Adapter) GetName() string
func (Java11Adapter) JudgeFinished ¶
func (adapter Java11Adapter) JudgeFinished(tcr *pb.TestCaseResult)
type Python3Adapter ¶
type Python3Adapter struct{}
func (Python3Adapter) Compile ¶
func (adapter Python3Adapter) Compile(session *shared.JudgeSession) (*exec.Cmd, error)
func (Python3Adapter) GetName ¶
func (adapter Python3Adapter) GetName() string
func (Python3Adapter) JudgeFinished ¶
func (adapter Python3Adapter) JudgeFinished(tcr *pb.TestCaseResult)
Click to show internal directories.
Click to hide internal directories.