Documentation
¶
Index ¶
- type AddFreeGameParams
- type AddTokenPriceParams
- type DBTX
- type EgsFreeGame
- type GetAllTokenPricesSinceRow
- type Queries
- func (q *Queries) AddFreeGame(ctx context.Context, arg AddFreeGameParams) (EgsFreeGame, error)
- func (q *Queries) AddTokenPrice(ctx context.Context, arg AddTokenPriceParams) (WowTokenPrice, error)
- func (q *Queries) GetAllFreeGames(ctx context.Context) ([]EgsFreeGame, error)
- func (q *Queries) GetAllTokenPrices(ctx context.Context) ([]WowTokenPrice, error)
- func (q *Queries) GetAllTokenPricesSince(ctx context.Context, updated pgtype.Timestamptz) ([]GetAllTokenPricesSinceRow, error)
- func (q *Queries) GetCurrentFreeGames(ctx context.Context) ([]EgsFreeGame, error)
- func (q *Queries) GetLatestTokenPrice(ctx context.Context) (WowTokenPrice, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type WowTokenPrice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFreeGameParams ¶
type AddFreeGameParams struct { StoreID string Title string Description string Url string ThumbnailUrl string StartDate pgtype.Timestamptz EndDate pgtype.Timestamptz }
type AddTokenPriceParams ¶
type AddTokenPriceParams struct { Updated pgtype.Timestamptz Price int64 }
type EgsFreeGame ¶
type EgsFreeGame struct { ID int64 StoreID string Title string Description string Url string ThumbnailUrl string StartDate pgtype.Timestamptz EndDate pgtype.Timestamptz }
type GetAllTokenPricesSinceRow ¶
type GetAllTokenPricesSinceRow struct { Price int64 Updated pgtype.Timestamptz }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddFreeGame ¶
func (q *Queries) AddFreeGame(ctx context.Context, arg AddFreeGameParams) (EgsFreeGame, error)
func (*Queries) AddTokenPrice ¶
func (q *Queries) AddTokenPrice(ctx context.Context, arg AddTokenPriceParams) (WowTokenPrice, error)
func (*Queries) GetAllFreeGames ¶
func (q *Queries) GetAllFreeGames(ctx context.Context) ([]EgsFreeGame, error)
func (*Queries) GetAllTokenPrices ¶
func (q *Queries) GetAllTokenPrices(ctx context.Context) ([]WowTokenPrice, error)
func (*Queries) GetAllTokenPricesSince ¶
func (q *Queries) GetAllTokenPricesSince(ctx context.Context, updated pgtype.Timestamptz) ([]GetAllTokenPricesSinceRow, error)
func (*Queries) GetCurrentFreeGames ¶
func (q *Queries) GetCurrentFreeGames(ctx context.Context) ([]EgsFreeGame, error)
func (*Queries) GetLatestTokenPrice ¶
func (q *Queries) GetLatestTokenPrice(ctx context.Context) (WowTokenPrice, error)
type WowTokenPrice ¶
type WowTokenPrice struct { ID int64 Updated pgtype.Timestamptz Price int64 }
Click to show internal directories.
Click to hide internal directories.