Documentation
¶
Index ¶
- Variables
- func Pluralizer(text string) string
- func SanitizeAndPluralizeKey(text string) string
- func SanitizeKey(text string) string
- func SanitizeValue(text string) float32
- type ApiPlatform
- type HeroAverageStats
- type HeroGamemodeStats
- type HeroGeneralStats
- type HeroPlaytimeStats
- type HeroRollingAverageStats
- type HeroSpecificStats
- type HeroesGamemodeStats
- type HeroesPlaytimeStats
- type HeroesStats
- type HeroesStatsData
- type HttpClient
- type PlayerAverageStats
- type PlayerGameStats
- type PlayerGamemodeStats
- type PlayerOverallStats
- type PlayerRollingAverageStats
- type PlayerStats
- type Profile
- type ProfileParser
Constants ¶
This section is empty.
Variables ¶
View Source
var HEROES = map[string]string{
"reaper": "0x02E0000000000002",
"tracer": "0x02E0000000000003",
"mercy": "0x02E0000000000004",
"hanzo": "0x02E0000000000005",
"torbjorn": "0x02E0000000000006",
"reinhardt": "0x02E0000000000007",
"pharah": "0x02E0000000000008",
"winston": "0x02E0000000000009",
"widowmaker": "0x02E000000000000A",
"bastion": "0x02E0000000000015",
"symmetra": "0x02E0000000000016",
"zenyatta": "0x02E0000000000020",
"genji": "0x02E0000000000029",
"roadhog": "0x02E0000000000040",
"mccree": "0x02E0000000000042",
"junkrat": "0x02E0000000000065",
"zarya": "0x02E0000000000068",
"soldier76": "0x02E000000000006E",
"lucio": "0x02E0000000000079",
"dva": "0x02E000000000007A",
"mei": "0x02E00000000000DD",
"ana": "0x02E000000000013B",
"sombra": "0x02E000000000012E",
"orisa": "0x02E000000000013E",
"doomfist": "0x02E000000000012F",
"moira": "0x02E00000000001A2",
"brigitte": "0x02E0000000000195",
"wrecking_ball": "0x02E00000000001CA",
}
View Source
var Request = NewHttpClient()
Functions ¶
func Pluralizer ¶
func SanitizeAndPluralizeKey ¶
func SanitizeKey ¶
func SanitizeValue ¶
Types ¶
type ApiPlatform ¶ added in v1.4.0
type HeroAverageStats ¶
type HeroGamemodeStats ¶
type HeroGamemodeStats struct { Average *HeroAverageStats `json:"average_stats,omitempty"` RollingAverage *HeroRollingAverageStats `json:"rolling_average_stats,omitempty"` Specific *HeroSpecificStats `json:"hero_stats,omitempty"` General *HeroGeneralStats `json:"general_stats,omitempty"` }
type HeroGeneralStats ¶
type HeroPlaytimeStats ¶
type HeroRollingAverageStats ¶
type HeroSpecificStats ¶
type HeroesPlaytimeStats ¶
type HeroesPlaytimeStats struct { Competitive *HeroPlaytimeStats `json:"competitive,omitempty"` Quickplay *HeroPlaytimeStats `json:"quickplay,omitempty"` }
type HeroesStats ¶
type HeroesStats struct { Playtime *HeroesPlaytimeStats `json:"playtime,omitempty"` Stats *HeroesStatsData `json:"stats,omitempty"` }
type HeroesStatsData ¶
type HeroesStatsData struct { Competitive *HeroesGamemodeStats `json:"competitive,omitempty"` Quickplay *HeroesGamemodeStats `json:"quickplay,omitempty"` }
type HttpClient ¶ added in v1.2.0
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶ added in v1.2.0
func NewHttpClient() *HttpClient
type PlayerAverageStats ¶
type PlayerGamemodeStats ¶
type PlayerGamemodeStats struct { Competitive bool `json:"competitive,omitempty"` Average *PlayerAverageStats `json:"average_stats,omitempty"` RollingAverage *PlayerRollingAverageStats `json:"rolling_average_stats,omitempty"` Overall *PlayerOverallStats `json:"overall_stats,omitempty"` Game *PlayerGameStats `json:"game_stats,omitempty"` }
type PlayerOverallStats ¶
type PlayerStats ¶
type PlayerStats struct { Competitive *PlayerGamemodeStats `json:"competitive,omitempty"` Quickplay *PlayerGamemodeStats `json:"quickplay,omitempty"` }
type Profile ¶
type Profile struct { Stats *PlayerStats `json:"stats,omitempty"` Heroes *HeroesStats `json:"heroes,omitempty"` UserProfile *ApiPlatform `json:"user_profile"` }
type ProfileParser ¶
type ProfileParser struct {
// contains filtered or unexported fields
}
func NewProfileParser ¶
func NewProfileParser(region string, battleTag string) *ProfileParser
func (*ProfileParser) Parse ¶
func (pp *ProfileParser) Parse() (*Profile, error)
Click to show internal directories.
Click to hide internal directories.