playerstats

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 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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