wars

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 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 AlliesItems0

type AlliesItems0 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"`
}

AlliesItems0 get_wars_war_id_ally // // ally object swagger:model AlliesItems0

func (*AlliesItems0) MarshalBinary

func (o *AlliesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlliesItems0) UnmarshalBinary

func (o *AlliesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlliesItems0) Validate

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

Validate validates this allies items0

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 *esimodels.BadRequest
}

GetWarsBadRequest handles this case 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() *esimodels.BadRequest

type GetWarsEnhanceYourCalm

type GetWarsEnhanceYourCalm struct {
	Payload *esimodels.ErrorLimited
}

GetWarsEnhanceYourCalm handles this case 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

type GetWarsGatewayTimeout

type GetWarsGatewayTimeout struct {
	Payload *esimodels.GatewayTimeout
}

GetWarsGatewayTimeout handles this case 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

type GetWarsInternalServerError

type GetWarsInternalServerError struct {
	Payload *esimodels.InternalServerError
}

GetWarsInternalServerError handles this case 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 handles this case 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 handles this case 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

	*/
	Datasource *string
	/*MaxWarID
	  Only return wars with ID smaller than this

	*/
	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 values initialized.

func NewGetWarsParamsWithContext

func NewGetWarsParamsWithContext(ctx context.Context) *GetWarsParams

NewGetWarsParamsWithContext creates a new GetWarsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *esimodels.ServiceUnavailable
}

GetWarsServiceUnavailable handles this case 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 *esimodels.BadRequest
}

GetWarsWarIDBadRequest handles this case 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() *esimodels.BadRequest

type GetWarsWarIDEnhanceYourCalm

type GetWarsWarIDEnhanceYourCalm struct {
	Payload *esimodels.ErrorLimited
}

GetWarsWarIDEnhanceYourCalm handles this case 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 *esimodels.GatewayTimeout
}

GetWarsWarIDGatewayTimeout handles this case 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 *esimodels.InternalServerError
}

GetWarsWarIDInternalServerError handles this case 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 *esimodels.BadRequest
}

GetWarsWarIDKillmailsBadRequest handles this case 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 *esimodels.ErrorLimited
}

GetWarsWarIDKillmailsEnhanceYourCalm handles this case 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 *esimodels.GatewayTimeout
}

GetWarsWarIDKillmailsGatewayTimeout handles this case 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 *esimodels.InternalServerError
}

GetWarsWarIDKillmailsInternalServerError handles this case 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 handles this case 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
	 */
	XPages int32

	Payload []*GetWarsWarIDKillmailsOKBodyItems0
}

GetWarsWarIDKillmailsOK handles this case 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) 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

	*/
	Datasource *string
	/*Page
	  Which page of results to return

	*/
	Page *int32
	/*WarID
	  A valid war ID

	*/
	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 values initialized.

func NewGetWarsWarIDKillmailsParamsWithContext

func NewGetWarsWarIDKillmailsParamsWithContext(ctx context.Context) *GetWarsWarIDKillmailsParams

NewGetWarsWarIDKillmailsParamsWithContext creates a new GetWarsWarIDKillmailsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *esimodels.ServiceUnavailable
}

GetWarsWarIDKillmailsServiceUnavailable handles this case 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 handles this case 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) 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 handles this case 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 handles this case 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 []*AlliesItems0 `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) 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) 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 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) 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

	*/
	Datasource *string
	/*WarID
	  ID for a war

	*/
	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 values initialized.

func NewGetWarsWarIDParamsWithContext

func NewGetWarsWarIDParamsWithContext(ctx context.Context) *GetWarsWarIDParams

NewGetWarsWarIDParamsWithContext creates a new GetWarsWarIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *esimodels.ServiceUnavailable
}

GetWarsWarIDServiceUnavailable handles this case 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 handles this case 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) 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