Versions in this module Expand all Collapse all v1 v1.3.0 Aug 17, 2026 Changes in this version + const ShortIDLength + var ErrNotFound = errors.New("submission not found") + var ErrShortIDTaken = errors.New("submission short id taken") + func RandomShortID() (string, error) + func ValidShortID(s string) bool type Subm + ShortID string v1.2.0 Aug 12, 2026 v1.1.2 Aug 11, 2026 v1.1.1 Aug 11, 2026 v1.1.0 Aug 11, 2026 v1.0.0 Aug 10, 2026 Changes in this version + func CalcMaxScores(userSubms []SubmJoinScoreInfo) map[string]MaxScore + type Eval struct + Checker *string + CpuLimMs int + CreatedAt time.Time + Error *EvalError + Groups []TestGroup + Interactor *string + MemLimKiB int + ScoreUnit ScoreUnit + Stage EvalStage + SubmUUID uuid.UUID + Subtasks []Subtask + Tests []Test + UUID uuid.UUID + func NewEval(uuid uuid.UUID, submUuid uuid.UUID, task srvc.Task) Eval + func (e *Eval) CalculateScore() ScoreInfo + type EvalError struct + Message *string + Type EvalErrorType + type EvalErrorType string + const ErrorTypeCompilation + const ErrorTypeInternal + type EvalStage string + const EvalStageCompiling + const EvalStageFinished + const EvalStageTesting + const EvalStageWaiting + type MaxScore struct + FirstTime time.Time + Possible int + Received int + SubmUuid uuid.UUID + type ScoreBarInfo struct + Gray int + Green int + Purple int + Red int + Yellow int + type ScoreInfo struct + ExceededCpu bool + ExceededMem bool + MaxCpuMs int + MaxMemKiB int + PossibleScore int + ReceivedScore int + ScoreBar ScoreBarInfo + type ScoreUnit string + const ScoreUnitSubtask + const ScoreUnitTest + const ScoreUnitTestGroup + type Subm struct + AuthorUUID uuid.UUID + Content string + CreatedAt time.Time + CurrEvalUUID uuid.UUID + LangShortID string + TaskShortID string + UUID uuid.UUID + type SubmJoinEvalOld struct + Eval Eval + Subm Subm + type SubmJoinScoreInfo struct + CreatedAt time.Time + ScoreInfo ScoreInfo + SubmUuid uuid.UUID + TaskShortID string + type Subtask struct + Description string + Points int + StTests []int + type Test struct + Ac bool + AnsSha256 string + CpuMs *int + Finished bool + Ig bool + InpSha256 string + MemKiB *int + Mle bool + Re bool + Reached bool + Tle bool + Wa bool + type TestGroup struct + Points int + Subtasks []int + TgTests []int