Documentation ¶
Index ¶
- type CreateSubmissionParams
- type CreateSubmissionResultParams
- type CreateTestcaseResultParams
- type CreateUserAuthParams
- type DBTX
- type Game
- type GamePlayer
- type GetGameByIDRow
- type GetUserAuthByUsernameRow
- type ListGamePlayersRow
- type ListGamesForPlayerRow
- type ListGamesRow
- type Problem
- type Queries
- func (q *Queries) AggregateTestcaseResults(ctx context.Context, submissionID int32) (string, error)
- func (q *Queries) CreateSubmission(ctx context.Context, arg CreateSubmissionParams) (int32, error)
- func (q *Queries) CreateSubmissionResult(ctx context.Context, arg CreateSubmissionResultParams) error
- func (q *Queries) CreateTestcaseResult(ctx context.Context, arg CreateTestcaseResultParams) error
- func (q *Queries) CreateUser(ctx context.Context, username string) (int32, error)
- func (q *Queries) CreateUserAuth(ctx context.Context, arg CreateUserAuthParams) error
- func (q *Queries) GetGameByID(ctx context.Context, gameID int32) (GetGameByIDRow, error)
- func (q *Queries) GetSubmissionCodeSizeByID(ctx context.Context, submissionID int32) (int32, error)
- func (q *Queries) GetUserAuthByUsername(ctx context.Context, username string) (GetUserAuthByUsernameRow, error)
- func (q *Queries) GetUserByID(ctx context.Context, userID int32) (User, error)
- func (q *Queries) GetUserIDByUsername(ctx context.Context, username string) (int32, error)
- func (q *Queries) IsRegistrationTokenValid(ctx context.Context, token string) (bool, error)
- func (q *Queries) ListGamePlayers(ctx context.Context, gameID int32) ([]ListGamePlayersRow, error)
- func (q *Queries) ListGames(ctx context.Context) ([]ListGamesRow, error)
- func (q *Queries) ListGamesForPlayer(ctx context.Context, userID int32) ([]ListGamesForPlayerRow, error)
- func (q *Queries) ListTestcaseIDsByGameID(ctx context.Context, gameID int32) ([]int32, error)
- func (q *Queries) ListTestcasesByGameID(ctx context.Context, gameID int32) ([]Testcase, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) UpdateGame(ctx context.Context, arg UpdateGameParams) error
- func (q *Queries) UpdateGameStartedAt(ctx context.Context, arg UpdateGameStartedAtParams) error
- func (q *Queries) UpdateGameState(ctx context.Context, arg UpdateGameStateParams) error
- func (q *Queries) UpdateUserIconPath(ctx context.Context, arg UpdateUserIconPathParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RegistrationToken
- type Submission
- type SubmissionResult
- type Testcase
- type TestcaseResult
- type UpdateGameParams
- type UpdateGameStartedAtParams
- type UpdateGameStateParams
- type UpdateUserIconPathParams
- type User
- type UserAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSubmissionParams ¶
type CreateUserAuthParams ¶
type GamePlayer ¶
type GetGameByIDRow ¶
type ListGamePlayersRow ¶
type ListGamesForPlayerRow ¶
type ListGamesRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AggregateTestcaseResults ¶
func (*Queries) CreateSubmission ¶
func (*Queries) CreateSubmissionResult ¶
func (q *Queries) CreateSubmissionResult(ctx context.Context, arg CreateSubmissionResultParams) error
func (*Queries) CreateTestcaseResult ¶
func (q *Queries) CreateTestcaseResult(ctx context.Context, arg CreateTestcaseResultParams) error
func (*Queries) CreateUser ¶
func (*Queries) CreateUserAuth ¶
func (q *Queries) CreateUserAuth(ctx context.Context, arg CreateUserAuthParams) error
func (*Queries) GetGameByID ¶
func (*Queries) GetSubmissionCodeSizeByID ¶
func (*Queries) GetUserAuthByUsername ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserIDByUsername ¶
func (*Queries) IsRegistrationTokenValid ¶
func (*Queries) ListGamePlayers ¶
func (*Queries) ListGames ¶
func (q *Queries) ListGames(ctx context.Context) ([]ListGamesRow, error)
func (*Queries) ListGamesForPlayer ¶
func (*Queries) ListTestcaseIDsByGameID ¶
func (*Queries) ListTestcasesByGameID ¶
func (*Queries) UpdateGame ¶
func (q *Queries) UpdateGame(ctx context.Context, arg UpdateGameParams) error
func (*Queries) UpdateGameStartedAt ¶
func (q *Queries) UpdateGameStartedAt(ctx context.Context, arg UpdateGameStartedAtParams) error
func (*Queries) UpdateGameState ¶
func (q *Queries) UpdateGameState(ctx context.Context, arg UpdateGameStateParams) error
func (*Queries) UpdateUserIconPath ¶
func (q *Queries) UpdateUserIconPath(ctx context.Context, arg UpdateUserIconPathParams) error
type RegistrationToken ¶
type Submission ¶
type SubmissionResult ¶
type TestcaseResult ¶
type UpdateGameParams ¶
type UpdateGameStateParams ¶
Click to show internal directories.
Click to hide internal directories.