Documentation ¶
Overview ¶
Package evesso is the main package of this library.
Index ¶
Constants ¶
View Source
const ( // LiveServer contains the url of the EVE live server. LiveServer = "https://login.eveonline.com" // TestServer contains the url of the EVE test server. TestServer = "https://sisilogin.testeveonline.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthResponse ¶
type OAuthResponse struct { Error string `json:"error"` ErrorDescription string `json:"error_description"` }
OAuthResponse is a generic OAuth response.
type SingleSignOn ¶
SingleSignOn is a structure containing required credentials and settings to use the EVE SSO system.
func (*SingleSignOn) AccessToken ¶
func (sso *SingleSignOn) AccessToken(code string, refreshToken bool) (response TokenResponse, expiryTime time.Time, characterID int, characterName string, err error)
AccessToken requests an OAuath access token as well as additional meta information given an authorization code or a refreshToken.
type TokenResponse ¶
type TokenResponse struct { OAuthResponse AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
TokenResponse is an OAuthResponse which contains an access token and/or a a refresh token.
Click to show internal directories.
Click to hide internal directories.