Documentation ¶
Index ¶
Constants ¶
View Source
const ( RegionUS = "us" RegionEU = "eu" RegionKR = "kr" RegionCN = "cn" RegionGlobal = "global" PlatformPC = "pc" PlatformPSN = "psn" PlatformXBL = "xbl" SkillRankError = -1 )
Variables ¶
View Source
var ( Error = errors.NewClass("overwatch") BattleTagInvalid = Error.NewClass("BattleTag invalid", errors.NoCaptureStack()) BattleTagNotFound = Error.NewClass("no BattleTag found", errors.NoCaptureStack()) BattleTagUnranked = Error.NewClass("no skill ranking found", errors.NoCaptureStack()) )
View Source
var ( Regions = []string{RegionUS, RegionEU, RegionKR, RegionCN, RegionGlobal} Platforms = []string{PlatformPC, PlatformPSN, PlatformXBL} )
Functions ¶
func CheckPlatform ¶
func CheckPlatform(platform string)
func CheckRegion ¶
func CheckRegion(region string)
func NewCaching ¶
func NewCaching(overwatch OverwatchAPI, cache cache.Cache) *cachingOverwatch
func RankToDivision ¶
Types ¶
type OfficialAPI ¶
type OverwatchAPI ¶
type OverwatchAPI interface { SkillRank(platform, battle_tag string) (sr int, err error) OfficialAPI }
type RegionalOverwatchAPI ¶
type RegionalOverwatchAPI interface { SkillRank(platform, region, battle_tag string) (sr int, err error) OfficialAPI }
Click to show internal directories.
Click to hide internal directories.