Documentation ¶
Index ¶
- type Campaign
- type Character
- type DBTX
- type GetAllCharactersRow
- type GetCampaignsWithCharacterCountRow
- type GetCharacterWithXpRow
- type GetCharactersForCampaignWithXpRow
- type InsertCampaignParams
- type InsertCharacterParams
- type InsertUserParams
- type InsertXpAwardParams
- type InsertXpBonusForCharacterParams
- type Queries
- func (q *Queries) DeleteCharacter(ctx context.Context, id int64) error
- func (q *Queries) DeleteXpAwardsForCharacter(ctx context.Context, characterID int64) error
- func (q *Queries) DeleteXpBonusForCharacter(ctx context.Context, characterID int64) error
- func (q *Queries) GetAllCharacters(ctx context.Context) ([]GetAllCharactersRow, error)
- func (q *Queries) GetCampaignById(ctx context.Context, id int64) (Campaign, error)
- func (q *Queries) GetCampaignByName(ctx context.Context, name string) (Campaign, error)
- func (q *Queries) GetCampaigns(ctx context.Context, userID int64) ([]Campaign, error)
- func (q *Queries) GetCampaignsWithCharacterCount(ctx context.Context, userID int64) ([]GetCampaignsWithCharacterCountRow, error)
- func (q *Queries) GetCharacterById(ctx context.Context, id int64) (Character, error)
- func (q *Queries) GetCharacterWithXp(ctx context.Context, id int64) (GetCharacterWithXpRow, error)
- func (q *Queries) GetCharactersForCampaign(ctx context.Context, campaignID int64) ([]Character, error)
- func (q *Queries) GetCharactersForCampaignWithXp(ctx context.Context, campaignID int64) ([]GetCharactersForCampaignWithXpRow, error)
- func (q *Queries) GetUser(ctx context.Context, username string) (User, error)
- func (q *Queries) GetUserId(ctx context.Context, username string) (int64, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]User, error)
- func (q *Queries) GetXpAwardsForCharacter(ctx context.Context, characterID int64) ([]XpAward, error)
- func (q *Queries) GetXpBonusForCharacter(ctx context.Context, characterID int64) ([]XpBonusReason, error)
- func (q *Queries) InsertCampaign(ctx context.Context, arg InsertCampaignParams) (Campaign, error)
- func (q *Queries) InsertCharacter(ctx context.Context, arg InsertCharacterParams) (Character, error)
- func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) (User, error)
- func (q *Queries) InsertXpAward(ctx context.Context, arg InsertXpAwardParams) (XpAward, error)
- func (q *Queries) InsertXpBonusForCharacter(ctx context.Context, arg InsertXpBonusForCharacterParams) (XpBonusReason, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type User
- type XpAward
- type XpBonusReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAllCharactersRow ¶
type GetCampaignsWithCharacterCountRow ¶
type GetCampaignsWithCharacterCountRow struct { ID int64 Name string Description sql.NullString CharacterCount int64 }
type GetCharacterWithXpRow ¶
type InsertCampaignParams ¶
type InsertCampaignParams struct { Name string Description sql.NullString Key string UserID int64 }
type InsertCharacterParams ¶
type InsertUserParams ¶
type InsertUserParams struct { Username string Realname sql.NullString Password string }
type InsertXpAwardParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteCharacter ¶
func (*Queries) DeleteXpAwardsForCharacter ¶
func (*Queries) DeleteXpBonusForCharacter ¶
func (*Queries) GetAllCharacters ¶
func (q *Queries) GetAllCharacters(ctx context.Context) ([]GetAllCharactersRow, error)
func (*Queries) GetCampaignById ¶
func (*Queries) GetCampaignByName ¶
func (*Queries) GetCampaigns ¶
func (*Queries) GetCampaignsWithCharacterCount ¶
func (*Queries) GetCharacterById ¶
func (*Queries) GetCharacterWithXp ¶
func (*Queries) GetCharactersForCampaign ¶
func (*Queries) GetCharactersForCampaignWithXp ¶
func (*Queries) GetXpAwardsForCharacter ¶
func (*Queries) GetXpBonusForCharacter ¶
func (*Queries) InsertCampaign ¶
func (*Queries) InsertCharacter ¶
func (*Queries) InsertUser ¶
func (*Queries) InsertXpAward ¶
func (*Queries) InsertXpBonusForCharacter ¶
func (q *Queries) InsertXpBonusForCharacter(ctx context.Context, arg InsertXpBonusForCharacterParams) (XpBonusReason, error)
Click to show internal directories.
Click to hide internal directories.