dao

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeros

func AddHeros(heros []models.Hero)

func GetHeroName

func GetHeroName(heroID int) string

func GetMatchPlayer

func GetMatchPlayer(matchID int64, playerID string) *models.MatchPlayer

func GetSubPlayer

func GetSubPlayer(groupID int, playerID string) *models.SubscribePlayer

func GetSubPlayerMapByGroupId

func GetSubPlayerMapByGroupId(groupID int) (m map[string]string)

func HasHeroData

func HasHeroData() bool

func InitDB

func InitDB()

func ListAllPlayerIDs

func ListAllPlayerIDs() (pids []string)

func ListGroupIDs

func ListGroupIDs() []int

func ListRecentMatchPlayers added in v1.2.0

func ListRecentMatchPlayers(playerID string) []*models.MatchPlayer

func ListSubPlayers

func ListSubPlayers(playerID string) []models.SubscribePlayer

func SaveMatchPlayer

func SaveMatchPlayer(mp *models.MatchPlayer)

func SaveSubPlayer

func SaveSubPlayer(sp *models.SubscribePlayer)

func UpdateSubPlayer

func UpdateSubPlayer(sp *models.SubscribePlayer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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