Documentation
¶
Index ¶
- type Client
- type GetChampionInfoBadGateway
- type GetChampionInfoBadRequest
- type GetChampionInfoForbidden
- type GetChampionInfoGatewayTimeout
- type GetChampionInfoInternalServerError
- type GetChampionInfoMethodNotAllowed
- type GetChampionInfoNotFound
- type GetChampionInfoOK
- type GetChampionInfoParams
- func NewGetChampionInfoParams() *GetChampionInfoParams
- func NewGetChampionInfoParamsWithContext(ctx context.Context) *GetChampionInfoParams
- func NewGetChampionInfoParamsWithHTTPClient(client *http.Client) *GetChampionInfoParams
- func NewGetChampionInfoParamsWithTimeout(timeout time.Duration) *GetChampionInfoParams
- func (o *GetChampionInfoParams) SetContext(ctx context.Context)
- func (o *GetChampionInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetChampionInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetChampionInfoParams) WithContext(ctx context.Context) *GetChampionInfoParams
- func (o *GetChampionInfoParams) WithHTTPClient(client *http.Client) *GetChampionInfoParams
- func (o *GetChampionInfoParams) WithTimeout(timeout time.Duration) *GetChampionInfoParams
- func (o *GetChampionInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChampionInfoReader
- type GetChampionInfoServiceUnavailable
- type GetChampionInfoTooManyRequests
- type GetChampionInfoUnauthorized
- type GetChampionInfoUnsupportedMediaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for champion API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new champion API client.
func (*Client) GetChampionInfo ¶
func (a *Client) GetChampionInfo(params *GetChampionInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetChampionInfoOK, error)
GetChampionInfo returns champion rotations including free to play and low level free to play rotations
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetChampionInfoBadGateway ¶
GetChampionInfoBadGateway handles this case with default header values.
Bad gateway
func NewGetChampionInfoBadGateway ¶
func NewGetChampionInfoBadGateway() *GetChampionInfoBadGateway
NewGetChampionInfoBadGateway creates a GetChampionInfoBadGateway with default headers values
func (*GetChampionInfoBadGateway) Error ¶
func (o *GetChampionInfoBadGateway) Error() string
func (*GetChampionInfoBadGateway) GetPayload ¶
func (o *GetChampionInfoBadGateway) GetPayload() *models.APIError
type GetChampionInfoBadRequest ¶
GetChampionInfoBadRequest handles this case with default header values.
Bad request
func NewGetChampionInfoBadRequest ¶
func NewGetChampionInfoBadRequest() *GetChampionInfoBadRequest
NewGetChampionInfoBadRequest creates a GetChampionInfoBadRequest with default headers values
func (*GetChampionInfoBadRequest) Error ¶
func (o *GetChampionInfoBadRequest) Error() string
func (*GetChampionInfoBadRequest) GetPayload ¶
func (o *GetChampionInfoBadRequest) GetPayload() *models.APIError
type GetChampionInfoForbidden ¶
GetChampionInfoForbidden handles this case with default header values.
Forbidden
func NewGetChampionInfoForbidden ¶
func NewGetChampionInfoForbidden() *GetChampionInfoForbidden
NewGetChampionInfoForbidden creates a GetChampionInfoForbidden with default headers values
func (*GetChampionInfoForbidden) Error ¶
func (o *GetChampionInfoForbidden) Error() string
func (*GetChampionInfoForbidden) GetPayload ¶
func (o *GetChampionInfoForbidden) GetPayload() *models.APIError
type GetChampionInfoGatewayTimeout ¶
GetChampionInfoGatewayTimeout handles this case with default header values.
Gateway timeout
func NewGetChampionInfoGatewayTimeout ¶
func NewGetChampionInfoGatewayTimeout() *GetChampionInfoGatewayTimeout
NewGetChampionInfoGatewayTimeout creates a GetChampionInfoGatewayTimeout with default headers values
func (*GetChampionInfoGatewayTimeout) Error ¶
func (o *GetChampionInfoGatewayTimeout) Error() string
func (*GetChampionInfoGatewayTimeout) GetPayload ¶
func (o *GetChampionInfoGatewayTimeout) GetPayload() *models.APIError
type GetChampionInfoInternalServerError ¶
GetChampionInfoInternalServerError handles this case with default header values.
Internal server error
func NewGetChampionInfoInternalServerError ¶
func NewGetChampionInfoInternalServerError() *GetChampionInfoInternalServerError
NewGetChampionInfoInternalServerError creates a GetChampionInfoInternalServerError with default headers values
func (*GetChampionInfoInternalServerError) Error ¶
func (o *GetChampionInfoInternalServerError) Error() string
func (*GetChampionInfoInternalServerError) GetPayload ¶
func (o *GetChampionInfoInternalServerError) GetPayload() *models.APIError
type GetChampionInfoMethodNotAllowed ¶
GetChampionInfoMethodNotAllowed handles this case with default header values.
Method not allowed
func NewGetChampionInfoMethodNotAllowed ¶
func NewGetChampionInfoMethodNotAllowed() *GetChampionInfoMethodNotAllowed
NewGetChampionInfoMethodNotAllowed creates a GetChampionInfoMethodNotAllowed with default headers values
func (*GetChampionInfoMethodNotAllowed) Error ¶
func (o *GetChampionInfoMethodNotAllowed) Error() string
func (*GetChampionInfoMethodNotAllowed) GetPayload ¶
func (o *GetChampionInfoMethodNotAllowed) GetPayload() *models.APIError
type GetChampionInfoNotFound ¶
GetChampionInfoNotFound handles this case with default header values.
Not found
func NewGetChampionInfoNotFound ¶
func NewGetChampionInfoNotFound() *GetChampionInfoNotFound
NewGetChampionInfoNotFound creates a GetChampionInfoNotFound with default headers values
func (*GetChampionInfoNotFound) Error ¶
func (o *GetChampionInfoNotFound) Error() string
func (*GetChampionInfoNotFound) GetPayload ¶
func (o *GetChampionInfoNotFound) GetPayload() *models.APIError
type GetChampionInfoOK ¶
type GetChampionInfoOK struct {
Payload *models.ChampionInfo
}
GetChampionInfoOK handles this case with default header values.
OK
func NewGetChampionInfoOK ¶
func NewGetChampionInfoOK() *GetChampionInfoOK
NewGetChampionInfoOK creates a GetChampionInfoOK with default headers values
func (*GetChampionInfoOK) Error ¶
func (o *GetChampionInfoOK) Error() string
func (*GetChampionInfoOK) GetPayload ¶
func (o *GetChampionInfoOK) GetPayload() *models.ChampionInfo
type GetChampionInfoParams ¶
type GetChampionInfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetChampionInfoParams contains all the parameters to send to the API endpoint for the get champion info operation typically these are written to a http.Request
func NewGetChampionInfoParams ¶
func NewGetChampionInfoParams() *GetChampionInfoParams
NewGetChampionInfoParams creates a new GetChampionInfoParams object with the default values initialized.
func NewGetChampionInfoParamsWithContext ¶
func NewGetChampionInfoParamsWithContext(ctx context.Context) *GetChampionInfoParams
NewGetChampionInfoParamsWithContext creates a new GetChampionInfoParams object with the default values initialized, and the ability to set a context for a request
func NewGetChampionInfoParamsWithHTTPClient ¶
func NewGetChampionInfoParamsWithHTTPClient(client *http.Client) *GetChampionInfoParams
NewGetChampionInfoParamsWithHTTPClient creates a new GetChampionInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetChampionInfoParamsWithTimeout ¶
func NewGetChampionInfoParamsWithTimeout(timeout time.Duration) *GetChampionInfoParams
NewGetChampionInfoParamsWithTimeout creates a new GetChampionInfoParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetChampionInfoParams) SetContext ¶
func (o *GetChampionInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get champion info params
func (*GetChampionInfoParams) SetHTTPClient ¶
func (o *GetChampionInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get champion info params
func (*GetChampionInfoParams) SetTimeout ¶
func (o *GetChampionInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get champion info params
func (*GetChampionInfoParams) WithContext ¶
func (o *GetChampionInfoParams) WithContext(ctx context.Context) *GetChampionInfoParams
WithContext adds the context to the get champion info params
func (*GetChampionInfoParams) WithHTTPClient ¶
func (o *GetChampionInfoParams) WithHTTPClient(client *http.Client) *GetChampionInfoParams
WithHTTPClient adds the HTTPClient to the get champion info params
func (*GetChampionInfoParams) WithTimeout ¶
func (o *GetChampionInfoParams) WithTimeout(timeout time.Duration) *GetChampionInfoParams
WithTimeout adds the timeout to the get champion info params
func (*GetChampionInfoParams) WriteToRequest ¶
func (o *GetChampionInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetChampionInfoReader ¶
type GetChampionInfoReader struct {
// contains filtered or unexported fields
}
GetChampionInfoReader is a Reader for the GetChampionInfo structure.
func (*GetChampionInfoReader) ReadResponse ¶
func (o *GetChampionInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetChampionInfoServiceUnavailable ¶
type GetChampionInfoServiceUnavailable struct {
}GetChampionInfoServiceUnavailable handles this case with default header values.
Service Unavailable
func NewGetChampionInfoServiceUnavailable ¶
func NewGetChampionInfoServiceUnavailable() *GetChampionInfoServiceUnavailable
NewGetChampionInfoServiceUnavailable creates a GetChampionInfoServiceUnavailable with default headers values
func (*GetChampionInfoServiceUnavailable) Error ¶
func (o *GetChampionInfoServiceUnavailable) Error() string
func (*GetChampionInfoServiceUnavailable) GetPayload ¶
func (o *GetChampionInfoServiceUnavailable) GetPayload() *models.APIError
type GetChampionInfoTooManyRequests ¶
GetChampionInfoTooManyRequests handles this case with default header values.
Rate limit Exceeded
func NewGetChampionInfoTooManyRequests ¶
func NewGetChampionInfoTooManyRequests() *GetChampionInfoTooManyRequests
NewGetChampionInfoTooManyRequests creates a GetChampionInfoTooManyRequests with default headers values
func (*GetChampionInfoTooManyRequests) Error ¶
func (o *GetChampionInfoTooManyRequests) Error() string
func (*GetChampionInfoTooManyRequests) GetPayload ¶
func (o *GetChampionInfoTooManyRequests) GetPayload() *models.APIError
type GetChampionInfoUnauthorized ¶
type GetChampionInfoUnauthorized struct {
}GetChampionInfoUnauthorized handles this case with default header values.
Unauthorized
func NewGetChampionInfoUnauthorized ¶
func NewGetChampionInfoUnauthorized() *GetChampionInfoUnauthorized
NewGetChampionInfoUnauthorized creates a GetChampionInfoUnauthorized with default headers values
func (*GetChampionInfoUnauthorized) Error ¶
func (o *GetChampionInfoUnauthorized) Error() string
func (*GetChampionInfoUnauthorized) GetPayload ¶
func (o *GetChampionInfoUnauthorized) GetPayload() *models.APIError
type GetChampionInfoUnsupportedMediaType ¶
GetChampionInfoUnsupportedMediaType handles this case with default header values.
Unsopported media type
func NewGetChampionInfoUnsupportedMediaType ¶
func NewGetChampionInfoUnsupportedMediaType() *GetChampionInfoUnsupportedMediaType
NewGetChampionInfoUnsupportedMediaType creates a GetChampionInfoUnsupportedMediaType with default headers values
func (*GetChampionInfoUnsupportedMediaType) Error ¶
func (o *GetChampionInfoUnsupportedMediaType) Error() string
func (*GetChampionInfoUnsupportedMediaType) GetPayload ¶
func (o *GetChampionInfoUnsupportedMediaType) GetPayload() *models.APIError