Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type BasicAuth
- type GenericSwaggerError
- type GetDevSwaggerOpts
- type GetDevSwagger_1Opts
- type GetDiffVersionAVersionBOpts
- type GetLatestSwaggerOpts
- type GetLatestSwagger_2Opts
- type GetLegacySwaggerOpts
- type GetLegacySwagger_3Opts
- type GetMetaSwaggerOpts
- type GetStatusItem
- type GetStatusItemList
- type GetStatusNotFound
- type GetStatusNotFoundList
- type GetStatusOpts
- type GetUiOpts
- type GetV1SwaggerOpts
- type GetV2SwaggerOpts
- type GetV3SwaggerOpts
- type GetV4SwaggerOpts
- type GetV5SwaggerOpts
- type GetV6SwaggerOpts
- type GetVerifyError
- type GetVerifyErrorList
- type GetVerifyNotFound
- type GetVerifyNotFoundList
- type GetVerifyOk
- type GetVerifyOkList
- type GetVerifyOpts
- type GetVerifyUnauthorized
- type GetVerifyUnauthorizedList
- type GetVersionsOpts
- type MetaApiService
- func (a *MetaApiService) GetHeaders(ctx context.Context) (map[string]string, *http.Response, error)
- func (a *MetaApiService) GetPing(ctx context.Context) (string, *http.Response, error)
- func (a *MetaApiService) GetStatus(ctx context.Context, localVarOptionals *GetStatusOpts) ([]GetStatusItem, *http.Response, error)
- func (a *MetaApiService) GetVerify(ctx context.Context, localVarOptionals *GetVerifyOpts) (GetVerifyOk, *http.Response, error)
- func (a *MetaApiService) GetVersions(ctx context.Context, localVarOptionals *GetVersionsOpts) ([]string, *http.Response, error)
- type SwaggerApiService
- func (a *SwaggerApiService) GetDevSwagger(ctx context.Context, localVarOptionals *GetDevSwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetDevSwagger_1(ctx context.Context, localVarOptionals *GetDevSwagger_1Opts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetLatestSwagger(ctx context.Context, localVarOptionals *GetLatestSwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetLatestSwagger_2(ctx context.Context, localVarOptionals *GetLatestSwagger_2Opts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetLegacySwagger(ctx context.Context, localVarOptionals *GetLegacySwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetLegacySwagger_3(ctx context.Context, localVarOptionals *GetLegacySwagger_3Opts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetMetaSwagger(ctx context.Context, localVarOptionals *GetMetaSwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV1Swagger(ctx context.Context, localVarOptionals *GetV1SwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV2Swagger(ctx context.Context, localVarOptionals *GetV2SwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV3Swagger(ctx context.Context, localVarOptionals *GetV3SwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV4Swagger(ctx context.Context, localVarOptionals *GetV4SwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV5Swagger(ctx context.Context, localVarOptionals *GetV5SwaggerOpts) (interface{}, *http.Response, error)
- func (a *SwaggerApiService) GetV6Swagger(ctx context.Context, localVarOptionals *GetV6SwaggerOpts) (interface{}, *http.Response, error)
- type WebUIApiService
Constants ¶
This section is empty.
Variables ¶
var ( ContextOAuth2 = contextKey("token") ContextBasicAuth = contextKey("basic") ContextAccessToken = contextKey("accessToken") )
ContextOAuth2 is the context for GoESI authentication. Pass a tokenSource with this key to a context for an ESI API Call
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { // API Services MetaApi *MetaApiService SwaggerApi *SwaggerApiService WebUIApi *WebUIApiService // contains filtered or unexported fields }
APIClient manages communication with the ESI Meta Spec API v0.1 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type GenericSwaggerError ¶
type GenericSwaggerError struct {
// contains filtered or unexported fields
}
GenericSwaggerError Provides access to the body, error and model on returned errors.
func (GenericSwaggerError) Body ¶
func (e GenericSwaggerError) Body() []byte
Body returns the raw bytes of the response
func (GenericSwaggerError) Error ¶
func (e GenericSwaggerError) Error() string
Error returns non-empty string if there was an error.
func (GenericSwaggerError) Model ¶
func (e GenericSwaggerError) Model() interface{}
Model returns the unpacked model of the error
type GetDevSwaggerOpts ¶
type GetDevSwagger_1Opts ¶
type GetLatestSwaggerOpts ¶
type GetLatestSwagger_2Opts ¶
type GetLegacySwaggerOpts ¶
type GetLegacySwagger_3Opts ¶
type GetMetaSwaggerOpts ¶
type GetStatusItem ¶
type GetStatusItem struct { Endpoint string `json:"endpoint,omitempty"` /* ESI Endpoint cluster advertising this route */ Method string `json:"method,omitempty"` /* Swagger defined method */ Route string `json:"route,omitempty"` /* Swagger defined route, not including version prefix */ Status string `json:"status,omitempty"` /* Vague route status. Green is good, yellow is degraded, meaning slow or potentially dropping requests. Red means most requests are not succeeding and/or are very slow (5s+) on average. */ Tags []string `json:"tags,omitempty"` /* Swagger tags applicable to this route */ }
Per route status
func (GetStatusItem) MarshalEasyJSON ¶
func (v GetStatusItem) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStatusItem) MarshalJSON ¶
func (v GetStatusItem) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStatusItem) UnmarshalEasyJSON ¶
func (v *GetStatusItem) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStatusItem) UnmarshalJSON ¶
func (v *GetStatusItem) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStatusItemList ¶
type GetStatusItemList []GetStatusItem
A list of GetStatusItem.
func (GetStatusItemList) MarshalEasyJSON ¶
func (v GetStatusItemList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStatusItemList) MarshalJSON ¶
func (v GetStatusItemList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStatusItemList) UnmarshalEasyJSON ¶
func (v *GetStatusItemList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStatusItemList) UnmarshalJSON ¶
func (v *GetStatusItemList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStatusNotFound ¶
type GetStatusNotFound struct {
Error_ string `json:"error,omitempty"` /* Unsupported version */
}
Unsupported version
func (GetStatusNotFound) MarshalEasyJSON ¶
func (v GetStatusNotFound) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStatusNotFound) MarshalJSON ¶
func (v GetStatusNotFound) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStatusNotFound) UnmarshalEasyJSON ¶
func (v *GetStatusNotFound) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStatusNotFound) UnmarshalJSON ¶
func (v *GetStatusNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStatusNotFoundList ¶
type GetStatusNotFoundList []GetStatusNotFound
A list of GetStatusNotFound.
func (GetStatusNotFoundList) MarshalEasyJSON ¶
func (v GetStatusNotFoundList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStatusNotFoundList) MarshalJSON ¶
func (v GetStatusNotFoundList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStatusNotFoundList) UnmarshalEasyJSON ¶
func (v *GetStatusNotFoundList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStatusNotFoundList) UnmarshalJSON ¶
func (v *GetStatusNotFoundList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStatusOpts ¶
type GetV1SwaggerOpts ¶
type GetV2SwaggerOpts ¶
type GetV3SwaggerOpts ¶
type GetV4SwaggerOpts ¶
type GetV5SwaggerOpts ¶
type GetV6SwaggerOpts ¶
type GetVerifyError ¶
type GetVerifyError struct { Error_ string `json:"error,omitempty"` /* Generic error returned by SSO */ ErrorDescription string `json:"error_description,omitempty"` /* Detailed error description from SSO */ }
SSO /verify JSON
func (GetVerifyError) MarshalEasyJSON ¶
func (v GetVerifyError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyError) MarshalJSON ¶
func (v GetVerifyError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyError) UnmarshalEasyJSON ¶
func (v *GetVerifyError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyError) UnmarshalJSON ¶
func (v *GetVerifyError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyErrorList ¶
type GetVerifyErrorList []GetVerifyError
A list of GetVerifyError.
func (GetVerifyErrorList) MarshalEasyJSON ¶
func (v GetVerifyErrorList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyErrorList) MarshalJSON ¶
func (v GetVerifyErrorList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyErrorList) UnmarshalEasyJSON ¶
func (v *GetVerifyErrorList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyErrorList) UnmarshalJSON ¶
func (v *GetVerifyErrorList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyNotFound ¶
type GetVerifyNotFound struct {
Error_ string `json:"error,omitempty"` /* Unsupported datasource */
}
Unsupported datasource
func (GetVerifyNotFound) MarshalEasyJSON ¶
func (v GetVerifyNotFound) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyNotFound) MarshalJSON ¶
func (v GetVerifyNotFound) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyNotFound) UnmarshalEasyJSON ¶
func (v *GetVerifyNotFound) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyNotFound) UnmarshalJSON ¶
func (v *GetVerifyNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyNotFoundList ¶
type GetVerifyNotFoundList []GetVerifyNotFound
A list of GetVerifyNotFound.
func (GetVerifyNotFoundList) MarshalEasyJSON ¶
func (v GetVerifyNotFoundList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyNotFoundList) MarshalJSON ¶
func (v GetVerifyNotFoundList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyNotFoundList) UnmarshalEasyJSON ¶
func (v *GetVerifyNotFoundList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyNotFoundList) UnmarshalJSON ¶
func (v *GetVerifyNotFoundList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyOk ¶
type GetVerifyOk struct { CharacterID int32 `json:"CharacterID,omitempty"` /* Token owner's character ID */ CharacterName string `json:"CharacterName,omitempty"` /* Token owner's character name */ CharacterOwnerHash string `json:"CharacterOwnerHash,omitempty"` /* Hash of the character's owner. If the character is sold or otherwise transferred, this will change */ ExpiresOn string `json:"ExpiresOn,omitempty"` /* Expiry time of the token (not RFC3339) */ IntellectualProperty string `json:"IntellectualProperty,omitempty"` /* The IP which generated the token */ Scopes string `json:"Scopes,omitempty"` /* Space separated list of scopes the token is valid for */ TokenType string `json:"TokenType,omitempty"` /* Type of access token */ }
SSO /verify JSON
func (GetVerifyOk) MarshalEasyJSON ¶
func (v GetVerifyOk) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyOk) MarshalJSON ¶
func (v GetVerifyOk) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyOk) UnmarshalEasyJSON ¶
func (v *GetVerifyOk) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyOk) UnmarshalJSON ¶
func (v *GetVerifyOk) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyOkList ¶
type GetVerifyOkList []GetVerifyOk
A list of GetVerifyOk.
func (GetVerifyOkList) MarshalEasyJSON ¶
func (v GetVerifyOkList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyOkList) MarshalJSON ¶
func (v GetVerifyOkList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyOkList) UnmarshalEasyJSON ¶
func (v *GetVerifyOkList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyOkList) UnmarshalJSON ¶
func (v *GetVerifyOkList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyOpts ¶
type GetVerifyUnauthorized ¶
type GetVerifyUnauthorized struct {
}Authorization not provided
func (GetVerifyUnauthorized) MarshalEasyJSON ¶
func (v GetVerifyUnauthorized) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyUnauthorized) MarshalJSON ¶
func (v GetVerifyUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyUnauthorized) UnmarshalEasyJSON ¶
func (v *GetVerifyUnauthorized) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyUnauthorized) UnmarshalJSON ¶
func (v *GetVerifyUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVerifyUnauthorizedList ¶
type GetVerifyUnauthorizedList []GetVerifyUnauthorized
A list of GetVerifyUnauthorized.
func (GetVerifyUnauthorizedList) MarshalEasyJSON ¶
func (v GetVerifyUnauthorizedList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetVerifyUnauthorizedList) MarshalJSON ¶
func (v GetVerifyUnauthorizedList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetVerifyUnauthorizedList) UnmarshalEasyJSON ¶
func (v *GetVerifyUnauthorizedList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetVerifyUnauthorizedList) UnmarshalJSON ¶
func (v *GetVerifyUnauthorizedList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetVersionsOpts ¶
type MetaApiService ¶
type MetaApiService service
func (*MetaApiService) GetHeaders ¶
MetaApiService Debug request headers Echo the request headers for debugging purposes. Note that the 'Connection' header and any 'X-' headers are not included
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return map[string]string
func (*MetaApiService) GetPing ¶
MetaApiService Ping route Ping the ESI routers
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return string
func (*MetaApiService) GetStatus ¶
func (a *MetaApiService) GetStatus(ctx context.Context, localVarOptionals *GetStatusOpts) ([]GetStatusItem, *http.Response, error)
func (*MetaApiService) GetVerify ¶
func (a *MetaApiService) GetVerify(ctx context.Context, localVarOptionals *GetVerifyOpts) (GetVerifyOk, *http.Response, error)
func (*MetaApiService) GetVersions ¶
func (a *MetaApiService) GetVersions(ctx context.Context, localVarOptionals *GetVersionsOpts) ([]string, *http.Response, error)
type SwaggerApiService ¶
type SwaggerApiService service
func (*SwaggerApiService) GetDevSwagger ¶
func (a *SwaggerApiService) GetDevSwagger(ctx context.Context, localVarOptionals *GetDevSwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetDevSwagger_1 ¶
func (a *SwaggerApiService) GetDevSwagger_1(ctx context.Context, localVarOptionals *GetDevSwagger_1Opts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetLatestSwagger ¶
func (a *SwaggerApiService) GetLatestSwagger(ctx context.Context, localVarOptionals *GetLatestSwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetLatestSwagger_2 ¶
func (a *SwaggerApiService) GetLatestSwagger_2(ctx context.Context, localVarOptionals *GetLatestSwagger_2Opts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetLegacySwagger ¶
func (a *SwaggerApiService) GetLegacySwagger(ctx context.Context, localVarOptionals *GetLegacySwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetLegacySwagger_3 ¶
func (a *SwaggerApiService) GetLegacySwagger_3(ctx context.Context, localVarOptionals *GetLegacySwagger_3Opts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetMetaSwagger ¶
func (a *SwaggerApiService) GetMetaSwagger(ctx context.Context, localVarOptionals *GetMetaSwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV1Swagger ¶
func (a *SwaggerApiService) GetV1Swagger(ctx context.Context, localVarOptionals *GetV1SwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV2Swagger ¶
func (a *SwaggerApiService) GetV2Swagger(ctx context.Context, localVarOptionals *GetV2SwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV3Swagger ¶
func (a *SwaggerApiService) GetV3Swagger(ctx context.Context, localVarOptionals *GetV3SwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV4Swagger ¶
func (a *SwaggerApiService) GetV4Swagger(ctx context.Context, localVarOptionals *GetV4SwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV5Swagger ¶
func (a *SwaggerApiService) GetV5Swagger(ctx context.Context, localVarOptionals *GetV5SwaggerOpts) (interface{}, *http.Response, error)
func (*SwaggerApiService) GetV6Swagger ¶
func (a *SwaggerApiService) GetV6Swagger(ctx context.Context, localVarOptionals *GetV6SwaggerOpts) (interface{}, *http.Response, error)
type WebUIApiService ¶
type WebUIApiService service
func (*WebUIApiService) GetDiffVersionAVersionB ¶
func (a *WebUIApiService) GetDiffVersionAVersionB(ctx context.Context, versionA string, versionB string, localVarOptionals *GetDiffVersionAVersionBOpts) (string, *http.Response, error)
Source Files ¶
- api_meta.go
- api_swagger.go
- api_web_ui.go
- client.go
- configuration.go
- model_get_status_item.go
- model_get_status_item_easyjson.go
- model_get_status_not_found.go
- model_get_status_not_found_easyjson.go
- model_get_verify_error.go
- model_get_verify_error_easyjson.go
- model_get_verify_not_found.go
- model_get_verify_not_found_easyjson.go
- model_get_verify_ok.go
- model_get_verify_ok_easyjson.go
- model_get_verify_unauthorized.go
- model_get_verify_unauthorized_easyjson.go
- response.go