Versions in this module Expand all Collapse all v1 v1.2.1 Dec 28, 2023 v1.2.0 Dec 28, 2023 Changes in this version + type Cache struct + Size uint64 type Config + Cache Cache v1.1.0 Dec 27, 2023 v1.0.0 Dec 27, 2023 Changes in this version + var WireSet = wire.NewSet(NewConfig, wire.FieldsOf(new(Config), "Log"), ...) + type Auth struct + Hash Hash + Token Token + type Compile struct + CPUQuota int64 + CommandTemplate []string + Image string + Memory string + ProgramFileName string + SourceFileName string + Timeout string + WorkingDir string + func (c Compile) GetMemoryInBytes() (uint64, error) + func (c Compile) GetTimeoutDuration() (time.Duration, error) + type Config struct + Auth Auth + Database Database + HTTP HTTP + Log Log + Logic Logic + func NewConfig(filePath ConfigFilePath) (Config, error) + type ConfigFilePath string + type Database struct + FilePath string + type FirstAccount struct + AccountName string + DisplayName string + Password string + type FirstAccounts struct + Admin FirstAccount + Worker FirstAccount + type HTTP struct + Address string + type Hash struct + Cost int + type Judge struct + Languages []Language + Schedule string + SubmissionRetryDelay string + func (j Judge) GetSubmissionRetryDelayDuration() (time.Duration, error) + type Language struct + Compile *Compile + Name string + TestCaseRun TestCaseRun + Value string + type Log struct + Level string + type Logic struct + FirstAccounts FirstAccounts + Judge Judge + ProblemTestCaseHash ProblemTestCaseHash + RevertExecutingSubmissions RevertExecutingSubmissions + SyncProblem SyncProblem + type ProblemTestCaseHash struct + BatchSize uint64 + type RevertExecutingSubmissions struct + Schedule string + Threshold string + func (u RevertExecutingSubmissions) GetThresholdDuration() (time.Duration, error) + type SyncProblem struct + GetProblemSnippetListBatchSize uint64 + GetTestCaseSnippetListBatchSize uint64 + Schedule string + type TestCaseRun struct + CPUQuota int64 + CommandTemplate []string + Image string + WorkingDir string + type Token struct + ExpiresIn string + PrivateKey string + PublicKey string + RegenerateTokenBeforeExpiry string + func (t Token) GetExpiresInDuration() (time.Duration, error) + func (t Token) GetRegenerateTokenBeforeExpiryDuration() (time.Duration, error)