Documentation
¶
Index ¶
- Variables
- type Bingo
- type BingosLogin
- type CreateBingoParams
- type CreateBingoParticipantParams
- type CreateLoginParams
- type CreateSubmissionCommentParams
- type CreateSubmissionImageParams
- type CreateSubmissionParams
- type CreateTemplateTileParams
- type CreateTileParams
- type CreateTilesParams
- type DBTX
- type DeleteBingoParticipantParams
- type GetBingoLeaderboardRow
- type GetBingoParticipantsRow
- type GetCommentsForSubmissionRow
- type GetPossibleBingoParticipantsRow
- type GetStatsByLoginAndBingoParams
- type GetStatsByLoginAndBingoRow
- type GetSubmissionIdForTileAndLoginParams
- type GetSubmissionsByBingoAndLoginParams
- type GetSubmissionsByBingoAndLoginRow
- type GetSubmissionsForTileAndLoginParams
- type GetSubmissionsForTileAndLoginRow
- type GetSubmissionsForTileRow
- type Login
- type NullSubmissionstate
- type Queries
- func (q *Queries) CreateBingo(ctx context.Context, arg CreateBingoParams) (Bingo, error)
- func (q *Queries) CreateBingoParticipant(ctx context.Context, arg CreateBingoParticipantParams) error
- func (q *Queries) CreateLogin(ctx context.Context, arg CreateLoginParams) error
- func (q *Queries) CreateSubmission(ctx context.Context, arg CreateSubmissionParams) (Submission, error)
- func (q *Queries) CreateSubmissionComment(ctx context.Context, arg CreateSubmissionCommentParams) error
- func (q *Queries) CreateSubmissionImage(ctx context.Context, arg CreateSubmissionImageParams) error
- func (q *Queries) CreateTemplateTile(ctx context.Context, arg CreateTemplateTileParams) (TemplateTile, error)
- func (q *Queries) CreateTile(ctx context.Context, arg CreateTileParams) (Tile, error)
- func (q *Queries) CreateTiles(ctx context.Context, arg []CreateTilesParams) (int64, error)
- func (q *Queries) DeleteBingoById(ctx context.Context, id int32) error
- func (q *Queries) DeleteBingoParticipant(ctx context.Context, arg DeleteBingoParticipantParams) error
- func (q *Queries) DeleteLogin(ctx context.Context, id int32) error
- func (q *Queries) DeleteSubmissionById(ctx context.Context, id int32) error
- func (q *Queries) DeleteTemplateById(ctx context.Context, id int32) error
- func (q *Queries) GetAllLogins(ctx context.Context) ([]Login, error)
- func (q *Queries) GetBingoById(ctx context.Context, id int32) (Bingo, error)
- func (q *Queries) GetBingoLeaderboard(ctx context.Context, bingoID int32) ([]GetBingoLeaderboardRow, error)
- func (q *Queries) GetBingoParticipants(ctx context.Context, bingoID int32) ([]GetBingoParticipantsRow, error)
- func (q *Queries) GetBingos(ctx context.Context) ([]Bingo, error)
- func (q *Queries) GetBingosForLogin(ctx context.Context, id int32) ([]Bingo, error)
- func (q *Queries) GetCommentsForSubmission(ctx context.Context, submissionID int32) ([]GetCommentsForSubmissionRow, error)
- func (q *Queries) GetImagesForSubmission(ctx context.Context, submissionID int32) ([]string, error)
- func (q *Queries) GetLoginById(ctx context.Context, id int32) (Login, error)
- func (q *Queries) GetLoginByName(ctx context.Context, name string) (Login, error)
- func (q *Queries) GetPossibleBingoParticipants(ctx context.Context, bingoID int32) ([]GetPossibleBingoParticipantsRow, error)
- func (q *Queries) GetRandomTemplates(ctx context.Context, dollar_1 int32) ([]TemplateTile, error)
- func (q *Queries) GetStatsByLoginAndBingo(ctx context.Context, arg GetStatsByLoginAndBingoParams) (GetStatsByLoginAndBingoRow, error)
- func (q *Queries) GetSubmissionById(ctx context.Context, id int32) (Submission, error)
- func (q *Queries) GetSubmissionClosedStatusForBingo(ctx context.Context, id int32) (bool, error)
- func (q *Queries) GetSubmissionIdForTileAndLogin(ctx context.Context, arg GetSubmissionIdForTileAndLoginParams) (int32, error)
- func (q *Queries) GetSubmissionsByBingoAndLogin(ctx context.Context, arg GetSubmissionsByBingoAndLoginParams) ([]GetSubmissionsByBingoAndLoginRow, error)
- func (q *Queries) GetSubmissionsForTile(ctx context.Context, tileID int32) ([]GetSubmissionsForTileRow, error)
- func (q *Queries) GetSubmissionsForTileAndLogin(ctx context.Context, arg GetSubmissionsForTileAndLoginParams) ([]GetSubmissionsForTileAndLoginRow, error)
- func (q *Queries) GetTemplateImagePath(ctx context.Context, id int32) (string, error)
- func (q *Queries) GetTemplateTiles(ctx context.Context) ([]TemplateTile, error)
- func (q *Queries) GetTileById(ctx context.Context, id int32) (Tile, error)
- func (q *Queries) GetTilesForBingo(ctx context.Context, bingoID int32) ([]Tile, error)
- func (q *Queries) MakeUserManagement(ctx context.Context, id int32) error
- func (q *Queries) ToggleBingoState(ctx context.Context, id int32) (bool, error)
- func (q *Queries) ToggleLeaderboardPublic(ctx context.Context, id int32) (bool, error)
- func (q *Queries) ToggleSubmissionsClosed(ctx context.Context, id int32) (bool, error)
- func (q *Queries) UpdateLoginPassword(ctx context.Context, arg UpdateLoginPasswordParams) (Login, error)
- func (q *Queries) UpdateSubmissionState(ctx context.Context, arg UpdateSubmissionStateParams) (Submission, error)
- func (q *Queries) UpdateTile(ctx context.Context, arg UpdateTileParams) (Tile, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Submission
- type SubmissionComment
- type SubmissionImage
- type Submissionstate
- type TemplateTile
- type Tile
- type UpdateLoginPasswordParams
- type UpdateSubmissionStateParams
- type UpdateTileParams
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbedMigrations embed.FS
Functions ¶
This section is empty.
Types ¶
type BingosLogin ¶
type CreateBingoParams ¶
type CreateLoginParams ¶
type CreateSubmissionParams ¶
type CreateSubmissionParams struct { LoginID int32 TileID int32 State Submissionstate }
type CreateTileParams ¶
type CreateTilesParams ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type GetBingoLeaderboardRow ¶
type GetBingoParticipantsRow ¶
type GetCommentsForSubmissionRow ¶
type GetCommentsForSubmissionRow struct { SubmissionID int32 Managementuser string Comment string CreatedAt pgtype.Timestamptz }
type GetSubmissionsByBingoAndLoginRow ¶
type GetSubmissionsByBingoAndLoginRow struct { BingoID int32 Submission Submission Tile Tile }
type GetSubmissionsForTileAndLoginRow ¶
type GetSubmissionsForTileAndLoginRow struct { Submission Submission Login Login }
type GetSubmissionsForTileRow ¶
type GetSubmissionsForTileRow struct { Submission Submission Login Login }
type NullSubmissionstate ¶
type NullSubmissionstate struct { Submissionstate Submissionstate Valid bool // Valid is true if Submissionstate is not NULL }
func (*NullSubmissionstate) Scan ¶
func (ns *NullSubmissionstate) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateBingo ¶
func (*Queries) CreateBingoParticipant ¶
func (q *Queries) CreateBingoParticipant(ctx context.Context, arg CreateBingoParticipantParams) error
func (*Queries) CreateLogin ¶
func (q *Queries) CreateLogin(ctx context.Context, arg CreateLoginParams) error
func (*Queries) CreateSubmission ¶
func (q *Queries) CreateSubmission(ctx context.Context, arg CreateSubmissionParams) (Submission, error)
func (*Queries) CreateSubmissionComment ¶
func (q *Queries) CreateSubmissionComment(ctx context.Context, arg CreateSubmissionCommentParams) error
func (*Queries) CreateSubmissionImage ¶
func (q *Queries) CreateSubmissionImage(ctx context.Context, arg CreateSubmissionImageParams) error
func (*Queries) CreateTemplateTile ¶
func (q *Queries) CreateTemplateTile(ctx context.Context, arg CreateTemplateTileParams) (TemplateTile, error)
func (*Queries) CreateTile ¶
func (*Queries) CreateTiles ¶
func (*Queries) DeleteBingoById ¶
func (*Queries) DeleteBingoParticipant ¶
func (q *Queries) DeleteBingoParticipant(ctx context.Context, arg DeleteBingoParticipantParams) error
func (*Queries) DeleteSubmissionById ¶
func (*Queries) DeleteTemplateById ¶
func (*Queries) GetBingoById ¶
func (*Queries) GetBingoLeaderboard ¶
func (*Queries) GetBingoParticipants ¶
func (*Queries) GetBingosForLogin ¶
func (*Queries) GetCommentsForSubmission ¶
func (*Queries) GetImagesForSubmission ¶
func (*Queries) GetLoginById ¶
func (*Queries) GetLoginByName ¶
func (*Queries) GetPossibleBingoParticipants ¶
func (*Queries) GetRandomTemplates ¶
func (*Queries) GetStatsByLoginAndBingo ¶
func (q *Queries) GetStatsByLoginAndBingo(ctx context.Context, arg GetStatsByLoginAndBingoParams) (GetStatsByLoginAndBingoRow, error)
func (*Queries) GetSubmissionById ¶
func (*Queries) GetSubmissionClosedStatusForBingo ¶
func (*Queries) GetSubmissionIdForTileAndLogin ¶
func (*Queries) GetSubmissionsByBingoAndLogin ¶
func (q *Queries) GetSubmissionsByBingoAndLogin(ctx context.Context, arg GetSubmissionsByBingoAndLoginParams) ([]GetSubmissionsByBingoAndLoginRow, error)
func (*Queries) GetSubmissionsForTile ¶
func (*Queries) GetSubmissionsForTileAndLogin ¶
func (q *Queries) GetSubmissionsForTileAndLogin(ctx context.Context, arg GetSubmissionsForTileAndLoginParams) ([]GetSubmissionsForTileAndLoginRow, error)
func (*Queries) GetTemplateImagePath ¶
func (*Queries) GetTemplateTiles ¶
func (q *Queries) GetTemplateTiles(ctx context.Context) ([]TemplateTile, error)
func (*Queries) GetTileById ¶
func (*Queries) GetTilesForBingo ¶
func (*Queries) MakeUserManagement ¶
func (*Queries) ToggleBingoState ¶
func (*Queries) ToggleLeaderboardPublic ¶
func (*Queries) ToggleSubmissionsClosed ¶
func (*Queries) UpdateLoginPassword ¶
func (*Queries) UpdateSubmissionState ¶
func (q *Queries) UpdateSubmissionState(ctx context.Context, arg UpdateSubmissionStateParams) (Submission, error)
func (*Queries) UpdateTile ¶
type Submission ¶
type SubmissionComment ¶
type SubmissionImage ¶
type Submissionstate ¶
type Submissionstate string
const ( SubmissionstateSubmitted Submissionstate = "Submitted" SubmissionstateActionRequired Submissionstate = "ActionRequired" SubmissionstateAccepted Submissionstate = "Accepted" )
func (*Submissionstate) Scan ¶
func (e *Submissionstate) Scan(src interface{}) error
type TemplateTile ¶
type UpdateSubmissionStateParams ¶
type UpdateSubmissionStateParams struct { ID int32 State Submissionstate }
Click to show internal directories.
Click to hide internal directories.