Documentation ¶
Index ¶
- Variables
- type CheckPuzzleIsCreatedParams
- type CheckPuzzleIsDiscoveredParams
- type CompleteDiscoveredRoundParams
- type CreateDiscoveredPuzzleParams
- type CreateDiscoveredRoundParams
- type CreatePuzzleParams
- type CreateRoundParams
- type DBTX
- type DiscoveredPuzzle
- type DiscoveredRound
- type GetPuzzleByChannelRow
- type GetPuzzleRow
- type GetPuzzlesByVoiceRoomRow
- type ListCreatablePuzzlesRow
- type ListPuzzlesByRoundRow
- type ListPuzzlesByVoiceRoomRow
- type ListPuzzlesRow
- type Puzzle
- type Queries
- func (q *Queries) CheckPuzzleIsCreated(ctx context.Context, arg CheckPuzzleIsCreatedParams) (int64, error)
- func (q *Queries) CheckPuzzleIsDiscovered(ctx context.Context, arg CheckPuzzleIsDiscoveredParams) (int64, error)
- func (q *Queries) ClearPuzzleVoiceRoom(ctx context.Context, voiceRoom string) error
- func (q *Queries) CompleteDiscoveredPuzzle(ctx context.Context, id int64) error
- func (q *Queries) CompleteDiscoveredRound(ctx context.Context, arg CompleteDiscoveredRoundParams) error
- func (q *Queries) CreateDiscoveredPuzzle(ctx context.Context, arg CreateDiscoveredPuzzleParams) error
- func (q *Queries) CreateDiscoveredRound(ctx context.Context, arg CreateDiscoveredRoundParams) (int64, error)
- func (q *Queries) CreatePuzzle(ctx context.Context, arg CreatePuzzleParams) (int64, error)
- func (q *Queries) CreateRound(ctx context.Context, arg CreateRoundParams) (Round, error)
- func (q *Queries) DeletePuzzle(ctx context.Context, id int64) error
- func (q *Queries) DeleteRound(ctx context.Context, id int64) error
- func (q *Queries) GetCreatedRound(ctx context.Context, name string) (Round, error)
- func (q *Queries) GetDiscoveredRound(ctx context.Context, name string) (DiscoveredRound, error)
- func (q *Queries) GetPuzzle(ctx context.Context, id int64) (GetPuzzleRow, error)
- func (q *Queries) GetPuzzleByChannel(ctx context.Context, discordChannel string) (GetPuzzleByChannelRow, error)
- func (q *Queries) GetPuzzlesByVoiceRoom(ctx context.Context, voiceRoom string) ([]GetPuzzlesByVoiceRoomRow, error)
- func (q *Queries) GetRound(ctx context.Context, id int64) (Round, error)
- func (q *Queries) GetSetting(ctx context.Context, key string) ([]byte, error)
- func (q *Queries) ListCreatablePuzzles(ctx context.Context) ([]ListCreatablePuzzlesRow, error)
- func (q *Queries) ListDiscoveredPuzzlesForRound(ctx context.Context, discoveredRound sql.NullInt64) ([]DiscoveredPuzzle, error)
- func (q *Queries) ListPendingDiscoveredRounds(ctx context.Context) ([]DiscoveredRound, error)
- func (q *Queries) ListPuzzles(ctx context.Context) ([]ListPuzzlesRow, error)
- func (q *Queries) ListPuzzlesByRound(ctx context.Context, round int64) ([]ListPuzzlesByRoundRow, error)
- func (q *Queries) ListPuzzlesByVoiceRoom(ctx context.Context) ([]ListPuzzlesByVoiceRoomRow, error)
- func (q *Queries) ListRounds(ctx context.Context) ([]Round, error)
- func (q *Queries) UpdateDiscoveredRound(ctx context.Context, arg UpdateDiscoveredRoundParams) error
- func (q *Queries) UpdatePuzzle(ctx context.Context, arg UpdatePuzzleParams) error
- func (q *Queries) UpdateRound(ctx context.Context, arg UpdateRoundParams) error
- func (q *Queries) UpdateSetting(ctx context.Context, arg UpdateSettingParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Round
- type Setting
- type UpdateDiscoveredRoundParams
- type UpdatePuzzleParams
- type UpdateRoundParams
- type UpdateSettingParams
Constants ¶
This section is empty.
Variables ¶
View Source
var DDL string
Functions ¶
This section is empty.
Types ¶
type CreatePuzzleParams ¶
type CreatePuzzleParams struct { Name string `json:"name"` Answer string `json:"answer"` Round int64 `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type CreateRoundParams ¶
type DiscoveredPuzzle ¶
type DiscoveredRound ¶
type GetPuzzleByChannelRow ¶
type GetPuzzleByChannelRow struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round Round `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type GetPuzzleRow ¶
type GetPuzzleRow struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round Round `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type GetPuzzlesByVoiceRoomRow ¶
type GetPuzzlesByVoiceRoomRow struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round Round `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type ListCreatablePuzzlesRow ¶
type ListCreatablePuzzlesRow struct { ID int64 `json:"id"` PuzzleURL string `json:"puzzle_url"` Name string `json:"name"` DiscoveredRound sql.NullInt64 `json:"discovered_round"` ID_2 int64 `json:"id_2"` Name_2 string `json:"name_2"` MessageID string `json:"message_id"` NotifiedAt time.Time `json:"notified_at"` CreatedAs int64 `json:"created_as"` }
type ListPuzzlesByRoundRow ¶
type ListPuzzlesByRoundRow struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round Round `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type ListPuzzlesRow ¶
type ListPuzzlesRow struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round Round `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type Puzzle ¶
type Puzzle struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round int64 `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CheckPuzzleIsCreated ¶
func (*Queries) CheckPuzzleIsDiscovered ¶
func (*Queries) ClearPuzzleVoiceRoom ¶
func (*Queries) CompleteDiscoveredPuzzle ¶
func (*Queries) CompleteDiscoveredRound ¶
func (q *Queries) CompleteDiscoveredRound(ctx context.Context, arg CompleteDiscoveredRoundParams) error
func (*Queries) CreateDiscoveredPuzzle ¶
func (q *Queries) CreateDiscoveredPuzzle(ctx context.Context, arg CreateDiscoveredPuzzleParams) error
func (*Queries) CreateDiscoveredRound ¶
func (*Queries) CreatePuzzle ¶
func (*Queries) CreateRound ¶
func (*Queries) GetCreatedRound ¶
func (*Queries) GetDiscoveredRound ¶
func (*Queries) GetPuzzleByChannel ¶
func (*Queries) GetPuzzlesByVoiceRoom ¶
func (*Queries) GetSetting ¶
func (*Queries) ListCreatablePuzzles ¶
func (q *Queries) ListCreatablePuzzles(ctx context.Context) ([]ListCreatablePuzzlesRow, error)
func (*Queries) ListDiscoveredPuzzlesForRound ¶
func (*Queries) ListPendingDiscoveredRounds ¶
func (q *Queries) ListPendingDiscoveredRounds(ctx context.Context) ([]DiscoveredRound, error)
func (*Queries) ListPuzzles ¶
func (q *Queries) ListPuzzles(ctx context.Context) ([]ListPuzzlesRow, error)
func (*Queries) ListPuzzlesByRound ¶
func (*Queries) ListPuzzlesByVoiceRoom ¶
func (q *Queries) ListPuzzlesByVoiceRoom(ctx context.Context) ([]ListPuzzlesByVoiceRoomRow, error)
func (*Queries) UpdateDiscoveredRound ¶
func (q *Queries) UpdateDiscoveredRound(ctx context.Context, arg UpdateDiscoveredRoundParams) error
func (*Queries) UpdatePuzzle ¶
func (q *Queries) UpdatePuzzle(ctx context.Context, arg UpdatePuzzleParams) error
func (*Queries) UpdateRound ¶
func (q *Queries) UpdateRound(ctx context.Context, arg UpdateRoundParams) error
func (*Queries) UpdateSetting ¶
func (q *Queries) UpdateSetting(ctx context.Context, arg UpdateSettingParams) error
type UpdatePuzzleParams ¶
type UpdatePuzzleParams struct { ID int64 `json:"id"` Name string `json:"name"` Answer string `json:"answer"` Round int64 `json:"round"` Status status.Status `json:"status"` Note string `json:"note"` Location string `json:"location"` PuzzleURL string `json:"puzzle_url"` SpreadsheetID string `json:"spreadsheet_id"` DiscordChannel string `json:"discord_channel"` Meta bool `json:"meta"` VoiceRoom string `json:"voice_room"` Reminder time.Time `json:"reminder"` }
type UpdateRoundParams ¶
type UpdateSettingParams ¶
Click to show internal directories.
Click to hide internal directories.