overwatch

package
Version: v0.0.0-...-b3e7a1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

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())
)

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

func RankToDivision(rank int) string

Types

type OfficialAPI

type OfficialAPI interface {
	IsValidBattleTag(platform, region, battle_tag string) (
		bool, error)
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL