Documentation ¶
Index ¶
- type ApiToken
- type AreFriendsParams
- type CreateFriendParams
- type CreateGroupedEncounterParams
- type DBTX
- type DeleteFriendParams
- type DeleteFriendRequestParams
- type Encounter
- type Friend
- type FriendRequest
- type GetEncounterRow
- type GetEncounterShortRow
- type GetEncounterVisibilityRow
- type GetHeaderRow
- type GetRolesByDiscordIDRow
- type GetRosterByUsernameRow
- type GetRosterRow
- type GetRosterStatsByIDRow
- type GetRosterStatsRow
- type GetUniqueGroupParams
- type GroupedEncounter
- type HasFriendRequestParams
- type InsertCharacterParams
- type InsertEncounterParams
- type InsertPlayerInternalParams
- type InsertPlayerParams
- type ListFriendsRow
- type ListReceivedFriendRequestsRow
- type ListSentFriendRequestsRow
- type Player
- type ProcessEncounterParams
- type Queries
- func (q *Queries) AreFriends(ctx context.Context, arg AreFriendsParams) (bool, error)
- func (q *Queries) CreateFriend(ctx context.Context, arg CreateFriendParams) error
- func (q *Queries) CreateGroupedEncounter(ctx context.Context, arg CreateGroupedEncounterParams) error
- func (q *Queries) DeleteEncounter(ctx context.Context, id int32) error
- func (q *Queries) DeleteFriend(ctx context.Context, arg DeleteFriendParams) error
- func (q *Queries) DeleteFriendRequest(ctx context.Context, arg DeleteFriendRequestParams) error
- func (q *Queries) DeleteUser(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteUserLogs1(ctx context.Context, uploadedBy pgtype.UUID) ([]int32, error)
- func (q *Queries) DeleteUserLogs2SelectGroups(ctx context.Context, uploadedBy pgtype.UUID) ([]int32, error)
- func (q *Queries) DeleteUserLogs3PruneGroupedEncounters(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) DeleteUserLogs3UpdateGroupedEncounters(ctx context.Context, dollar_1 pgtype.UUID) ([]int32, error)
- func (q *Queries) FetchWhitelist(ctx context.Context, discord string) (string, error)
- func (q *Queries) GetAPIToken(ctx context.Context, token string) (ApiToken, error)
- func (q *Queries) GetEncounter(ctx context.Context, id int32) (GetEncounterRow, error)
- func (q *Queries) GetEncounterShort(ctx context.Context, id int32) (GetEncounterShortRow, error)
- func (q *Queries) GetEncounterVisibility(ctx context.Context, id int32) (GetEncounterVisibilityRow, error)
- func (q *Queries) GetHeader(ctx context.Context, id int32) (GetHeaderRow, error)
- func (q *Queries) GetNoThumbnailLogs(ctx context.Context) ([]int32, error)
- func (q *Queries) GetRoles(ctx context.Context, id pgtype.UUID) ([]string, error)
- func (q *Queries) GetRolesByDiscordID(ctx context.Context, discordID string) (GetRolesByDiscordIDRow, error)
- func (q *Queries) GetRoster(ctx context.Context, userID pgtype.UUID) ([]GetRosterRow, error)
- func (q *Queries) GetRosterByUsername(ctx context.Context, lower string) ([]GetRosterByUsernameRow, error)
- func (q *Queries) GetRosterStats(ctx context.Context, lower string) ([]GetRosterStatsRow, error)
- func (q *Queries) GetRosterStatsByID(ctx context.Context, uploadedBy pgtype.UUID) ([]GetRosterStatsByIDRow, error)
- func (q *Queries) GetUniqueGroup(ctx context.Context, arg GetUniqueGroupParams) (int32, error)
- func (q *Queries) GetUser(ctx context.Context, discordTag string) (User, error)
- func (q *Queries) GetUserByDiscordID(ctx context.Context, discordID string) (User, error)
- func (q *Queries) GetUserByID(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) GetUserByToken(ctx context.Context, accessToken *string) (User, error)
- func (q *Queries) GetUserEncounterVisibility(ctx context.Context, id pgtype.UUID) (*structs.EncounterVisibility, error)
- func (q *Queries) HasFriendRequest(ctx context.Context, arg HasFriendRequestParams) (bool, error)
- func (q *Queries) InsertCharacter(ctx context.Context, arg InsertCharacterParams) error
- func (q *Queries) InsertEncounter(ctx context.Context, arg InsertEncounterParams) (int32, error)
- func (q *Queries) InsertPlayer(ctx context.Context, arg []InsertPlayerParams) (int64, error)
- func (q *Queries) InsertPlayerInternal(ctx context.Context, arg InsertPlayerInternalParams) error
- func (q *Queries) ListEncounters(ctx context.Context) ([]int32, error)
- func (q *Queries) ListFriends(ctx context.Context, user1 pgtype.UUID) ([]ListFriendsRow, error)
- func (q *Queries) ListReceivedFriendRequests(ctx context.Context, user2 string) ([]ListReceivedFriendRequestsRow, error)
- func (q *Queries) ListSentFriendRequests(ctx context.Context, user1 string) ([]ListSentFriendRequestsRow, error)
- func (q *Queries) ListUserEncounters(ctx context.Context, uploadedBy pgtype.UUID) ([]int32, error)
- func (q *Queries) MarkThumbnail(ctx context.Context, id int32) error
- func (q *Queries) ProcessEncounter(ctx context.Context, arg ProcessEncounterParams) (pgtype.UUID, error)
- func (q *Queries) SendFriendRequest(ctx context.Context, arg SendFriendRequestParams) error
- func (q *Queries) SetAccessToken(ctx context.Context, arg SetAccessTokenParams) error
- func (q *Queries) SetUserRoles(ctx context.Context, arg SetUserRolesParams) error
- func (q *Queries) SetUsername(ctx context.Context, arg SetUsernameParams) error
- func (q *Queries) UpdateAvatar(ctx context.Context, arg UpdateAvatarParams) error
- func (q *Queries) UpdateEncounterVisibility(ctx context.Context, arg UpdateEncounterVisibilityParams) error
- func (q *Queries) UpdateRoles(ctx context.Context, arg UpdateRolesParams) error
- func (q *Queries) UpdateUniqueGroup(ctx context.Context, arg UpdateUniqueGroupParams) error
- func (q *Queries) UpdateUserEncounterVisibility(ctx context.Context, arg UpdateUserEncounterVisibilityParams) error
- func (q *Queries) UpsertEncounterGroup(ctx context.Context, arg UpsertEncounterGroupParams) error
- func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) (User, error)
- func (q *Queries) Whitelist(ctx context.Context, arg WhitelistParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Raid
- type Roster
- type SendFriendRequestParams
- type SetAccessTokenParams
- type SetUserRolesParams
- type SetUsernameParams
- type UpdateAvatarParams
- type UpdateEncounterVisibilityParams
- type UpdateRolesParams
- type UpdateUniqueGroupParams
- type UpdateUserEncounterVisibilityParams
- type UpsertEncounterGroupParams
- type UpsertUserParams
- type User
- type Whitelist
- type WhitelistParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 Encounter ¶
type Encounter struct { ID int32 UploadedBy pgtype.UUID UploadedAt pgtype.Timestamp Settings structs.EncounterSettings Thumbnail bool Tags []string Header structs.EncounterHeader Data *structs.EncounterData Private bool UniqueHash string UniqueGroup int32 Visibility *structs.EncounterVisibility Boss string Difficulty string Date pgtype.Timestamp Duration int32 Version int32 LocalPlayer string }
type GetEncounterRow ¶
type GetEncounterRow struct { ID int32 UploadedBy pgtype.UUID UploadedAt pgtype.Timestamp Settings structs.EncounterSettings Thumbnail bool Tags []string Header structs.EncounterHeader Data *structs.EncounterData Private bool UniqueHash string UniqueGroup int32 Visibility *structs.EncounterVisibility Boss string Difficulty string Date pgtype.Timestamp Duration int32 Version int32 LocalPlayer string DiscordID string DiscordTag string LogVisibility *structs.EncounterVisibility Username *string Avatar string }
type GetEncounterShortRow ¶
type GetEncounterVisibilityRow ¶
type GetEncounterVisibilityRow struct { UploadedBy pgtype.UUID Visibility *structs.EncounterVisibility }
type GetHeaderRow ¶
type GetRolesByDiscordIDRow ¶
type GetRosterByUsernameRow ¶
type GetRosterRow ¶
type GetRosterStatsByIDRow ¶
type GetRosterStatsRow ¶
type GetUniqueGroupParams ¶
type GroupedEncounter ¶
type HasFriendRequestParams ¶
type InsertCharacterParams ¶
type InsertEncounterParams ¶
type InsertEncounterParams struct { UploadedBy pgtype.UUID Settings structs.EncounterSettings Tags []string Header structs.EncounterHeader Data *structs.EncounterData Version int32 Difficulty string Boss string Date pgtype.Timestamp Duration int32 LocalPlayer string UniqueHash string UniqueGroup int32 }
type InsertPlayerParams ¶
type ListFriendsRow ¶
type ProcessEncounterParams ¶
type ProcessEncounterParams struct { ID int32 Header structs.EncounterHeader Data *structs.EncounterData UniqueHash string }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AreFriends ¶
func (*Queries) CreateFriend ¶
func (q *Queries) CreateFriend(ctx context.Context, arg CreateFriendParams) error
func (*Queries) CreateGroupedEncounter ¶
func (q *Queries) CreateGroupedEncounter(ctx context.Context, arg CreateGroupedEncounterParams) error
func (*Queries) DeleteEncounter ¶
func (*Queries) DeleteFriend ¶
func (q *Queries) DeleteFriend(ctx context.Context, arg DeleteFriendParams) error
func (*Queries) DeleteFriendRequest ¶
func (q *Queries) DeleteFriendRequest(ctx context.Context, arg DeleteFriendRequestParams) error
func (*Queries) DeleteUser ¶
func (*Queries) DeleteUserLogs1 ¶
func (*Queries) DeleteUserLogs2SelectGroups ¶
func (*Queries) DeleteUserLogs3PruneGroupedEncounters ¶
func (*Queries) DeleteUserLogs3UpdateGroupedEncounters ¶
func (*Queries) FetchWhitelist ¶
func (*Queries) GetAPIToken ¶
func (*Queries) GetEncounter ¶
func (*Queries) GetEncounterShort ¶
func (*Queries) GetEncounterVisibility ¶
func (*Queries) GetNoThumbnailLogs ¶
func (*Queries) GetRolesByDiscordID ¶
func (*Queries) GetRosterByUsername ¶
func (*Queries) GetRosterStats ¶
func (*Queries) GetRosterStatsByID ¶
func (*Queries) GetUniqueGroup ¶
func (*Queries) GetUserByDiscordID ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserByToken ¶
func (*Queries) GetUserEncounterVisibility ¶
func (*Queries) HasFriendRequest ¶
func (*Queries) InsertCharacter ¶
func (q *Queries) InsertCharacter(ctx context.Context, arg InsertCharacterParams) error
func (*Queries) InsertEncounter ¶
func (*Queries) InsertPlayer ¶
func (*Queries) InsertPlayerInternal ¶
func (q *Queries) InsertPlayerInternal(ctx context.Context, arg InsertPlayerInternalParams) error
func (*Queries) ListEncounters ¶
func (*Queries) ListFriends ¶
func (*Queries) ListReceivedFriendRequests ¶
func (*Queries) ListSentFriendRequests ¶
func (*Queries) ListUserEncounters ¶
func (*Queries) MarkThumbnail ¶
func (*Queries) ProcessEncounter ¶
func (*Queries) SendFriendRequest ¶
func (q *Queries) SendFriendRequest(ctx context.Context, arg SendFriendRequestParams) error
func (*Queries) SetAccessToken ¶
func (q *Queries) SetAccessToken(ctx context.Context, arg SetAccessTokenParams) error
func (*Queries) SetUserRoles ¶
func (q *Queries) SetUserRoles(ctx context.Context, arg SetUserRolesParams) error
func (*Queries) SetUsername ¶
func (q *Queries) SetUsername(ctx context.Context, arg SetUsernameParams) error
func (*Queries) UpdateAvatar ¶
func (q *Queries) UpdateAvatar(ctx context.Context, arg UpdateAvatarParams) error
func (*Queries) UpdateEncounterVisibility ¶
func (q *Queries) UpdateEncounterVisibility(ctx context.Context, arg UpdateEncounterVisibilityParams) error
func (*Queries) UpdateRoles ¶
func (q *Queries) UpdateRoles(ctx context.Context, arg UpdateRolesParams) error
func (*Queries) UpdateUniqueGroup ¶
func (q *Queries) UpdateUniqueGroup(ctx context.Context, arg UpdateUniqueGroupParams) error
func (*Queries) UpdateUserEncounterVisibility ¶
func (q *Queries) UpdateUserEncounterVisibility(ctx context.Context, arg UpdateUserEncounterVisibilityParams) error
func (*Queries) UpsertEncounterGroup ¶
func (q *Queries) UpsertEncounterGroup(ctx context.Context, arg UpsertEncounterGroupParams) error
func (*Queries) UpsertUser ¶
type SendFriendRequestParams ¶
type SetAccessTokenParams ¶
type SetUserRolesParams ¶
type SetUsernameParams ¶
type UpdateAvatarParams ¶
type UpdateEncounterVisibilityParams ¶
type UpdateEncounterVisibilityParams struct { ID int32 Visibility *structs.EncounterVisibility }
type UpdateRolesParams ¶
type UpdateUniqueGroupParams ¶
type UpdateUserEncounterVisibilityParams ¶
type UpdateUserEncounterVisibilityParams struct { ID pgtype.UUID LogVisibility *structs.EncounterVisibility }
type UpsertUserParams ¶
type User ¶
type User struct { ID pgtype.UUID Username *string CreatedAt pgtype.Timestamp UpdatedAt pgtype.Timestamp AccessToken *string DiscordID string DiscordTag string Avatar string Friends []pgtype.UUID Settings structs.UserSettings LogVisibility *structs.EncounterVisibility Titles []string Roles []string }
type WhitelistParams ¶
Click to show internal directories.
Click to hide internal directories.