Documentation
¶
Index ¶
- func NewMapStatRepository(uuidGenerator uuid.UUIDGenerator, db *sql.DB) database.MapStatRepository
- func NewMapStatRepositoryWithTx(uuidGenerator uuid.UUIDGenerator, db *sql.DB, tx *sql.Tx) database.MapStatRepository
- type MapStatRepository
- func (msr *MapStatRepository) GetMapStat(ctx context.Context, id entity.MapStatsID) (*database.MapStat, error)
- func (msr *MapStatRepository) GetMapStatsByMatch(ctx context.Context, matchID entity.MatchID) ([]*database.MapStat, error)
- func (msr *MapStatRepository) GetMapStatsByMatchAndMap(ctx context.Context, matchID entity.MatchID, mapNumber uint32) (*database.MapStat, error)
- func (msr *MapStatRepository) GetMapStatsByMatches(ctx context.Context, matchIDs []entity.MatchID) (map[entity.MatchID][]*database.MapStat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMapStatRepository ¶
func NewMapStatRepository(uuidGenerator uuid.UUIDGenerator, db *sql.DB) database.MapStatRepository
func NewMapStatRepositoryWithTx ¶
func NewMapStatRepositoryWithTx(uuidGenerator uuid.UUIDGenerator, db *sql.DB, tx *sql.Tx) database.MapStatRepository
Types ¶
type MapStatRepository ¶
type MapStatRepository struct {
// contains filtered or unexported fields
}
func (*MapStatRepository) GetMapStat ¶
func (msr *MapStatRepository) GetMapStat(ctx context.Context, id entity.MapStatsID) (*database.MapStat, error)
GetMapStats implements database.MapStatRepository.
func (*MapStatRepository) GetMapStatsByMatch ¶
func (msr *MapStatRepository) GetMapStatsByMatch(ctx context.Context, matchID entity.MatchID) ([]*database.MapStat, error)
GetMapStatsByMatch implements database.MapStatRepository.
Click to show internal directories.
Click to hide internal directories.