mapstats

package
v0.0.0-...-7c98acb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

func (*MapStatRepository) GetMapStatsByMatchAndMap

func (msr *MapStatRepository) GetMapStatsByMatchAndMap(ctx context.Context, matchID entity.MatchID, mapNumber uint32) (*database.MapStat, error)

GetMapStatsByMatchAndMap implements database.MapStatRepository.

func (*MapStatRepository) GetMapStatsByMatches

func (msr *MapStatRepository) GetMapStatsByMatches(ctx context.Context, matchIDs []entity.MatchID) (map[entity.MatchID][]*database.MapStat, error)

GetMapStatsByMatches implements database.MapStatRepository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL