mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
27 lines
532 B
Go
27 lines
532 B
Go
package env
|
|
|
|
import "time"
|
|
|
|
// Logger defines logger to print logs
|
|
type Logger interface {
|
|
Debug(args ...any)
|
|
Info(args ...any)
|
|
Warn(args ...any)
|
|
Error(args ...any)
|
|
}
|
|
|
|
// Config defines parameters to create environment builder
|
|
type Config struct {
|
|
ContainerInitPath string
|
|
TmpFsParam string
|
|
NetShare bool
|
|
MountConf string
|
|
SeccompConf string
|
|
CgroupPrefix string
|
|
Cpuset string
|
|
ContainerCredStart int
|
|
EnableCPURate bool
|
|
CPUCfsPeriod time.Duration
|
|
Logger
|
|
}
|