Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchPlayer ¶
type MatchPlayer struct {
MatchID int64 `json:"match_id" gorm:"index"`
PlayerID string `gorm:"index"`
PlayerSlot int `json:"player_slot" gorm:"not null"`
RadiantWin bool `json:"radiant_win" gorm:"not null"`
Duration int `json:"duration" gorm:"not null"` // Seconds
GameMode int `json:"game_mode" gorm:"not null"`
LobbyType int `json:"lobby_type" gorm:"not null"`
HeroID int `json:"hero_id" gorm:"not null"`
StartTime int `json:"start_time" gorm:"not null"`
Version int `json:"version" gorm:"not null"`
Kills int `json:"kills" gorm:"not null"`
Deaths int `json:"deaths" gorm:"not null"`
Assists int `json:"assists" gorm:"not null"`
Skill *int `json:"skill"`
LeaverStatus int `json:"leaver_status" gorm:"not null"`
PartySize int `json:"party_size" gorm:"not null"`
gorm.Model
}
func (MatchPlayer) DurationMinutes ¶ added in v1.2.0
func (m MatchPlayer) DurationMinutes() int
func (MatchPlayer) IsWin ¶
func (m MatchPlayer) IsWin() bool
func (MatchPlayer) SkillString ¶
func (m MatchPlayer) SkillString() string
type SteamApiResult ¶
Click to show internal directories.
Click to hide internal directories.