wars

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 13 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 wars API

func (*Client) GetWars

func (a *Client) GetWars(params *GetWarsParams) (*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) (*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) (*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 ClientService

type ClientService interface {
	GetWars(params *GetWarsParams) (*GetWarsOK, error)

	GetWarsWarID(params *GetWarsWarIDParams) (*GetWarsWarIDOK, error)

	GetWarsWarIDKillmails(params *GetWarsWarIDKillmailsParams) (*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 (*GetWarsInternalServerError) GetPayload

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) Error

func (o *GetWarsOK) Error() string

func (*GetWarsOK) GetPayload

func (o *GetWarsOK) GetPayload() []int32

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

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

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

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

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

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

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

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

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

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

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

func (*GetWarsWarIDKillmailsOKBodyItems0) Validate

Validate validates this get wars war ID killmails o k body items0

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

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

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

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

WithPage adds the page to the get wars war id killmails params

func (*GetWarsWarIDKillmailsParams) WithTimeout

WithTimeout adds the timeout to the get wars war id killmails params

func (*GetWarsWarIDKillmailsParams) WithWarID

WithWarID adds the warID to the get wars war id killmails params

func (*GetWarsWarIDKillmailsParams) WriteToRequest

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 {
	Payload *models.ServiceUnavailable
}
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 (*GetWarsWarIDKillmailsServiceUnavailable) GetPayload

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

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

ContextValidate validates this get wars war ID killmails unprocessable entity body based on context it is used

func (*GetWarsWarIDKillmailsUnprocessableEntityBody) MarshalBinary

MarshalBinary interface implementation

func (*GetWarsWarIDKillmailsUnprocessableEntityBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetWarsWarIDKillmailsUnprocessableEntityBody) Validate

Validate validates this get wars war ID killmails unprocessable entity body

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

func (o *GetWarsWarIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*GetWarsWarIDOKBody) Validate

func (o *GetWarsWarIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wars war ID o k body

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

func (*GetWarsWarIDOKBodyAggressor) Validate

func (o *GetWarsWarIDOKBodyAggressor) Validate(formats strfmt.Registry) error

Validate validates this get wars war ID o k body aggressor

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

func (*GetWarsWarIDOKBodyAlliesItems0) Validate added in v0.3.0

func (o *GetWarsWarIDOKBodyAlliesItems0) Validate(formats strfmt.Registry) error

Validate validates this get wars war ID o k body allies items0

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

func (*GetWarsWarIDOKBodyDefender) Validate

func (o *GetWarsWarIDOKBodyDefender) Validate(formats strfmt.Registry) error

Validate validates this get wars war ID o k body defender

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

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 {
	Payload *models.ServiceUnavailable
}
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 (*GetWarsWarIDServiceUnavailable) GetPayload

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

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

func (*GetWarsWarIDUnprocessableEntityBody) Validate

Validate validates this get wars war ID unprocessable entity body

Jump to

Keyboard shortcuts

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