Versions in this module Expand all Collapse all v0 v0.2.9 Jan 3, 2024 v0.2.7 Jan 3, 2024 v0.2.6 Jan 3, 2024 v0.2.2 Nov 30, 2023 v0.2.1 Nov 22, 2023 v0.2.0 Nov 22, 2023 v0.1.3 Sep 11, 2023 v0.1.2 Sep 11, 2023 v0.1.1 Sep 11, 2023 v0.1.0 Sep 11, 2023 Changes in this version + func CreateSubmissionEvaluation(db sqlx.Queryer, taskSubmissionId int64, evalTaskVersionId int64, ...) (int64, error) + func CreateTaskSubmission(db sqlx.Queryer, userId int64, taskId int64, programmingLangId string, ...) (int64, error) + func CreateUser(db *sqlx.DB, username string, hashed_password string, email string, ...) error + func DeleteUserById(db *sqlx.DB, id int64) error + func DoesUserExistByEmail(db *sqlx.DB, email string) (bool, error) + func DoesUserExistByUsername(db *sqlx.DB, username string) (bool, error) + type EvalType struct + DescriptionEn string + ID string + type MarkdownStatement struct + ID int64 + Input string + Notes *string + Output string + Scoring *string + Story string + TaskVersionID int64 + type ProgrammingLanguage struct + CodeFilename string + CompileCmd *string + EnvVersionCmd string + ExecuteCmd string + FullName string + HelloWorldCode string + ID string + MonacoId string + type SubmissionEvaluation struct + CompilationMemoryKb *int64 + CompilationStderr *string + CompilationStdout *string + CompilationTimeMs *int64 + CreatedAt time.Time + EvalPossibleScore *int64 + EvalStatusId string + EvalTaskVersionID int64 + EvalTotalScore int64 + ID int64 + TaskSubmissionID int64 + TestMaximumMemoryKb *int64 + TestMaximumTimeMs *int64 + TestTotalMemoryKb int64 + TestTotalTimeMs int64 + UpdateAt time.Time + type Task struct + CreatedAt time.Time + CreatedByID int64 + ID int64 + PublishedVersionID *int64 + RelevantVersionID *int64 + func SelectTaskById(db *sqlx.DB, id int64) (*Task, error) + type TaskAuthor struct + Author string + TaskID string + type TaskSource struct + Abbreviation string + FullName string + type TaskVersion struct + CheckerID *int64 + CreatedAt time.Time + FullName string + ID int64 + InteractorID *int64 + MemLimKb int + Origin *string + ShortCode string + TaskID int64 + TestingTypeID string + TimeLimMs int + UpdatedAt *time.Time + func SelectTaskVersionById(db *sqlx.DB, id int64) (*TaskVersion, error) + type User struct + CreatedAt time.Time + Email string + FirstName string + HashedPassword string + ID int64 + IsAdmin bool + LastName string + UpdatedAt *time.Time + Username string + func SelectUserByUsername(db *sqlx.DB, username string) (*User, error)