Documentation
¶
Index ¶
- type AddCommentParams
- type AnnotatedGameMetadatum
- type Blocking
- type DBTX
- type DbSession
- type DeleteCommentParams
- type Following
- type Game
- type GameComment
- type GameDocument
- type GetCommentsForAllGamesParams
- type GetCommentsForAllGamesRow
- type GetCommentsForGameRow
- type GetPotentialPuzzleGamesAvoidBotsParams
- type GetPotentialPuzzleGamesParams
- type Liststat
- type Notoriousgame
- type Profile
- type Puzzle
- type PuzzleAttempt
- type PuzzleGenerationLog
- type PuzzleTag
- type PuzzleTagTitle
- type PuzzleVote
- type Queries
- func (q *Queries) AddComment(ctx context.Context, arg AddCommentParams) (uuid.UUID, error)
- func (q *Queries) DeleteComment(ctx context.Context, arg DeleteCommentParams) error
- func (q *Queries) DeleteCommentNoAuthorSpecified(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetCommentsForAllGames(ctx context.Context, arg GetCommentsForAllGamesParams) ([]GetCommentsForAllGamesRow, error)
- func (q *Queries) GetCommentsForGame(ctx context.Context, argUuid pgtype.Text) ([]GetCommentsForGameRow, error)
- func (q *Queries) GetPotentialPuzzleGames(ctx context.Context, arg GetPotentialPuzzleGamesParams) ([]pgtype.Text, error)
- func (q *Queries) GetPotentialPuzzleGamesAvoidBots(ctx context.Context, arg GetPotentialPuzzleGamesAvoidBotsParams) ([]pgtype.Text, error)
- func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Registrant
- type Soughtgame
- type Tournament
- type UpdateCommentParams
- type User
- type UserAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCommentParams ¶
type AnnotatedGameMetadatum ¶
type DeleteCommentParams ¶
type Game ¶
type Game struct {
ID int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Uuid pgtype.Text
Player0ID pgtype.Int4
Player1ID pgtype.Int4
Timers []byte
Started pgtype.Bool
GameEndReason pgtype.Int4
WinnerIdx pgtype.Int4
LoserIdx pgtype.Int4
Request []byte
History []byte
Stats []byte
Quickdata []byte
TournamentData []byte
TournamentID pgtype.Text
ReadyFlag pgtype.Int8
MetaEvents []byte
Type pgtype.Int4
}
type GameComment ¶
type GameComment struct {
ID uuid.UUID
GameID int64
AuthorID int32
EventNumber int32
CreatedAt pgtype.Timestamptz
EditedAt pgtype.Timestamptz
Comment string
}
type GameDocument ¶
type GetCommentsForGameRow ¶
type GetPotentialPuzzleGamesAvoidBotsParams ¶
type GetPotentialPuzzleGamesAvoidBotsParams struct {
CreatedAt pgtype.Timestamptz
CreatedAt_2 pgtype.Timestamptz
Request []byte
Limit int32
Offset int32
}
type GetPotentialPuzzleGamesParams ¶
type GetPotentialPuzzleGamesParams struct {
CreatedAt pgtype.Timestamptz
CreatedAt_2 pgtype.Timestamptz
Request []byte
Limit int32
Offset int32
}
type Notoriousgame ¶
type Profile ¶
type Profile struct {
ID int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
UserID pgtype.Int4
FirstName pgtype.Text
LastName pgtype.Text
CountryCode pgtype.Text
Title pgtype.Text
About pgtype.Text
Ratings []byte
Stats []byte
AvatarUrl pgtype.Text
BirthDate pgtype.Text
}
type PuzzleAttempt ¶
type PuzzleGenerationLog ¶
type PuzzleGenerationLog struct {
ID int64
Request []byte
Fulfilled pgtype.Bool
ErrorStatus pgtype.Text
CreatedAt pgtype.Timestamptz
CompletedAt pgtype.Timestamptz
}
type PuzzleTagTitle ¶
type PuzzleVote ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddComment ¶
func (*Queries) DeleteComment ¶
func (q *Queries) DeleteComment(ctx context.Context, arg DeleteCommentParams) error
func (*Queries) DeleteCommentNoAuthorSpecified ¶
func (*Queries) GetCommentsForAllGames ¶
func (q *Queries) GetCommentsForAllGames(ctx context.Context, arg GetCommentsForAllGamesParams) ([]GetCommentsForAllGamesRow, error)
func (*Queries) GetCommentsForGame ¶
func (*Queries) GetPotentialPuzzleGames ¶
func (*Queries) GetPotentialPuzzleGamesAvoidBots ¶
func (q *Queries) GetPotentialPuzzleGamesAvoidBots(ctx context.Context, arg GetPotentialPuzzleGamesAvoidBotsParams) ([]pgtype.Text, error)
puzzle generation
func (*Queries) UpdateComment ¶
func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) error
type Registrant ¶
type Soughtgame ¶
type Tournament ¶
type Tournament struct {
ID int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Uuid pgtype.Text
Name pgtype.Text
Description pgtype.Text
Directors []byte
ExecutiveDirector pgtype.Text
IsStarted pgtype.Bool
Divisions []byte
Type pgtype.Text
Parent pgtype.Text
Slug pgtype.Text
DefaultSettings []byte
AliasOf pgtype.Text
IsFinished pgtype.Bool
ExtraMeta []byte
}
type UpdateCommentParams ¶
type User ¶
type User struct {
ID int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Uuid pgtype.Text
Username pgtype.Text
Email pgtype.Text
Password pgtype.Text
InternalBot pgtype.Bool
IsAdmin pgtype.Bool
ApiKey pgtype.Text
IsDirector pgtype.Bool
IsMod pgtype.Bool
Actions []byte
Notoriety pgtype.Int4
}
type UserAction ¶
Click to show internal directories.
Click to hide internal directories.