mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
21 lines
433 B
Go
21 lines
433 B
Go
package env
|
|
|
|
// Logger defines logger to print logs
|
|
type Logger interface {
|
|
Debug(args ...interface{})
|
|
Info(args ...interface{})
|
|
Warn(args ...interface{})
|
|
Error(args ...interface{})
|
|
}
|
|
|
|
// Config defines parameters to create environment builder
|
|
type Config struct {
|
|
ContainerInitPath string
|
|
TmpFsParam string
|
|
NetShare bool
|
|
MountConf string
|
|
CgroupPrefix string
|
|
Cpuset string
|
|
Logger
|
|
}
|