Documentation ¶
Index ¶
- Constants
- func CheckRegion(v string) bool
- func CheckRegionBytes(b []byte) bool
- type App
- func (app *App) BakeOAuthUrl(w internal.XWriter, region string, scopes OAuthScope) internal.UrlEncodeXWriter
- func (app *App) BakeOAuthUrlBytes(w internal.XWriter, region []byte, scopes OAuthScope) internal.UrlEncodeXWriter
- func (app *App) GetOAuthToken(region, code string, writeRedirectUri func(internal.UrlEncodeXWriter)) (string, error)
- func (app *App) GetOAuthTokenBytes(region, code []byte, writeRedirectUri func(internal.UrlEncodeXWriter)) (string, error)
- func (app *App) WriteApiHost(w internal.XWriter, region string)
- type OAuthScope
Constants ¶
View Source
const ( RegionUS = "us" RegionEU = "eu" RegionAPAC = "apac" RegionCN = "cn" )
Variables ¶
This section is empty.
Functions ¶
func CheckRegion ¶
func CheckRegionBytes ¶
Types ¶
type App ¶
type App struct { ClientId string ClientSecret string WoW *wow.App // contains filtered or unexported fields }
func (*App) BakeOAuthUrl ¶
func (app *App) BakeOAuthUrl(w internal.XWriter, region string, scopes OAuthScope) internal.UrlEncodeXWriter
func (*App) BakeOAuthUrlBytes ¶
func (app *App) BakeOAuthUrlBytes(w internal.XWriter, region []byte, scopes OAuthScope) internal.UrlEncodeXWriter
func (*App) GetOAuthToken ¶
func (*App) GetOAuthTokenBytes ¶
type OAuthScope ¶
type OAuthScope uint8
const ( OAuthWow OAuthScope = 1 OAuthSc2 OAuthScope = 1 << 1 OAuthD3 OAuthScope = 1 << 2 OAuthOpenId OAuthScope = 1 << 3 )
Click to show internal directories.
Click to hide internal directories.