Versions in this module Expand all Collapse all v0 v0.1.0 Jun 18, 2021 Changes in this version + var ErrNoAccessToken = errors.New("could not retrieve access token") + func IsValidRegion(region string) bool + func RealmSlug(realm string) string + type AllRealmCollection map[string]int + func (rc AllRealmCollection) IsValidRealm(realmSlug string) bool + type BNet struct + func New(clientID, clientSecret, oAuthUrl, apiUrl string, options *Options) (*BNet, error) + func (b *BNet) Get(region, endpoint string) ([]byte, http.Header, error) + func (b *BNet) GetIfNotModified(region, endpoint string, since string) (string, []byte, error) + type ConnectedRealmCollection map[int][]string + type HTTP interface + Get func(region, endpoint string) ([]byte, http.Header, error) + type Options struct + EnableLogging bool + HTTPTimeout time.Duration + LogLevel string + ProductionLogging bool + type Realms struct + AllRealms AllRealmCollection + ConnectedRealms ConnectedRealmCollection + Region string + func GetRealmList(h HTTP, region string) (*Realms, error) + func (r Realms) ConnectedRealmID(h HTTP, realmSlug string) (int, error)