constants

package
v0.0.0-...-94f4387 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success = 1 + iota
	Fail
)
View Source
const (
	SANDBOX_LOG_BASE = "/app/sandbox/logs"
	COMPILE_LOG_PATH = SANDBOX_LOG_BASE + "/compile/log.out"
	RUN_LOG_PATH     = SANDBOX_LOG_BASE + "/run/log.out"
	COMPILE_OUT_FILE = "compile.out"
)

FIXME: logger 구현 후 다시 설정

View Source
const (
	LOG_PATH_DEV  = "./logs/server.log"
	LOG_PATH_PROD = "./logs/server.log" // "/app/logs/server.log"
)
View Source
const (
	EXCHANGE   = "judger-exchange"
	RESULT_KEY = "result"
)
View Source
const BASE_FILE_MODE = 0711

const BASE_DIR = "/go/src/workspace/results"

View Source
const DIR_NAME_LEN = 16
View Source
const EVENT_CHAN_SIZE = 10
View Source
const JAVA_POLICY_PATH = SANDBOX_BASE + "/policy/java_policy"
View Source
const LIBJUDGER_PATH = SANDBOX_BASE + "/libjudger.so"
View Source
const MAX_MQ_CHANNEL = 10
View Source
const MAX_SUBMISSION = 10
View Source
const PUBLISH_RESULT = "Publish"
View Source
const RESULT_PATH = SANDBOX_BASE + "/results"
View Source
const SANDBOX_BASE = "./lib/judger" // for local
View Source
const TASK_EXEC = "Execute"
View Source
const TASK_EXITED = "Exited"
View Source
const TESTCASE_GET_TIMEOUT = 10
View Source
const TOKEN_HEADER = "judge-server-token"

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string
const (
	Production  Env = "production"
	Development Env = "development"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL