25 lines
475 B
Go
25 lines
475 B
Go
package sandbox
|
|
|
|
import (
|
|
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
|
)
|
|
|
|
var name = "sandbox"
|
|
|
|
func init() {
|
|
stage.RegisterExecutor(name, &Sandbox{
|
|
execServer: "localhost:5051",
|
|
token: "",
|
|
cachedMap: make(map[string]string),
|
|
})
|
|
}
|
|
|
|
// overwrite the default registered executor
|
|
func InitWithConf(execServer, token string) {
|
|
stage.RegisterExecutor(name, &Sandbox{
|
|
execServer: execServer,
|
|
token: token,
|
|
cachedMap: make(map[string]string),
|
|
})
|
|
}
|