Documentation
¶
Index ¶
- type Client
- func (a *Client) GetWars(params *GetWarsParams, opts ...ClientOption) (*GetWarsOK, error)
- func (a *Client) GetWarsWarID(params *GetWarsWarIDParams, opts ...ClientOption) (*GetWarsWarIDOK, error)
- func (a *Client) GetWarsWarIDKillmails(params *GetWarsWarIDKillmailsParams, opts ...ClientOption) (*GetWarsWarIDKillmailsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetWarsBadRequest
- type GetWarsEnhanceYourCalm
- type GetWarsGatewayTimeout
- type GetWarsInternalServerError
- type GetWarsNotModified
- type GetWarsOK
- type GetWarsParams
- func (o *GetWarsParams) SetContext(ctx context.Context)
- func (o *GetWarsParams) SetDatasource(datasource *string)
- func (o *GetWarsParams) SetDefaults()
- func (o *GetWarsParams) SetHTTPClient(client *http.Client)
- func (o *GetWarsParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetWarsParams) SetMaxWarID(maxWarID *int32)
- func (o *GetWarsParams) SetTimeout(timeout time.Duration)
- func (o *GetWarsParams) WithContext(ctx context.Context) *GetWarsParams
- func (o *GetWarsParams) WithDatasource(datasource *string) *GetWarsParams
- func (o *GetWarsParams) WithDefaults() *GetWarsParams
- func (o *GetWarsParams) WithHTTPClient(client *http.Client) *GetWarsParams
- func (o *GetWarsParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsParams
- func (o *GetWarsParams) WithMaxWarID(maxWarID *int32) *GetWarsParams
- func (o *GetWarsParams) WithTimeout(timeout time.Duration) *GetWarsParams
- func (o *GetWarsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWarsReader
- type GetWarsServiceUnavailable
- type GetWarsWarIDBadRequest
- type GetWarsWarIDEnhanceYourCalm
- type GetWarsWarIDGatewayTimeout
- type GetWarsWarIDInternalServerError
- type GetWarsWarIDKillmailsBadRequest
- type GetWarsWarIDKillmailsEnhanceYourCalm
- type GetWarsWarIDKillmailsGatewayTimeout
- type GetWarsWarIDKillmailsInternalServerError
- type GetWarsWarIDKillmailsNotModified
- type GetWarsWarIDKillmailsOK
- type GetWarsWarIDKillmailsOKBodyItems0
- func (o *GetWarsWarIDKillmailsOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDKillmailsOKBodyItems0) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDKillmailsOKBodyItems0) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDKillmailsOKBodyItems0) Validate(formats strfmt.Registry) error
- type GetWarsWarIDKillmailsParams
- func NewGetWarsWarIDKillmailsParams() *GetWarsWarIDKillmailsParams
- func NewGetWarsWarIDKillmailsParamsWithContext(ctx context.Context) *GetWarsWarIDKillmailsParams
- func NewGetWarsWarIDKillmailsParamsWithHTTPClient(client *http.Client) *GetWarsWarIDKillmailsParams
- func NewGetWarsWarIDKillmailsParamsWithTimeout(timeout time.Duration) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) SetContext(ctx context.Context)
- func (o *GetWarsWarIDKillmailsParams) SetDatasource(datasource *string)
- func (o *GetWarsWarIDKillmailsParams) SetDefaults()
- func (o *GetWarsWarIDKillmailsParams) SetHTTPClient(client *http.Client)
- func (o *GetWarsWarIDKillmailsParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetWarsWarIDKillmailsParams) SetPage(page *int32)
- func (o *GetWarsWarIDKillmailsParams) SetTimeout(timeout time.Duration)
- func (o *GetWarsWarIDKillmailsParams) SetWarID(warID int32)
- func (o *GetWarsWarIDKillmailsParams) WithContext(ctx context.Context) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithDatasource(datasource *string) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithDefaults() *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithHTTPClient(client *http.Client) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithPage(page *int32) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithTimeout(timeout time.Duration) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WithWarID(warID int32) *GetWarsWarIDKillmailsParams
- func (o *GetWarsWarIDKillmailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWarsWarIDKillmailsReader
- type GetWarsWarIDKillmailsServiceUnavailable
- type GetWarsWarIDKillmailsUnprocessableEntity
- type GetWarsWarIDKillmailsUnprocessableEntityBody
- func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) Validate(formats strfmt.Registry) error
- type GetWarsWarIDNotModified
- type GetWarsWarIDOK
- type GetWarsWarIDOKBody
- type GetWarsWarIDOKBodyAggressor
- func (o *GetWarsWarIDOKBodyAggressor) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDOKBodyAggressor) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDOKBodyAggressor) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDOKBodyAggressor) Validate(formats strfmt.Registry) error
- type GetWarsWarIDOKBodyAlliesItems0
- func (o *GetWarsWarIDOKBodyAlliesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDOKBodyAlliesItems0) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDOKBodyAlliesItems0) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDOKBodyAlliesItems0) Validate(formats strfmt.Registry) error
- type GetWarsWarIDOKBodyDefender
- func (o *GetWarsWarIDOKBodyDefender) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDOKBodyDefender) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDOKBodyDefender) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDOKBodyDefender) Validate(formats strfmt.Registry) error
- type GetWarsWarIDParams
- func (o *GetWarsWarIDParams) SetContext(ctx context.Context)
- func (o *GetWarsWarIDParams) SetDatasource(datasource *string)
- func (o *GetWarsWarIDParams) SetDefaults()
- func (o *GetWarsWarIDParams) SetHTTPClient(client *http.Client)
- func (o *GetWarsWarIDParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetWarsWarIDParams) SetTimeout(timeout time.Duration)
- func (o *GetWarsWarIDParams) SetWarID(warID int32)
- func (o *GetWarsWarIDParams) WithContext(ctx context.Context) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithDatasource(datasource *string) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithDefaults() *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithHTTPClient(client *http.Client) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithTimeout(timeout time.Duration) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WithWarID(warID int32) *GetWarsWarIDParams
- func (o *GetWarsWarIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWarsWarIDReader
- type GetWarsWarIDServiceUnavailable
- type GetWarsWarIDUnprocessableEntity
- type GetWarsWarIDUnprocessableEntityBody
- func (o *GetWarsWarIDUnprocessableEntityBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWarsWarIDUnprocessableEntityBody) MarshalBinary() ([]byte, error)
- func (o *GetWarsWarIDUnprocessableEntityBody) UnmarshalBinary(b []byte) error
- func (o *GetWarsWarIDUnprocessableEntityBody) Validate(formats strfmt.Registry) error
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 wars API
func (*Client) GetWars ¶
func (a *Client) GetWars(params *GetWarsParams, opts ...ClientOption) (*GetWarsOK, error)
GetWars lists wars Return a list of wars
---
This route is cached for up to 3600 seconds
func (*Client) GetWarsWarID ¶
func (a *Client) GetWarsWarID(params *GetWarsWarIDParams, opts ...ClientOption) (*GetWarsWarIDOK, error)
GetWarsWarID gets war information Return details about a war
---
This route is cached for up to 3600 seconds
func (*Client) GetWarsWarIDKillmails ¶
func (a *Client) GetWarsWarIDKillmails(params *GetWarsWarIDKillmailsParams, opts ...ClientOption) (*GetWarsWarIDKillmailsOK, error)
GetWarsWarIDKillmails lists kills for a war Return a list of kills related to a war
---
This route is cached for up to 3600 seconds
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.4.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetWars(params *GetWarsParams, opts ...ClientOption) (*GetWarsOK, error) GetWarsWarID(params *GetWarsWarIDParams, opts ...ClientOption) (*GetWarsWarIDOK, error) GetWarsWarIDKillmails(params *GetWarsWarIDKillmailsParams, opts ...ClientOption) (*GetWarsWarIDKillmailsOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new wars API client.
type GetWarsBadRequest ¶
type GetWarsBadRequest struct {
Payload *models.BadRequest
}
GetWarsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetWarsBadRequest ¶
func NewGetWarsBadRequest() *GetWarsBadRequest
NewGetWarsBadRequest creates a GetWarsBadRequest with default headers values
func (*GetWarsBadRequest) Error ¶
func (o *GetWarsBadRequest) Error() string
func (*GetWarsBadRequest) GetPayload ¶
func (o *GetWarsBadRequest) GetPayload() *models.BadRequest
type GetWarsEnhanceYourCalm ¶
type GetWarsEnhanceYourCalm struct {
Payload *models.ErrorLimited
}
GetWarsEnhanceYourCalm describes a response with status code 420, with default header values.
Error limited
func NewGetWarsEnhanceYourCalm ¶
func NewGetWarsEnhanceYourCalm() *GetWarsEnhanceYourCalm
NewGetWarsEnhanceYourCalm creates a GetWarsEnhanceYourCalm with default headers values
func (*GetWarsEnhanceYourCalm) Error ¶
func (o *GetWarsEnhanceYourCalm) Error() string
func (*GetWarsEnhanceYourCalm) GetPayload ¶
func (o *GetWarsEnhanceYourCalm) GetPayload() *models.ErrorLimited
type GetWarsGatewayTimeout ¶
type GetWarsGatewayTimeout struct {
Payload *models.GatewayTimeout
}
GetWarsGatewayTimeout describes a response with status code 504, with default header values.
Gateway timeout
func NewGetWarsGatewayTimeout ¶
func NewGetWarsGatewayTimeout() *GetWarsGatewayTimeout
NewGetWarsGatewayTimeout creates a GetWarsGatewayTimeout with default headers values
func (*GetWarsGatewayTimeout) Error ¶
func (o *GetWarsGatewayTimeout) Error() string
func (*GetWarsGatewayTimeout) GetPayload ¶
func (o *GetWarsGatewayTimeout) GetPayload() *models.GatewayTimeout
type GetWarsInternalServerError ¶
type GetWarsInternalServerError struct {
Payload *models.InternalServerError
}
GetWarsInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetWarsInternalServerError ¶
func NewGetWarsInternalServerError() *GetWarsInternalServerError
NewGetWarsInternalServerError creates a GetWarsInternalServerError with default headers values
func (*GetWarsInternalServerError) Error ¶
func (o *GetWarsInternalServerError) Error() string
func (*GetWarsInternalServerError) GetPayload ¶
func (o *GetWarsInternalServerError) GetPayload() *models.InternalServerError
type GetWarsNotModified ¶
type GetWarsNotModified struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string }
GetWarsNotModified describes a response with status code 304, with default header values.
Not modified
func NewGetWarsNotModified ¶
func NewGetWarsNotModified() *GetWarsNotModified
NewGetWarsNotModified creates a GetWarsNotModified with default headers values
func (*GetWarsNotModified) Error ¶
func (o *GetWarsNotModified) Error() string
type GetWarsOK ¶
type GetWarsOK struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string Payload []int32 }
GetWarsOK describes a response with status code 200, with default header values.
A list of war IDs, in descending order by war_id
func NewGetWarsOK ¶
func NewGetWarsOK() *GetWarsOK
NewGetWarsOK creates a GetWarsOK with default headers values
func (*GetWarsOK) GetPayload ¶
type GetWarsParams ¶
type GetWarsParams struct { /* IfNoneMatch. ETag from a previous request. A 304 will be returned if this matches the current ETag */ IfNoneMatch *string /* Datasource. The server name you would like data from Default: "tranquility" */ Datasource *string /* MaxWarID. Only return wars with ID smaller than this Format: int32 */ MaxWarID *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWarsParams contains all the parameters to send to the API endpoint
for the get wars operation. Typically these are written to a http.Request.
func NewGetWarsParams ¶
func NewGetWarsParams() *GetWarsParams
NewGetWarsParams creates a new GetWarsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWarsParamsWithContext ¶
func NewGetWarsParamsWithContext(ctx context.Context) *GetWarsParams
NewGetWarsParamsWithContext creates a new GetWarsParams object with the ability to set a context for a request.
func NewGetWarsParamsWithHTTPClient ¶
func NewGetWarsParamsWithHTTPClient(client *http.Client) *GetWarsParams
NewGetWarsParamsWithHTTPClient creates a new GetWarsParams object with the ability to set a custom HTTPClient for a request.
func NewGetWarsParamsWithTimeout ¶
func NewGetWarsParamsWithTimeout(timeout time.Duration) *GetWarsParams
NewGetWarsParamsWithTimeout creates a new GetWarsParams object with the ability to set a timeout on a request.
func (*GetWarsParams) SetContext ¶
func (o *GetWarsParams) SetContext(ctx context.Context)
SetContext adds the context to the get wars params
func (*GetWarsParams) SetDatasource ¶
func (o *GetWarsParams) SetDatasource(datasource *string)
SetDatasource adds the datasource to the get wars params
func (*GetWarsParams) SetDefaults ¶ added in v0.3.0
func (o *GetWarsParams) SetDefaults()
SetDefaults hydrates default values in the get wars params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsParams) SetHTTPClient ¶
func (o *GetWarsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get wars params
func (*GetWarsParams) SetIfNoneMatch ¶
func (o *GetWarsParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get wars params
func (*GetWarsParams) SetMaxWarID ¶
func (o *GetWarsParams) SetMaxWarID(maxWarID *int32)
SetMaxWarID adds the maxWarId to the get wars params
func (*GetWarsParams) SetTimeout ¶
func (o *GetWarsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get wars params
func (*GetWarsParams) WithContext ¶
func (o *GetWarsParams) WithContext(ctx context.Context) *GetWarsParams
WithContext adds the context to the get wars params
func (*GetWarsParams) WithDatasource ¶
func (o *GetWarsParams) WithDatasource(datasource *string) *GetWarsParams
WithDatasource adds the datasource to the get wars params
func (*GetWarsParams) WithDefaults ¶ added in v0.3.0
func (o *GetWarsParams) WithDefaults() *GetWarsParams
WithDefaults hydrates default values in the get wars params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsParams) WithHTTPClient ¶
func (o *GetWarsParams) WithHTTPClient(client *http.Client) *GetWarsParams
WithHTTPClient adds the HTTPClient to the get wars params
func (*GetWarsParams) WithIfNoneMatch ¶
func (o *GetWarsParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsParams
WithIfNoneMatch adds the ifNoneMatch to the get wars params
func (*GetWarsParams) WithMaxWarID ¶
func (o *GetWarsParams) WithMaxWarID(maxWarID *int32) *GetWarsParams
WithMaxWarID adds the maxWarID to the get wars params
func (*GetWarsParams) WithTimeout ¶
func (o *GetWarsParams) WithTimeout(timeout time.Duration) *GetWarsParams
WithTimeout adds the timeout to the get wars params
func (*GetWarsParams) WriteToRequest ¶
func (o *GetWarsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWarsReader ¶
type GetWarsReader struct {
// contains filtered or unexported fields
}
GetWarsReader is a Reader for the GetWars structure.
func (*GetWarsReader) ReadResponse ¶
func (o *GetWarsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWarsServiceUnavailable ¶
type GetWarsServiceUnavailable struct {
}GetWarsServiceUnavailable describes a response with status code 503, with default header values.
Service unavailable
func NewGetWarsServiceUnavailable ¶
func NewGetWarsServiceUnavailable() *GetWarsServiceUnavailable
NewGetWarsServiceUnavailable creates a GetWarsServiceUnavailable with default headers values
func (*GetWarsServiceUnavailable) Error ¶
func (o *GetWarsServiceUnavailable) Error() string
func (*GetWarsServiceUnavailable) GetPayload ¶
func (o *GetWarsServiceUnavailable) GetPayload() *models.ServiceUnavailable
type GetWarsWarIDBadRequest ¶
type GetWarsWarIDBadRequest struct {
Payload *models.BadRequest
}
GetWarsWarIDBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetWarsWarIDBadRequest ¶
func NewGetWarsWarIDBadRequest() *GetWarsWarIDBadRequest
NewGetWarsWarIDBadRequest creates a GetWarsWarIDBadRequest with default headers values
func (*GetWarsWarIDBadRequest) Error ¶
func (o *GetWarsWarIDBadRequest) Error() string
func (*GetWarsWarIDBadRequest) GetPayload ¶
func (o *GetWarsWarIDBadRequest) GetPayload() *models.BadRequest
type GetWarsWarIDEnhanceYourCalm ¶
type GetWarsWarIDEnhanceYourCalm struct {
Payload *models.ErrorLimited
}
GetWarsWarIDEnhanceYourCalm describes a response with status code 420, with default header values.
Error limited
func NewGetWarsWarIDEnhanceYourCalm ¶
func NewGetWarsWarIDEnhanceYourCalm() *GetWarsWarIDEnhanceYourCalm
NewGetWarsWarIDEnhanceYourCalm creates a GetWarsWarIDEnhanceYourCalm with default headers values
func (*GetWarsWarIDEnhanceYourCalm) Error ¶
func (o *GetWarsWarIDEnhanceYourCalm) Error() string
func (*GetWarsWarIDEnhanceYourCalm) GetPayload ¶
func (o *GetWarsWarIDEnhanceYourCalm) GetPayload() *models.ErrorLimited
type GetWarsWarIDGatewayTimeout ¶
type GetWarsWarIDGatewayTimeout struct {
Payload *models.GatewayTimeout
}
GetWarsWarIDGatewayTimeout describes a response with status code 504, with default header values.
Gateway timeout
func NewGetWarsWarIDGatewayTimeout ¶
func NewGetWarsWarIDGatewayTimeout() *GetWarsWarIDGatewayTimeout
NewGetWarsWarIDGatewayTimeout creates a GetWarsWarIDGatewayTimeout with default headers values
func (*GetWarsWarIDGatewayTimeout) Error ¶
func (o *GetWarsWarIDGatewayTimeout) Error() string
func (*GetWarsWarIDGatewayTimeout) GetPayload ¶
func (o *GetWarsWarIDGatewayTimeout) GetPayload() *models.GatewayTimeout
type GetWarsWarIDInternalServerError ¶
type GetWarsWarIDInternalServerError struct {
Payload *models.InternalServerError
}
GetWarsWarIDInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetWarsWarIDInternalServerError ¶
func NewGetWarsWarIDInternalServerError() *GetWarsWarIDInternalServerError
NewGetWarsWarIDInternalServerError creates a GetWarsWarIDInternalServerError with default headers values
func (*GetWarsWarIDInternalServerError) Error ¶
func (o *GetWarsWarIDInternalServerError) Error() string
func (*GetWarsWarIDInternalServerError) GetPayload ¶
func (o *GetWarsWarIDInternalServerError) GetPayload() *models.InternalServerError
type GetWarsWarIDKillmailsBadRequest ¶
type GetWarsWarIDKillmailsBadRequest struct {
Payload *models.BadRequest
}
GetWarsWarIDKillmailsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetWarsWarIDKillmailsBadRequest ¶
func NewGetWarsWarIDKillmailsBadRequest() *GetWarsWarIDKillmailsBadRequest
NewGetWarsWarIDKillmailsBadRequest creates a GetWarsWarIDKillmailsBadRequest with default headers values
func (*GetWarsWarIDKillmailsBadRequest) Error ¶
func (o *GetWarsWarIDKillmailsBadRequest) Error() string
func (*GetWarsWarIDKillmailsBadRequest) GetPayload ¶
func (o *GetWarsWarIDKillmailsBadRequest) GetPayload() *models.BadRequest
type GetWarsWarIDKillmailsEnhanceYourCalm ¶
type GetWarsWarIDKillmailsEnhanceYourCalm struct {
Payload *models.ErrorLimited
}
GetWarsWarIDKillmailsEnhanceYourCalm describes a response with status code 420, with default header values.
Error limited
func NewGetWarsWarIDKillmailsEnhanceYourCalm ¶
func NewGetWarsWarIDKillmailsEnhanceYourCalm() *GetWarsWarIDKillmailsEnhanceYourCalm
NewGetWarsWarIDKillmailsEnhanceYourCalm creates a GetWarsWarIDKillmailsEnhanceYourCalm with default headers values
func (*GetWarsWarIDKillmailsEnhanceYourCalm) Error ¶
func (o *GetWarsWarIDKillmailsEnhanceYourCalm) Error() string
func (*GetWarsWarIDKillmailsEnhanceYourCalm) GetPayload ¶
func (o *GetWarsWarIDKillmailsEnhanceYourCalm) GetPayload() *models.ErrorLimited
type GetWarsWarIDKillmailsGatewayTimeout ¶
type GetWarsWarIDKillmailsGatewayTimeout struct {
Payload *models.GatewayTimeout
}
GetWarsWarIDKillmailsGatewayTimeout describes a response with status code 504, with default header values.
Gateway timeout
func NewGetWarsWarIDKillmailsGatewayTimeout ¶
func NewGetWarsWarIDKillmailsGatewayTimeout() *GetWarsWarIDKillmailsGatewayTimeout
NewGetWarsWarIDKillmailsGatewayTimeout creates a GetWarsWarIDKillmailsGatewayTimeout with default headers values
func (*GetWarsWarIDKillmailsGatewayTimeout) Error ¶
func (o *GetWarsWarIDKillmailsGatewayTimeout) Error() string
func (*GetWarsWarIDKillmailsGatewayTimeout) GetPayload ¶
func (o *GetWarsWarIDKillmailsGatewayTimeout) GetPayload() *models.GatewayTimeout
type GetWarsWarIDKillmailsInternalServerError ¶
type GetWarsWarIDKillmailsInternalServerError struct {
Payload *models.InternalServerError
}
GetWarsWarIDKillmailsInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetWarsWarIDKillmailsInternalServerError ¶
func NewGetWarsWarIDKillmailsInternalServerError() *GetWarsWarIDKillmailsInternalServerError
NewGetWarsWarIDKillmailsInternalServerError creates a GetWarsWarIDKillmailsInternalServerError with default headers values
func (*GetWarsWarIDKillmailsInternalServerError) Error ¶
func (o *GetWarsWarIDKillmailsInternalServerError) Error() string
func (*GetWarsWarIDKillmailsInternalServerError) GetPayload ¶
func (o *GetWarsWarIDKillmailsInternalServerError) GetPayload() *models.InternalServerError
type GetWarsWarIDKillmailsNotModified ¶
type GetWarsWarIDKillmailsNotModified struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string }
GetWarsWarIDKillmailsNotModified describes a response with status code 304, with default header values.
Not modified
func NewGetWarsWarIDKillmailsNotModified ¶
func NewGetWarsWarIDKillmailsNotModified() *GetWarsWarIDKillmailsNotModified
NewGetWarsWarIDKillmailsNotModified creates a GetWarsWarIDKillmailsNotModified with default headers values
func (*GetWarsWarIDKillmailsNotModified) Error ¶
func (o *GetWarsWarIDKillmailsNotModified) Error() string
type GetWarsWarIDKillmailsOK ¶
type GetWarsWarIDKillmailsOK struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string /* Maximum page number Format: int32 Default: 1 */ XPages int32 Payload []*GetWarsWarIDKillmailsOKBodyItems0 }
GetWarsWarIDKillmailsOK describes a response with status code 200, with default header values.
A list of killmail IDs and hashes
func NewGetWarsWarIDKillmailsOK ¶
func NewGetWarsWarIDKillmailsOK() *GetWarsWarIDKillmailsOK
NewGetWarsWarIDKillmailsOK creates a GetWarsWarIDKillmailsOK with default headers values
func (*GetWarsWarIDKillmailsOK) Error ¶
func (o *GetWarsWarIDKillmailsOK) Error() string
func (*GetWarsWarIDKillmailsOK) GetPayload ¶
func (o *GetWarsWarIDKillmailsOK) GetPayload() []*GetWarsWarIDKillmailsOKBodyItems0
type GetWarsWarIDKillmailsOKBodyItems0 ¶
type GetWarsWarIDKillmailsOKBodyItems0 struct { // get_wars_war_id_killmails_killmail_hash // // A hash of this killmail // Required: true KillmailHash *string `json:"killmail_hash"` // get_wars_war_id_killmails_killmail_id // // ID of this killmail // Required: true KillmailID *int32 `json:"killmail_id"` }
GetWarsWarIDKillmailsOKBodyItems0 get_wars_war_id_killmails_200_ok // // 200 ok object swagger:model GetWarsWarIDKillmailsOKBodyItems0
func (*GetWarsWarIDKillmailsOKBodyItems0) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDKillmailsOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID killmails o k body items0 based on context it is used
func (*GetWarsWarIDKillmailsOKBodyItems0) MarshalBinary ¶
func (o *GetWarsWarIDKillmailsOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDKillmailsOKBodyItems0) UnmarshalBinary ¶
func (o *GetWarsWarIDKillmailsOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDKillmailsParams ¶
type GetWarsWarIDKillmailsParams struct { /* IfNoneMatch. ETag from a previous request. A 304 will be returned if this matches the current ETag */ IfNoneMatch *string /* Datasource. The server name you would like data from Default: "tranquility" */ Datasource *string /* Page. Which page of results to return Format: int32 Default: 1 */ Page *int32 /* WarID. A valid war ID Format: int32 */ WarID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWarsWarIDKillmailsParams contains all the parameters to send to the API endpoint
for the get wars war id killmails operation. Typically these are written to a http.Request.
func NewGetWarsWarIDKillmailsParams ¶
func NewGetWarsWarIDKillmailsParams() *GetWarsWarIDKillmailsParams
NewGetWarsWarIDKillmailsParams creates a new GetWarsWarIDKillmailsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWarsWarIDKillmailsParamsWithContext ¶
func NewGetWarsWarIDKillmailsParamsWithContext(ctx context.Context) *GetWarsWarIDKillmailsParams
NewGetWarsWarIDKillmailsParamsWithContext creates a new GetWarsWarIDKillmailsParams object with the ability to set a context for a request.
func NewGetWarsWarIDKillmailsParamsWithHTTPClient ¶
func NewGetWarsWarIDKillmailsParamsWithHTTPClient(client *http.Client) *GetWarsWarIDKillmailsParams
NewGetWarsWarIDKillmailsParamsWithHTTPClient creates a new GetWarsWarIDKillmailsParams object with the ability to set a custom HTTPClient for a request.
func NewGetWarsWarIDKillmailsParamsWithTimeout ¶
func NewGetWarsWarIDKillmailsParamsWithTimeout(timeout time.Duration) *GetWarsWarIDKillmailsParams
NewGetWarsWarIDKillmailsParamsWithTimeout creates a new GetWarsWarIDKillmailsParams object with the ability to set a timeout on a request.
func (*GetWarsWarIDKillmailsParams) SetContext ¶
func (o *GetWarsWarIDKillmailsParams) SetContext(ctx context.Context)
SetContext adds the context to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetDatasource ¶
func (o *GetWarsWarIDKillmailsParams) SetDatasource(datasource *string)
SetDatasource adds the datasource to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetDefaults ¶ added in v0.3.0
func (o *GetWarsWarIDKillmailsParams) SetDefaults()
SetDefaults hydrates default values in the get wars war id killmails params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsWarIDKillmailsParams) SetHTTPClient ¶
func (o *GetWarsWarIDKillmailsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetIfNoneMatch ¶
func (o *GetWarsWarIDKillmailsParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetPage ¶
func (o *GetWarsWarIDKillmailsParams) SetPage(page *int32)
SetPage adds the page to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetTimeout ¶
func (o *GetWarsWarIDKillmailsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) SetWarID ¶
func (o *GetWarsWarIDKillmailsParams) SetWarID(warID int32)
SetWarID adds the warId to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithContext ¶
func (o *GetWarsWarIDKillmailsParams) WithContext(ctx context.Context) *GetWarsWarIDKillmailsParams
WithContext adds the context to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithDatasource ¶
func (o *GetWarsWarIDKillmailsParams) WithDatasource(datasource *string) *GetWarsWarIDKillmailsParams
WithDatasource adds the datasource to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithDefaults ¶ added in v0.3.0
func (o *GetWarsWarIDKillmailsParams) WithDefaults() *GetWarsWarIDKillmailsParams
WithDefaults hydrates default values in the get wars war id killmails params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsWarIDKillmailsParams) WithHTTPClient ¶
func (o *GetWarsWarIDKillmailsParams) WithHTTPClient(client *http.Client) *GetWarsWarIDKillmailsParams
WithHTTPClient adds the HTTPClient to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithIfNoneMatch ¶
func (o *GetWarsWarIDKillmailsParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsWarIDKillmailsParams
WithIfNoneMatch adds the ifNoneMatch to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithPage ¶
func (o *GetWarsWarIDKillmailsParams) WithPage(page *int32) *GetWarsWarIDKillmailsParams
WithPage adds the page to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithTimeout ¶
func (o *GetWarsWarIDKillmailsParams) WithTimeout(timeout time.Duration) *GetWarsWarIDKillmailsParams
WithTimeout adds the timeout to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WithWarID ¶
func (o *GetWarsWarIDKillmailsParams) WithWarID(warID int32) *GetWarsWarIDKillmailsParams
WithWarID adds the warID to the get wars war id killmails params
func (*GetWarsWarIDKillmailsParams) WriteToRequest ¶
func (o *GetWarsWarIDKillmailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWarsWarIDKillmailsReader ¶
type GetWarsWarIDKillmailsReader struct {
// contains filtered or unexported fields
}
GetWarsWarIDKillmailsReader is a Reader for the GetWarsWarIDKillmails structure.
func (*GetWarsWarIDKillmailsReader) ReadResponse ¶
func (o *GetWarsWarIDKillmailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWarsWarIDKillmailsServiceUnavailable ¶
type GetWarsWarIDKillmailsServiceUnavailable struct {
}GetWarsWarIDKillmailsServiceUnavailable describes a response with status code 503, with default header values.
Service unavailable
func NewGetWarsWarIDKillmailsServiceUnavailable ¶
func NewGetWarsWarIDKillmailsServiceUnavailable() *GetWarsWarIDKillmailsServiceUnavailable
NewGetWarsWarIDKillmailsServiceUnavailable creates a GetWarsWarIDKillmailsServiceUnavailable with default headers values
func (*GetWarsWarIDKillmailsServiceUnavailable) Error ¶
func (o *GetWarsWarIDKillmailsServiceUnavailable) Error() string
func (*GetWarsWarIDKillmailsServiceUnavailable) GetPayload ¶
func (o *GetWarsWarIDKillmailsServiceUnavailable) GetPayload() *models.ServiceUnavailable
type GetWarsWarIDKillmailsUnprocessableEntity ¶
type GetWarsWarIDKillmailsUnprocessableEntity struct {
Payload *GetWarsWarIDKillmailsUnprocessableEntityBody
}
GetWarsWarIDKillmailsUnprocessableEntity describes a response with status code 422, with default header values.
War not found
func NewGetWarsWarIDKillmailsUnprocessableEntity ¶
func NewGetWarsWarIDKillmailsUnprocessableEntity() *GetWarsWarIDKillmailsUnprocessableEntity
NewGetWarsWarIDKillmailsUnprocessableEntity creates a GetWarsWarIDKillmailsUnprocessableEntity with default headers values
func (*GetWarsWarIDKillmailsUnprocessableEntity) Error ¶
func (o *GetWarsWarIDKillmailsUnprocessableEntity) Error() string
func (*GetWarsWarIDKillmailsUnprocessableEntity) GetPayload ¶
func (o *GetWarsWarIDKillmailsUnprocessableEntity) GetPayload() *GetWarsWarIDKillmailsUnprocessableEntityBody
type GetWarsWarIDKillmailsUnprocessableEntityBody ¶
type GetWarsWarIDKillmailsUnprocessableEntityBody struct { // get_wars_war_id_killmails_422_unprocessable_entity // // Unprocessable entity message Error string `json:"error,omitempty"` }
GetWarsWarIDKillmailsUnprocessableEntityBody get_wars_war_id_killmails_unprocessable_entity // // Unprocessable entity swagger:model GetWarsWarIDKillmailsUnprocessableEntityBody
func (*GetWarsWarIDKillmailsUnprocessableEntityBody) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID killmails unprocessable entity body based on context it is used
func (*GetWarsWarIDKillmailsUnprocessableEntityBody) MarshalBinary ¶
func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDKillmailsUnprocessableEntityBody) UnmarshalBinary ¶
func (o *GetWarsWarIDKillmailsUnprocessableEntityBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDNotModified ¶
type GetWarsWarIDNotModified struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string }
GetWarsWarIDNotModified describes a response with status code 304, with default header values.
Not modified
func NewGetWarsWarIDNotModified ¶
func NewGetWarsWarIDNotModified() *GetWarsWarIDNotModified
NewGetWarsWarIDNotModified creates a GetWarsWarIDNotModified with default headers values
func (*GetWarsWarIDNotModified) Error ¶
func (o *GetWarsWarIDNotModified) Error() string
type GetWarsWarIDOK ¶
type GetWarsWarIDOK struct { /* The caching mechanism used */ CacheControl string /* RFC7232 compliant entity tag */ ETag string /* RFC7231 formatted datetime string */ Expires string /* RFC7231 formatted datetime string */ LastModified string Payload *GetWarsWarIDOKBody }
GetWarsWarIDOK describes a response with status code 200, with default header values.
Details about a war
func NewGetWarsWarIDOK ¶
func NewGetWarsWarIDOK() *GetWarsWarIDOK
NewGetWarsWarIDOK creates a GetWarsWarIDOK with default headers values
func (*GetWarsWarIDOK) Error ¶
func (o *GetWarsWarIDOK) Error() string
func (*GetWarsWarIDOK) GetPayload ¶
func (o *GetWarsWarIDOK) GetPayload() *GetWarsWarIDOKBody
type GetWarsWarIDOKBody ¶
type GetWarsWarIDOKBody struct { // aggressor // Required: true Aggressor *GetWarsWarIDOKBodyAggressor `json:"aggressor"` // get_wars_war_id_allies // // allied corporations or alliances, each object contains either corporation_id or alliance_id // Max Items: 10000 Allies []*GetWarsWarIDOKBodyAlliesItems0 `json:"allies"` // get_wars_war_id_declared // // Time that the war was declared // Required: true // Format: date-time Declared *strfmt.DateTime `json:"declared"` // defender // Required: true Defender *GetWarsWarIDOKBodyDefender `json:"defender"` // get_wars_war_id_finished // // Time the war ended and shooting was no longer allowed // Format: date-time Finished strfmt.DateTime `json:"finished,omitempty"` // get_wars_war_id_id // // ID of the specified war // Required: true ID *int32 `json:"id"` // get_wars_war_id_mutual // // Was the war declared mutual by both parties // Required: true Mutual *bool `json:"mutual"` // get_wars_war_id_open_for_allies // // Is the war currently open for allies or not // Required: true OpenForAllies *bool `json:"open_for_allies"` // get_wars_war_id_retracted // // Time the war was retracted but both sides could still shoot each other // Format: date-time Retracted strfmt.DateTime `json:"retracted,omitempty"` // get_wars_war_id_started // // Time when the war started and both sides could shoot each other // Format: date-time Started strfmt.DateTime `json:"started,omitempty"` }
GetWarsWarIDOKBody get_wars_war_id_ok // // 200 ok object swagger:model GetWarsWarIDOKBody
func (*GetWarsWarIDOKBody) ContextValidate ¶ added in v0.3.0
ContextValidate validate this get wars war ID o k body based on the context it is used
func (*GetWarsWarIDOKBody) MarshalBinary ¶
func (o *GetWarsWarIDOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDOKBody) UnmarshalBinary ¶
func (o *GetWarsWarIDOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDOKBodyAggressor ¶
type GetWarsWarIDOKBodyAggressor struct { // get_wars_war_id_alliance_id // // Alliance ID if and only if the aggressor is an alliance AllianceID int32 `json:"alliance_id,omitempty"` // get_wars_war_id_corporation_id // // Corporation ID if and only if the aggressor is a corporation CorporationID int32 `json:"corporation_id,omitempty"` // get_wars_war_id_isk_destroyed // // ISK value of ships the aggressor has destroyed // Required: true IskDestroyed *float32 `json:"isk_destroyed"` // get_wars_war_id_ships_killed // // The number of ships the aggressor has killed // Required: true ShipsKilled *int32 `json:"ships_killed"` }
GetWarsWarIDOKBodyAggressor get_wars_war_id_aggressor // // The aggressor corporation or alliance that declared this war, only contains either corporation_id or alliance_id swagger:model GetWarsWarIDOKBodyAggressor
func (*GetWarsWarIDOKBodyAggressor) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDOKBodyAggressor) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID o k body aggressor based on context it is used
func (*GetWarsWarIDOKBodyAggressor) MarshalBinary ¶
func (o *GetWarsWarIDOKBodyAggressor) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDOKBodyAggressor) UnmarshalBinary ¶
func (o *GetWarsWarIDOKBodyAggressor) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDOKBodyAlliesItems0 ¶ added in v0.3.0
type GetWarsWarIDOKBodyAlliesItems0 struct { // get_wars_war_id_ally_alliance_id // // Alliance ID if and only if this ally is an alliance AllianceID int32 `json:"alliance_id,omitempty"` // get_wars_war_id_ally_corporation_id // // Corporation ID if and only if this ally is a corporation CorporationID int32 `json:"corporation_id,omitempty"` }
GetWarsWarIDOKBodyAlliesItems0 get_wars_war_id_ally // // ally object swagger:model GetWarsWarIDOKBodyAlliesItems0
func (*GetWarsWarIDOKBodyAlliesItems0) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDOKBodyAlliesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID o k body allies items0 based on context it is used
func (*GetWarsWarIDOKBodyAlliesItems0) MarshalBinary ¶ added in v0.3.0
func (o *GetWarsWarIDOKBodyAlliesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDOKBodyAlliesItems0) UnmarshalBinary ¶ added in v0.3.0
func (o *GetWarsWarIDOKBodyAlliesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDOKBodyDefender ¶
type GetWarsWarIDOKBodyDefender struct { // get_wars_war_id_defender_alliance_id // // Alliance ID if and only if the defender is an alliance AllianceID int32 `json:"alliance_id,omitempty"` // get_wars_war_id_defender_corporation_id // // Corporation ID if and only if the defender is a corporation CorporationID int32 `json:"corporation_id,omitempty"` // get_wars_war_id_defender_isk_destroyed // // ISK value of ships the defender has killed // Required: true IskDestroyed *float32 `json:"isk_destroyed"` // get_wars_war_id_defender_ships_killed // // The number of ships the defender has killed // Required: true ShipsKilled *int32 `json:"ships_killed"` }
GetWarsWarIDOKBodyDefender get_wars_war_id_defender // // The defending corporation or alliance that declared this war, only contains either corporation_id or alliance_id swagger:model GetWarsWarIDOKBodyDefender
func (*GetWarsWarIDOKBodyDefender) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDOKBodyDefender) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID o k body defender based on context it is used
func (*GetWarsWarIDOKBodyDefender) MarshalBinary ¶
func (o *GetWarsWarIDOKBodyDefender) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDOKBodyDefender) UnmarshalBinary ¶
func (o *GetWarsWarIDOKBodyDefender) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetWarsWarIDParams ¶
type GetWarsWarIDParams struct { /* IfNoneMatch. ETag from a previous request. A 304 will be returned if this matches the current ETag */ IfNoneMatch *string /* Datasource. The server name you would like data from Default: "tranquility" */ Datasource *string /* WarID. ID for a war Format: int32 */ WarID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWarsWarIDParams contains all the parameters to send to the API endpoint
for the get wars war id operation. Typically these are written to a http.Request.
func NewGetWarsWarIDParams ¶
func NewGetWarsWarIDParams() *GetWarsWarIDParams
NewGetWarsWarIDParams creates a new GetWarsWarIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWarsWarIDParamsWithContext ¶
func NewGetWarsWarIDParamsWithContext(ctx context.Context) *GetWarsWarIDParams
NewGetWarsWarIDParamsWithContext creates a new GetWarsWarIDParams object with the ability to set a context for a request.
func NewGetWarsWarIDParamsWithHTTPClient ¶
func NewGetWarsWarIDParamsWithHTTPClient(client *http.Client) *GetWarsWarIDParams
NewGetWarsWarIDParamsWithHTTPClient creates a new GetWarsWarIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetWarsWarIDParamsWithTimeout ¶
func NewGetWarsWarIDParamsWithTimeout(timeout time.Duration) *GetWarsWarIDParams
NewGetWarsWarIDParamsWithTimeout creates a new GetWarsWarIDParams object with the ability to set a timeout on a request.
func (*GetWarsWarIDParams) SetContext ¶
func (o *GetWarsWarIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get wars war id params
func (*GetWarsWarIDParams) SetDatasource ¶
func (o *GetWarsWarIDParams) SetDatasource(datasource *string)
SetDatasource adds the datasource to the get wars war id params
func (*GetWarsWarIDParams) SetDefaults ¶ added in v0.3.0
func (o *GetWarsWarIDParams) SetDefaults()
SetDefaults hydrates default values in the get wars war id params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsWarIDParams) SetHTTPClient ¶
func (o *GetWarsWarIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get wars war id params
func (*GetWarsWarIDParams) SetIfNoneMatch ¶
func (o *GetWarsWarIDParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get wars war id params
func (*GetWarsWarIDParams) SetTimeout ¶
func (o *GetWarsWarIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get wars war id params
func (*GetWarsWarIDParams) SetWarID ¶
func (o *GetWarsWarIDParams) SetWarID(warID int32)
SetWarID adds the warId to the get wars war id params
func (*GetWarsWarIDParams) WithContext ¶
func (o *GetWarsWarIDParams) WithContext(ctx context.Context) *GetWarsWarIDParams
WithContext adds the context to the get wars war id params
func (*GetWarsWarIDParams) WithDatasource ¶
func (o *GetWarsWarIDParams) WithDatasource(datasource *string) *GetWarsWarIDParams
WithDatasource adds the datasource to the get wars war id params
func (*GetWarsWarIDParams) WithDefaults ¶ added in v0.3.0
func (o *GetWarsWarIDParams) WithDefaults() *GetWarsWarIDParams
WithDefaults hydrates default values in the get wars war id params (not the query body).
All values with no default are reset to their zero value.
func (*GetWarsWarIDParams) WithHTTPClient ¶
func (o *GetWarsWarIDParams) WithHTTPClient(client *http.Client) *GetWarsWarIDParams
WithHTTPClient adds the HTTPClient to the get wars war id params
func (*GetWarsWarIDParams) WithIfNoneMatch ¶
func (o *GetWarsWarIDParams) WithIfNoneMatch(ifNoneMatch *string) *GetWarsWarIDParams
WithIfNoneMatch adds the ifNoneMatch to the get wars war id params
func (*GetWarsWarIDParams) WithTimeout ¶
func (o *GetWarsWarIDParams) WithTimeout(timeout time.Duration) *GetWarsWarIDParams
WithTimeout adds the timeout to the get wars war id params
func (*GetWarsWarIDParams) WithWarID ¶
func (o *GetWarsWarIDParams) WithWarID(warID int32) *GetWarsWarIDParams
WithWarID adds the warID to the get wars war id params
func (*GetWarsWarIDParams) WriteToRequest ¶
func (o *GetWarsWarIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWarsWarIDReader ¶
type GetWarsWarIDReader struct {
// contains filtered or unexported fields
}
GetWarsWarIDReader is a Reader for the GetWarsWarID structure.
func (*GetWarsWarIDReader) ReadResponse ¶
func (o *GetWarsWarIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWarsWarIDServiceUnavailable ¶
type GetWarsWarIDServiceUnavailable struct {
}GetWarsWarIDServiceUnavailable describes a response with status code 503, with default header values.
Service unavailable
func NewGetWarsWarIDServiceUnavailable ¶
func NewGetWarsWarIDServiceUnavailable() *GetWarsWarIDServiceUnavailable
NewGetWarsWarIDServiceUnavailable creates a GetWarsWarIDServiceUnavailable with default headers values
func (*GetWarsWarIDServiceUnavailable) Error ¶
func (o *GetWarsWarIDServiceUnavailable) Error() string
func (*GetWarsWarIDServiceUnavailable) GetPayload ¶
func (o *GetWarsWarIDServiceUnavailable) GetPayload() *models.ServiceUnavailable
type GetWarsWarIDUnprocessableEntity ¶
type GetWarsWarIDUnprocessableEntity struct {
Payload *GetWarsWarIDUnprocessableEntityBody
}
GetWarsWarIDUnprocessableEntity describes a response with status code 422, with default header values.
War not found
func NewGetWarsWarIDUnprocessableEntity ¶
func NewGetWarsWarIDUnprocessableEntity() *GetWarsWarIDUnprocessableEntity
NewGetWarsWarIDUnprocessableEntity creates a GetWarsWarIDUnprocessableEntity with default headers values
func (*GetWarsWarIDUnprocessableEntity) Error ¶
func (o *GetWarsWarIDUnprocessableEntity) Error() string
func (*GetWarsWarIDUnprocessableEntity) GetPayload ¶
func (o *GetWarsWarIDUnprocessableEntity) GetPayload() *GetWarsWarIDUnprocessableEntityBody
type GetWarsWarIDUnprocessableEntityBody ¶
type GetWarsWarIDUnprocessableEntityBody struct { // get_wars_war_id_422_unprocessable_entity // // Unprocessable entity message Error string `json:"error,omitempty"` }
GetWarsWarIDUnprocessableEntityBody get_wars_war_id_unprocessable_entity // // Unprocessable entity swagger:model GetWarsWarIDUnprocessableEntityBody
func (*GetWarsWarIDUnprocessableEntityBody) ContextValidate ¶ added in v0.3.0
func (o *GetWarsWarIDUnprocessableEntityBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get wars war ID unprocessable entity body based on context it is used
func (*GetWarsWarIDUnprocessableEntityBody) MarshalBinary ¶
func (o *GetWarsWarIDUnprocessableEntityBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetWarsWarIDUnprocessableEntityBody) UnmarshalBinary ¶
func (o *GetWarsWarIDUnprocessableEntityBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation