Documentation
¶
Index ¶
- func AddHeros(heros []dto.HeroDto)
- func GetHeroName(heroID int) string
- func GetMatchPlayer(matchID int64, playerID string) *dto.MatchPlayerDto
- func GetSubPlayerMapByGroupId(groupID int) map[string]string
- func GetSubscription(groupID int, playerID string) *ent.Subscription
- func GetSubscriptionDto(groupID int, playerID string) *dto.SubscriptionDto
- func HasHeroData() bool
- func InitDB()
- func ListAllGroupIds() []int
- func ListAllPlayerIDs() (pids []string)
- func ListRecentMatchPlayers(playerID string) []*dto.MatchPlayerDto
- func ListSubPlayersByGroupId(groupID int) []dto.SubscriptionDto
- func ListSubPlayersByPlayerId(playerID string) []dto.SubscriptionDto
- func SaveMatchPlayer(mp *dto.MatchPlayerDto)
- func SaveSubPlayer(groupId int, steamId string, alias string)
- func UpdateSubPlayer(s *ent.Subscription)
- type PlayerMatchCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHeroName ¶
func GetMatchPlayer ¶
func GetMatchPlayer(matchID int64, playerID string) *dto.MatchPlayerDto
func GetSubscription ¶ added in v1.5.0
func GetSubscription(groupID int, playerID string) *ent.Subscription
func GetSubscriptionDto ¶ added in v1.5.0
func GetSubscriptionDto(groupID int, playerID string) *dto.SubscriptionDto
func HasHeroData ¶
func HasHeroData() bool
func ListAllGroupIds ¶ added in v1.5.0
func ListAllGroupIds() []int
func ListAllPlayerIDs ¶
func ListAllPlayerIDs() (pids []string)
func ListRecentMatchPlayers ¶ added in v1.2.0
func ListRecentMatchPlayers(playerID string) []*dto.MatchPlayerDto
func ListSubPlayersByGroupId ¶ added in v1.4.1
func ListSubPlayersByGroupId(groupID int) []dto.SubscriptionDto
func ListSubPlayersByPlayerId ¶ added in v1.4.1
func ListSubPlayersByPlayerId(playerID string) []dto.SubscriptionDto
func SaveMatchPlayer ¶
func SaveMatchPlayer(mp *dto.MatchPlayerDto)
func SaveSubPlayer ¶
func UpdateSubPlayer ¶
func UpdateSubPlayer(s *ent.Subscription)
Types ¶
type PlayerMatchCount ¶ added in v1.5.0
func GetMatchesCount ¶ added in v1.5.0
func GetMatchesCount(playerIds []string, start, end time.Time) (result []PlayerMatchCount)
Click to show internal directories.
Click to hide internal directories.