Documentation ¶
Index ¶
- type DBTX
- type Game
- type History
- type LookupGameDetailRow
- type Move
- type PileCard
- type Queries
- func (q *Queries) LookupGameDetail(ctx context.Context, gameID int64) (LookupGameDetailRow, error)
- func (q *Queries) SavePerformMove(ctx context.Context, arg SavePerformMoveParams) ([]SavePerformMoveRow, error)
- func (q *Queries) SaveStartGame(ctx context.Context, arg SaveStartGameParams) (int64, error)
- func (q *Queries) SearchGame(ctx context.Context, arg SearchGameParams) ([]SearchGameRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SavePerformMoveParams
- type SavePerformMoveRow
- type SaveStartGameParams
- type SearchGameParams
- type SearchGameRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupGameDetailRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) LookupGameDetail ¶
Lookup a game.
func (*Queries) SavePerformMove ¶
func (q *Queries) SavePerformMove(ctx context.Context, arg SavePerformMoveParams) ([]SavePerformMoveRow, error)
Make a move.
func (*Queries) SaveStartGame ¶
Start a game.
func (*Queries) SearchGame ¶
func (q *Queries) SearchGame(ctx context.Context, arg SearchGameParams) ([]SearchGameRow, error)
Search returns a list of games.
type SavePerformMoveParams ¶
type SavePerformMoveParams struct { GameID int64 OldPileNums interface{} OldPileIndexes interface{} OldPilePositions interface{} NewPileNums interface{} NewPileIndexes interface{} NewPilePositions interface{} }
type SavePerformMoveRow ¶
type SaveStartGameParams ¶
type SearchGameParams ¶
type SearchGameRow ¶
Click to show internal directories.
Click to hide internal directories.