Documentation ¶
Index ¶
- type AbilityDetail
- type AbilityDetailsCategoriesJoin
- type Alignment
- type Category
- type CreateAbilityDetailParams
- type CreateAbilityDetailsCategoriesJoinParams
- type CreateGameParams
- type CreatePassiveDetailParams
- type CreatePlayerAbilityParams
- type CreatePlayerParams
- type CreatePlayerStatusParams
- type CreateRoleAbilityJoinParams
- type CreateRoleParams
- type CreateRolePassiveJoinParams
- type CreateStatusDetailParams
- type DBTX
- type DeletePlayerAbilityParams
- type Game
- type GetPlayerAbilityParams
- type GetPlayerAbilityRow
- type GetRolePassiveJoinRow
- type GetRolePassivesAggregateRow
- type ListCategoryNamesToIDsRow
- type ListPlayerAbilitiesJoinRow
- type NullAlignment
- type NullRarity
- type PassiveDetail
- type Player
- type PlayerAbility
- type PlayerNote
- type PlayerStatus
- type Queries
- func (q *Queries) CreateAbilityDetail(ctx context.Context, arg CreateAbilityDetailParams) (AbilityDetail, error)
- func (q *Queries) CreateAbilityDetailsCategoriesJoin(ctx context.Context, arg CreateAbilityDetailsCategoriesJoinParams) (AbilityDetailsCategoriesJoin, error)
- func (q *Queries) CreateGame(ctx context.Context, arg CreateGameParams) (Game, error)
- func (q *Queries) CreatePassiveDetail(ctx context.Context, arg CreatePassiveDetailParams) (PassiveDetail, error)
- func (q *Queries) CreatePlayer(ctx context.Context, arg CreatePlayerParams) (Player, error)
- func (q *Queries) CreatePlayerAbility(ctx context.Context, arg CreatePlayerAbilityParams) (PlayerAbility, error)
- func (q *Queries) CreatePlayerStatus(ctx context.Context, arg CreatePlayerStatusParams) (PlayerStatus, error)
- func (q *Queries) CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
- func (q *Queries) CreateRoleAbilityJoin(ctx context.Context, arg CreateRoleAbilityJoinParams) (RoleAbilitiesJoin, error)
- func (q *Queries) CreateRolePassiveJoin(ctx context.Context, arg CreateRolePassiveJoinParams) (RolePassivesJoin, error)
- func (q *Queries) CreateStatusDetail(ctx context.Context, arg CreateStatusDetailParams) (StatusDetail, error)
- func (q *Queries) DeleteAbilityDetail(ctx context.Context, id int32) error
- func (q *Queries) DeleteGame(ctx context.Context, id int32) error
- func (q *Queries) DeletePassiveDetail(ctx context.Context, id int32) error
- func (q *Queries) DeletePlayer(ctx context.Context, id int32) error
- func (q *Queries) DeletePlayerAbility(ctx context.Context, arg DeletePlayerAbilityParams) error
- func (q *Queries) DeletePlayerNote(ctx context.Context, playerID int32) error
- func (q *Queries) GetAbilityDetail(ctx context.Context, id int32) (AbilityDetail, error)
- func (q *Queries) GetAbilityDetailsByName(ctx context.Context, name string) (AbilityDetail, error)
- func (q *Queries) GetAllAbilityDetailsByAnyAbility(ctx context.Context, anyAbility pgtype.Bool) ([]AbilityDetail, error)
- func (q *Queries) GetAllPassiveDetails(ctx context.Context) ([]PassiveDetail, error)
- func (q *Queries) GetAllPassiveDetailsByID(ctx context.Context, id int32) ([]PassiveDetail, error)
- func (q *Queries) GetAllPlayers(ctx context.Context) ([]Player, error)
- func (q *Queries) GetAnyAbilityDetailsMarkedAnyAbility(ctx context.Context) ([]AbilityDetail, error)
- func (q *Queries) GetAssociatedRolePassives(ctx context.Context, roleID int32) ([]PassiveDetail, error)
- func (q *Queries) GetCategoriesForAbilityByID(ctx context.Context) ([]Category, error)
- func (q *Queries) GetCategoryByID(ctx context.Context, id int32) (Category, error)
- func (q *Queries) GetCategoryByName(ctx context.Context, name pgtype.Text) (Category, error)
- func (q *Queries) GetCategoryIDByName(ctx context.Context, name pgtype.Text) (int32, error)
- func (q *Queries) GetGame(ctx context.Context, id int32) (Game, error)
- func (q *Queries) GetGameByName(ctx context.Context, name string) (Game, error)
- func (q *Queries) GetPassiveDetails(ctx context.Context, id int32) (PassiveDetail, error)
- func (q *Queries) GetPassiveDetailsByName(ctx context.Context, name string) (PassiveDetail, error)
- func (q *Queries) GetPlayer(ctx context.Context, id int32) (Player, error)
- func (q *Queries) GetPlayerAbility(ctx context.Context, arg GetPlayerAbilityParams) (GetPlayerAbilityRow, error)
- func (q *Queries) GetPlayerByID(ctx context.Context, id int32) (Player, error)
- func (q *Queries) GetPlayerByName(ctx context.Context, name string) (Player, error)
- func (q *Queries) GetPlayerNote(ctx context.Context, playerID int32) (PlayerNote, error)
- func (q *Queries) GetRandomGame(ctx context.Context) (Game, error)
- func (q *Queries) GetRole(ctx context.Context, id int32) (Role, error)
- func (q *Queries) GetRoleAbilityDetails(ctx context.Context, roleID int32) ([]AbilityDetail, error)
- func (q *Queries) GetRoleFromAbilityDetailsID(ctx context.Context, abilityID int32) (Role, error)
- func (q *Queries) GetRolePassiveDetails(ctx context.Context, roleID int32) ([]PassiveDetail, error)
- func (q *Queries) GetRolePassiveJoin(ctx context.Context) (GetRolePassiveJoinRow, error)
- func (q *Queries) GetRolePassivesAggregate(ctx context.Context, id int32) (GetRolePassivesAggregateRow, error)
- func (q *Queries) GetRoom(ctx context.Context, id int32) (Room, error)
- func (q *Queries) GetRoomByID(ctx context.Context, id int32) (Room, error)
- func (q *Queries) GetRoomBynName(ctx context.Context, name string) (Room, error)
- func (q *Queries) GetStatusDetail(ctx context.Context, id int32) (StatusDetail, error)
- func (q *Queries) GetStatusDetailByID(ctx context.Context, id int32) (StatusDetail, error)
- func (q *Queries) GetStatusDetailByName(ctx context.Context, name string) (StatusDetail, error)
- func (q *Queries) ListAbilityDetails(ctx context.Context) ([]AbilityDetail, error)
- func (q *Queries) ListCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListCategoryNamesToIDs(ctx context.Context, name pgtype.Text) ([]ListCategoryNamesToIDsRow, error)
- func (q *Queries) ListGames(ctx context.Context) ([]Game, error)
- func (q *Queries) ListPlayerAbilites(ctx context.Context, playerID int32) (PlayerAbility, error)
- func (q *Queries) ListPlayerAbilitiesJoin(ctx context.Context, playerID int32) ([]ListPlayerAbilitiesJoinRow, error)
- func (q *Queries) ListPlayers(ctx context.Context) ([]Player, error)
- func (q *Queries) ListPlayersByGame(ctx context.Context, gameID pgtype.Int4) ([]Player, error)
- func (q *Queries) ListRoles(ctx context.Context) ([]Role, error)
- func (q *Queries) ListRooms(ctx context.Context) ([]Room, error)
- func (q *Queries) ListStatusDetails(ctx context.Context) ([]StatusDetail, error)
- func (q *Queries) NukeRoles(ctx context.Context) error
- func (q *Queries) UpdateAbilityDetail(ctx context.Context, arg UpdateAbilityDetailParams) (AbilityDetail, error)
- func (q *Queries) UpdateGame(ctx context.Context, arg UpdateGameParams) (Game, error)
- func (q *Queries) UpdatePassiveDetail(ctx context.Context, arg UpdatePassiveDetailParams) (PassiveDetail, error)
- func (q *Queries) UpdatePlayer(ctx context.Context, arg UpdatePlayerParams) (Player, error)
- func (q *Queries) UpdatePlayerAbility(ctx context.Context, arg UpdatePlayerAbilityParams) (PlayerAbility, error)
- func (q *Queries) UpdatePlayerAlignment(ctx context.Context, arg UpdatePlayerAlignmentParams) (Player, error)
- func (q *Queries) UpdatePlayerAlive(ctx context.Context, arg UpdatePlayerAliveParams) (Player, error)
- func (q *Queries) UpdatePlayerRole(ctx context.Context, arg UpdatePlayerRoleParams) (Player, error)
- func (q *Queries) UpdatePlayerRoom(ctx context.Context, arg UpdatePlayerRoomParams) (Player, error)
- func (q *Queries) UpsertPlayerNote(ctx context.Context, arg UpsertPlayerNoteParams) (PlayerNote, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Rarity
- type Role
- type RoleAbilitiesJoin
- type RolePassivesJoin
- type Room
- type StatusDetail
- type UpdateAbilityDetailParams
- type UpdateGameParams
- type UpdatePassiveDetailParams
- type UpdatePlayerAbilityParams
- type UpdatePlayerAlignmentParams
- type UpdatePlayerAliveParams
- type UpdatePlayerParams
- type UpdatePlayerRoleParams
- type UpdatePlayerRoomParams
- type UpsertPlayerNoteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbilityDetail ¶
type CreateGameParams ¶
type CreatePlayerParams ¶
type CreateRoleParams ¶
type GetPlayerAbilityParams ¶
type GetPlayerAbilityRow ¶
type GetRolePassiveJoinRow ¶
type GetRolePassiveJoinRow struct { RolePassivesJoin RolePassivesJoin `json:"role_passives_join"` PassiveDetail PassiveDetail `json:"passive_detail"` }
type GetRolePassivesAggregateRow ¶
type GetRolePassivesAggregateRow struct { PassiveNames interface{} `json:"passive_names"` PassiveDescriptions interface{} `json:"passive_descriptions"` }
type NullAlignment ¶
type NullAlignment struct { Alignment Alignment `json:"alignment"` Valid bool `json:"valid"` // Valid is true if Alignment is not NULL }
func (*NullAlignment) Scan ¶
func (ns *NullAlignment) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullRarity ¶
type NullRarity struct { Rarity Rarity `json:"rarity"` Valid bool `json:"valid"` // Valid is true if Rarity is not NULL }
func (*NullRarity) Scan ¶
func (ns *NullRarity) Scan(value interface{}) error
Scan implements the Scanner interface.
type PassiveDetail ¶
type PlayerAbility ¶
type PlayerNote ¶
type PlayerStatus ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAbilityDetail ¶
func (q *Queries) CreateAbilityDetail(ctx context.Context, arg CreateAbilityDetailParams) (AbilityDetail, error)
func (*Queries) CreateAbilityDetailsCategoriesJoin ¶
func (q *Queries) CreateAbilityDetailsCategoriesJoin(ctx context.Context, arg CreateAbilityDetailsCategoriesJoinParams) (AbilityDetailsCategoriesJoin, error)
func (*Queries) CreateGame ¶
func (*Queries) CreatePassiveDetail ¶
func (q *Queries) CreatePassiveDetail(ctx context.Context, arg CreatePassiveDetailParams) (PassiveDetail, error)
func (*Queries) CreatePlayer ¶
func (*Queries) CreatePlayerAbility ¶
func (q *Queries) CreatePlayerAbility(ctx context.Context, arg CreatePlayerAbilityParams) (PlayerAbility, error)
func (*Queries) CreatePlayerStatus ¶
func (q *Queries) CreatePlayerStatus(ctx context.Context, arg CreatePlayerStatusParams) (PlayerStatus, error)
func (*Queries) CreateRole ¶
func (*Queries) CreateRoleAbilityJoin ¶
func (q *Queries) CreateRoleAbilityJoin(ctx context.Context, arg CreateRoleAbilityJoinParams) (RoleAbilitiesJoin, error)
func (*Queries) CreateRolePassiveJoin ¶
func (q *Queries) CreateRolePassiveJoin(ctx context.Context, arg CreateRolePassiveJoinParams) (RolePassivesJoin, error)
func (*Queries) CreateStatusDetail ¶
func (q *Queries) CreateStatusDetail(ctx context.Context, arg CreateStatusDetailParams) (StatusDetail, error)
func (*Queries) DeleteAbilityDetail ¶
func (*Queries) DeletePassiveDetail ¶
func (*Queries) DeletePlayerAbility ¶
func (q *Queries) DeletePlayerAbility(ctx context.Context, arg DeletePlayerAbilityParams) error
func (*Queries) DeletePlayerNote ¶
func (*Queries) GetAbilityDetail ¶
func (*Queries) GetAbilityDetailsByName ¶
func (*Queries) GetAllAbilityDetailsByAnyAbility ¶
func (*Queries) GetAllPassiveDetails ¶
func (q *Queries) GetAllPassiveDetails(ctx context.Context) ([]PassiveDetail, error)
func (*Queries) GetAllPassiveDetailsByID ¶
func (*Queries) GetAllPlayers ¶
func (*Queries) GetAnyAbilityDetailsMarkedAnyAbility ¶
func (q *Queries) GetAnyAbilityDetailsMarkedAnyAbility(ctx context.Context) ([]AbilityDetail, error)
func (*Queries) GetAssociatedRolePassives ¶
func (*Queries) GetCategoriesForAbilityByID ¶
func (*Queries) GetCategoryByID ¶
func (*Queries) GetCategoryByName ¶
func (*Queries) GetCategoryIDByName ¶
func (*Queries) GetGameByName ¶
func (*Queries) GetPassiveDetails ¶
func (*Queries) GetPassiveDetailsByName ¶
func (*Queries) GetPlayerAbility ¶
func (q *Queries) GetPlayerAbility(ctx context.Context, arg GetPlayerAbilityParams) (GetPlayerAbilityRow, error)
func (*Queries) GetPlayerByID ¶
func (*Queries) GetPlayerByName ¶
func (*Queries) GetPlayerNote ¶
func (*Queries) GetRoleAbilityDetails ¶
func (*Queries) GetRoleFromAbilityDetailsID ¶
func (*Queries) GetRolePassiveDetails ¶
func (*Queries) GetRolePassiveJoin ¶
func (q *Queries) GetRolePassiveJoin(ctx context.Context) (GetRolePassiveJoinRow, error)
func (*Queries) GetRolePassivesAggregate ¶
func (*Queries) GetRoomByID ¶
func (*Queries) GetRoomBynName ¶
func (*Queries) GetStatusDetail ¶
func (*Queries) GetStatusDetailByID ¶
func (*Queries) GetStatusDetailByName ¶
func (*Queries) ListAbilityDetails ¶
func (q *Queries) ListAbilityDetails(ctx context.Context) ([]AbilityDetail, error)
func (*Queries) ListCategories ¶
func (*Queries) ListCategoryNamesToIDs ¶
func (*Queries) ListPlayerAbilites ¶
func (*Queries) ListPlayerAbilitiesJoin ¶
func (*Queries) ListPlayersByGame ¶
func (*Queries) ListStatusDetails ¶
func (q *Queries) ListStatusDetails(ctx context.Context) ([]StatusDetail, error)
func (*Queries) UpdateAbilityDetail ¶
func (q *Queries) UpdateAbilityDetail(ctx context.Context, arg UpdateAbilityDetailParams) (AbilityDetail, error)
func (*Queries) UpdateGame ¶
func (*Queries) UpdatePassiveDetail ¶
func (q *Queries) UpdatePassiveDetail(ctx context.Context, arg UpdatePassiveDetailParams) (PassiveDetail, error)
func (*Queries) UpdatePlayer ¶
func (*Queries) UpdatePlayerAbility ¶
func (q *Queries) UpdatePlayerAbility(ctx context.Context, arg UpdatePlayerAbilityParams) (PlayerAbility, error)
func (*Queries) UpdatePlayerAlignment ¶
func (*Queries) UpdatePlayerAlive ¶
func (*Queries) UpdatePlayerRole ¶
func (*Queries) UpdatePlayerRoom ¶
func (*Queries) UpsertPlayerNote ¶
func (q *Queries) UpsertPlayerNote(ctx context.Context, arg UpsertPlayerNoteParams) (PlayerNote, error)
type RoleAbilitiesJoin ¶
type RolePassivesJoin ¶
type StatusDetail ¶
type UpdateGameParams ¶
type UpdatePlayerAlignmentParams ¶
type UpdatePlayerAlignmentParams struct { ID int32 `json:"id"` Alignment NullAlignment `json:"alignment"` }
type UpdatePlayerAliveParams ¶
type UpdatePlayerParams ¶
type UpdatePlayerRoleParams ¶
type UpdatePlayerRoomParams ¶
type UpsertPlayerNoteParams ¶
Source Files ¶
- ability_details.sql.go
- ability_details_categories_join.sql.go
- categories.sql.go
- db.go
- games.sql.go
- models.go
- passive_abilites_join.sql.go
- passive_details.sql.go
- players.sql.go
- role_abilities_join.sql.go
- role_passive_join.sql.go
- role_passives_join.sql.go
- roles.sql.go
- rooms.sql.go
- status_details.sql.go
Click to show internal directories.
Click to hide internal directories.