Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewConfig, wire.FieldsOf(new(Config), "Log"), wire.FieldsOf(new(Config), "Database"), wire.FieldsOf(new(Config), "Cache"), wire.FieldsOf(new(Config), "Auth"), wire.FieldsOf(new(Config), "HTTP"), wire.FieldsOf(new(Config), "Logic"), wire.FieldsOf(new(Auth), "Hash"), wire.FieldsOf(new(Auth), "Token"), )
Functions ¶
This section is empty.
Types ¶
type Compile ¶
type Compile struct { Image string `yaml:"image"` CommandTemplate []string `yaml:"command_template"` Timeout string `yaml:"timeout"` CPUQuota int64 `yaml:"cpu_quota"` Memory string `yaml:"memory"` WorkingDir string `yaml:"working_dir"` SourceFileName string `yaml:"source_file_name"` ProgramFileName string `yaml:"program_file_name"` }
func (Compile) GetMemoryInBytes ¶
type Config ¶
type Config struct { Log Log `yaml:"log"` Database Database `yaml:"database"` Cache Cache `yaml:"cache"` Auth Auth `yaml:"auth"` HTTP HTTP `yaml:"http"` Logic Logic `yaml:"logic"` }
func NewConfig ¶
func NewConfig(filePath ConfigFilePath) (Config, error)
type ConfigFilePath ¶
type ConfigFilePath string
type FirstAccount ¶
type FirstAccounts ¶
type FirstAccounts struct { Admin FirstAccount `yaml:"admin"` Worker FirstAccount `yaml:"worker"` }
type Judge ¶
type Language ¶
type Language struct { Value string `yaml:"value"` Name string `yaml:"name"` Compile *Compile `yaml:"compile"` TestCaseRun TestCaseRun `yaml:"test_case_run"` }
type Logic ¶
type Logic struct { FirstAccounts FirstAccounts `yaml:"first_accounts"` ProblemTestCaseHash ProblemTestCaseHash `yaml:"problem_test_case_hash"` Judge Judge `yaml:"judge"` SyncProblem SyncProblem `yaml:"sync_problem"` RevertExecutingSubmissions RevertExecutingSubmissions `yaml:"revert_executing_submissions"` }
type ProblemTestCaseHash ¶
type ProblemTestCaseHash struct {
BatchSize uint64 `yaml:"batch_size"`
}
type RevertExecutingSubmissions ¶
type RevertExecutingSubmissions struct { Schedule string `yaml:"schedule"` Threshold string `yaml:"threshold"` }
func (RevertExecutingSubmissions) GetThresholdDuration ¶
func (u RevertExecutingSubmissions) GetThresholdDuration() (time.Duration, error)
type SyncProblem ¶
type TestCaseRun ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.