Documentation
¶
Index ¶
- func NewPlayerStatRepository(uuidGenerator uuid.UUIDGenerator, db *sql.DB) database.PlayerStatRepository
- func NewPlayerStatRepositoryWithTx(uuidGenerator uuid.UUIDGenerator, db *sql.DB, tx *sql.Tx) database.PlayerStatRepository
- type PlayerStatRepository
- func (psr *PlayerStatRepository) GetPlayerStatsByMapstats(ctx context.Context, mapstatsID []entity.MapStatsID) (map[entity.MapStatsID][]*database.PlayerStat, error)
- func (psr *PlayerStatRepository) GetPlayerStatsByMatch(ctx context.Context, matchID entity.MatchID) ([]*database.PlayerStat, error)
- func (psr *PlayerStatRepository) GetPlayerStatsBySteamID(ctx context.Context, steamID entity.SteamID) ([]*database.PlayerStat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlayerStatRepository ¶
func NewPlayerStatRepository(uuidGenerator uuid.UUIDGenerator, db *sql.DB) database.PlayerStatRepository
func NewPlayerStatRepositoryWithTx ¶
func NewPlayerStatRepositoryWithTx(uuidGenerator uuid.UUIDGenerator, db *sql.DB, tx *sql.Tx) database.PlayerStatRepository
Types ¶
type PlayerStatRepository ¶
type PlayerStatRepository struct {
// contains filtered or unexported fields
}
func (*PlayerStatRepository) GetPlayerStatsByMapstats ¶
func (psr *PlayerStatRepository) GetPlayerStatsByMapstats(ctx context.Context, mapstatsID []entity.MapStatsID) (map[entity.MapStatsID][]*database.PlayerStat, error)
GetPlayerStatsByMapstats implements database.PlayerStatRepository.
func (*PlayerStatRepository) GetPlayerStatsByMatch ¶
func (psr *PlayerStatRepository) GetPlayerStatsByMatch(ctx context.Context, matchID entity.MatchID) ([]*database.PlayerStat, error)
GetPlayerStatsByMatch implements database.PlayerStatRepository.
func (*PlayerStatRepository) GetPlayerStatsBySteamID ¶
func (psr *PlayerStatRepository) GetPlayerStatsBySteamID(ctx context.Context, steamID entity.SteamID) ([]*database.PlayerStat, error)
GetPlayerStatsBySteamID implements database.PlayerStatRepository.
Click to show internal directories.
Click to hide internal directories.