champion

package
v0.0.0-...-cbc503f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type GetChampionInfoBadGateway struct {
	Payload *models.APIError
}

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

type GetChampionInfoBadRequest struct {
	Payload *models.APIError
}

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

type GetChampionInfoForbidden struct {
	Payload *models.APIError
}

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

type GetChampionInfoGatewayTimeout struct {
	Payload *models.APIError
}

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 (*GetChampionInfoGatewayTimeout) GetPayload

type GetChampionInfoInternalServerError

type GetChampionInfoInternalServerError struct {
	Payload *models.APIError
}

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 (*GetChampionInfoInternalServerError) GetPayload

type GetChampionInfoMethodNotAllowed

type GetChampionInfoMethodNotAllowed struct {
	Payload *models.APIError
}

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 (*GetChampionInfoMethodNotAllowed) GetPayload

type GetChampionInfoNotFound

type GetChampionInfoNotFound struct {
	Payload *models.APIError
}

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

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 {
	Payload *models.APIError
}

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 (*GetChampionInfoServiceUnavailable) GetPayload

type GetChampionInfoTooManyRequests

type GetChampionInfoTooManyRequests struct {
	Payload *models.APIError
}

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 (*GetChampionInfoTooManyRequests) GetPayload

type GetChampionInfoUnauthorized

type GetChampionInfoUnauthorized struct {
	Payload *models.APIError
}

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 (*GetChampionInfoUnauthorized) GetPayload

func (o *GetChampionInfoUnauthorized) GetPayload() *models.APIError

type GetChampionInfoUnsupportedMediaType

type GetChampionInfoUnsupportedMediaType struct {
	Payload *models.APIError
}

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 (*GetChampionInfoUnsupportedMediaType) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL