Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { APIKey string // contains filtered or unexported fields }
func (*API) LastReplay ¶
type GameLength ¶
func (*GameLength) UnmarshalJSON ¶
func (gameLength *GameLength) UnmarshalJSON(b []byte) error
type PlayerColor ¶
func (*PlayerColor) UnmarshalJSON ¶
func (playerColor *PlayerColor) UnmarshalJSON(data []byte) error
type Replay ¶
type Replay struct { ReplayURL string `json:"replay_url"` ReplayID int `json:"replay_id"` MapName string `json:"map_name"` Format string `json:"format"` GameType GameType `json:"game_type"` GameLength GameLength `json:"game_length"` WinningPlayer string `json:"winning_player"` Players []ReplayPlayer `json:"players"` SeasonId int `json:"seasons_id"` ReplayDate time.Time `json:"replay_date"` ReplayVersion string `json:"replay_version"` }
func (*Replay) PlayersByTeam ¶
func (replay *Replay) PlayersByTeam() map[int][]ReplayPlayer
func (*Replay) Winner ¶
func (replay *Replay) Winner() *ReplayPlayer
type ReplayPlayer ¶
type ReplayPlayer struct { ID int `json:"players_id"` ClanTag string `json:"clan"` Race Race `json:"race"` Mmr int `json:"mmr"` Division string `json:"division"` ServerRank int `json:"server_rank"` GlobalRank int `json:"global_rank"` Apm int `json:"apm"` Team int `json:"team"` Winner SC2RBool `json:"winner"` Color PlayerColor `json:"color"` Player Player `json:"player"` /* Only present in `/account/last-replay` endpoint */ }
Click to show internal directories.
Click to hide internal directories.