Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAccessToken = errors.New("could not retrieve access token")
Functions ¶
func IsValidRegion ¶
IsValidRegion accepts region strings "us" or "eu"
Types ¶
type AllRealmCollection ¶
AllRealmCollection maps a realm slug to a blizzard realm ID
func (AllRealmCollection) IsValidRealm ¶
func (rc AllRealmCollection) IsValidRealm(realmSlug string) bool
IsValidRealm tests the given realmSlug and returns if it is valid
type BNet ¶
type BNet struct {
// contains filtered or unexported fields
}
func (*BNet) GetIfNotModified ¶
GetIfNotModified sets the If-Modified-Since header and returns true if a response was received, false otherwise If a response is returned, return the value of the Last-Modified header
type ConnectedRealmCollection ¶
ConnectedRealmCollection maps connected realm ID -> realm slug.
type Realms ¶
type Realms struct { Region string ConnectedRealms ConnectedRealmCollection AllRealms AllRealmCollection // contains filtered or unexported fields }
func GetRealmList ¶
GetRealmList calculates valid realm ids for a given region This methods makes many API calls to populate the full list of connected realms
Click to show internal directories.
Click to hide internal directories.