routes

package
v0.0.0-...-b9aa217 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 11 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 routes API

func (*Client) GetRouteOriginDestination

func (a *Client) GetRouteOriginDestination(params *GetRouteOriginDestinationParams, opts ...ClientOption) (*GetRouteOriginDestinationOK, error)
GetRouteOriginDestination gets route

Get the systems between origin and destination

---

This route is cached for up to 86400 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 {
	GetRouteOriginDestination(params *GetRouteOriginDestinationParams, opts ...ClientOption) (*GetRouteOriginDestinationOK, 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 routes API client.

type GetRouteOriginDestinationBadRequest

type GetRouteOriginDestinationBadRequest struct {
	Payload *models.BadRequest
}

GetRouteOriginDestinationBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetRouteOriginDestinationBadRequest

func NewGetRouteOriginDestinationBadRequest() *GetRouteOriginDestinationBadRequest

NewGetRouteOriginDestinationBadRequest creates a GetRouteOriginDestinationBadRequest with default headers values

func (*GetRouteOriginDestinationBadRequest) Code added in v0.5.29

Code gets the status code for the get route origin destination bad request response

func (*GetRouteOriginDestinationBadRequest) Error

func (*GetRouteOriginDestinationBadRequest) GetPayload

func (*GetRouteOriginDestinationBadRequest) IsClientError added in v0.5.29

func (o *GetRouteOriginDestinationBadRequest) IsClientError() bool

IsClientError returns true when this get route origin destination bad request response has a 4xx status code

func (*GetRouteOriginDestinationBadRequest) IsCode added in v0.5.29

IsCode returns true when this get route origin destination bad request response a status code equal to that given

func (*GetRouteOriginDestinationBadRequest) IsRedirect added in v0.5.29

func (o *GetRouteOriginDestinationBadRequest) IsRedirect() bool

IsRedirect returns true when this get route origin destination bad request response has a 3xx status code

func (*GetRouteOriginDestinationBadRequest) IsServerError added in v0.5.29

func (o *GetRouteOriginDestinationBadRequest) IsServerError() bool

IsServerError returns true when this get route origin destination bad request response has a 5xx status code

func (*GetRouteOriginDestinationBadRequest) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination bad request response has a 2xx status code

func (*GetRouteOriginDestinationBadRequest) String added in v0.5.29

type GetRouteOriginDestinationEnhanceYourCalm

type GetRouteOriginDestinationEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}

GetRouteOriginDestinationEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetRouteOriginDestinationEnhanceYourCalm

func NewGetRouteOriginDestinationEnhanceYourCalm() *GetRouteOriginDestinationEnhanceYourCalm

NewGetRouteOriginDestinationEnhanceYourCalm creates a GetRouteOriginDestinationEnhanceYourCalm with default headers values

func (*GetRouteOriginDestinationEnhanceYourCalm) Code added in v0.5.29

Code gets the status code for the get route origin destination enhance your calm response

func (*GetRouteOriginDestinationEnhanceYourCalm) Error

func (*GetRouteOriginDestinationEnhanceYourCalm) GetPayload

func (*GetRouteOriginDestinationEnhanceYourCalm) IsClientError added in v0.5.29

IsClientError returns true when this get route origin destination enhance your calm response has a 4xx status code

func (*GetRouteOriginDestinationEnhanceYourCalm) IsCode added in v0.5.29

IsCode returns true when this get route origin destination enhance your calm response a status code equal to that given

func (*GetRouteOriginDestinationEnhanceYourCalm) IsRedirect added in v0.5.29

IsRedirect returns true when this get route origin destination enhance your calm response has a 3xx status code

func (*GetRouteOriginDestinationEnhanceYourCalm) IsServerError added in v0.5.29

IsServerError returns true when this get route origin destination enhance your calm response has a 5xx status code

func (*GetRouteOriginDestinationEnhanceYourCalm) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination enhance your calm response has a 2xx status code

func (*GetRouteOriginDestinationEnhanceYourCalm) String added in v0.5.29

type GetRouteOriginDestinationGatewayTimeout

type GetRouteOriginDestinationGatewayTimeout struct {
	Payload *models.GatewayTimeout
}

GetRouteOriginDestinationGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetRouteOriginDestinationGatewayTimeout

func NewGetRouteOriginDestinationGatewayTimeout() *GetRouteOriginDestinationGatewayTimeout

NewGetRouteOriginDestinationGatewayTimeout creates a GetRouteOriginDestinationGatewayTimeout with default headers values

func (*GetRouteOriginDestinationGatewayTimeout) Code added in v0.5.29

Code gets the status code for the get route origin destination gateway timeout response

func (*GetRouteOriginDestinationGatewayTimeout) Error

func (*GetRouteOriginDestinationGatewayTimeout) GetPayload

func (*GetRouteOriginDestinationGatewayTimeout) IsClientError added in v0.5.29

func (o *GetRouteOriginDestinationGatewayTimeout) IsClientError() bool

IsClientError returns true when this get route origin destination gateway timeout response has a 4xx status code

func (*GetRouteOriginDestinationGatewayTimeout) IsCode added in v0.5.29

IsCode returns true when this get route origin destination gateway timeout response a status code equal to that given

func (*GetRouteOriginDestinationGatewayTimeout) IsRedirect added in v0.5.29

IsRedirect returns true when this get route origin destination gateway timeout response has a 3xx status code

func (*GetRouteOriginDestinationGatewayTimeout) IsServerError added in v0.5.29

func (o *GetRouteOriginDestinationGatewayTimeout) IsServerError() bool

IsServerError returns true when this get route origin destination gateway timeout response has a 5xx status code

func (*GetRouteOriginDestinationGatewayTimeout) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination gateway timeout response has a 2xx status code

func (*GetRouteOriginDestinationGatewayTimeout) String added in v0.5.29

type GetRouteOriginDestinationInternalServerError

type GetRouteOriginDestinationInternalServerError struct {
	Payload *models.InternalServerError
}

GetRouteOriginDestinationInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetRouteOriginDestinationInternalServerError

func NewGetRouteOriginDestinationInternalServerError() *GetRouteOriginDestinationInternalServerError

NewGetRouteOriginDestinationInternalServerError creates a GetRouteOriginDestinationInternalServerError with default headers values

func (*GetRouteOriginDestinationInternalServerError) Code added in v0.5.29

Code gets the status code for the get route origin destination internal server error response

func (*GetRouteOriginDestinationInternalServerError) Error

func (*GetRouteOriginDestinationInternalServerError) GetPayload

func (*GetRouteOriginDestinationInternalServerError) IsClientError added in v0.5.29

IsClientError returns true when this get route origin destination internal server error response has a 4xx status code

func (*GetRouteOriginDestinationInternalServerError) IsCode added in v0.5.29

IsCode returns true when this get route origin destination internal server error response a status code equal to that given

func (*GetRouteOriginDestinationInternalServerError) IsRedirect added in v0.5.29

IsRedirect returns true when this get route origin destination internal server error response has a 3xx status code

func (*GetRouteOriginDestinationInternalServerError) IsServerError added in v0.5.29

IsServerError returns true when this get route origin destination internal server error response has a 5xx status code

func (*GetRouteOriginDestinationInternalServerError) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination internal server error response has a 2xx status code

func (*GetRouteOriginDestinationInternalServerError) String added in v0.5.29

type GetRouteOriginDestinationNotFound

type GetRouteOriginDestinationNotFound struct {
	Payload *GetRouteOriginDestinationNotFoundBody
}

GetRouteOriginDestinationNotFound describes a response with status code 404, with default header values.

No route found

func NewGetRouteOriginDestinationNotFound

func NewGetRouteOriginDestinationNotFound() *GetRouteOriginDestinationNotFound

NewGetRouteOriginDestinationNotFound creates a GetRouteOriginDestinationNotFound with default headers values

func (*GetRouteOriginDestinationNotFound) Code added in v0.5.29

Code gets the status code for the get route origin destination not found response

func (*GetRouteOriginDestinationNotFound) Error

func (*GetRouteOriginDestinationNotFound) GetPayload

func (*GetRouteOriginDestinationNotFound) IsClientError added in v0.5.29

func (o *GetRouteOriginDestinationNotFound) IsClientError() bool

IsClientError returns true when this get route origin destination not found response has a 4xx status code

func (*GetRouteOriginDestinationNotFound) IsCode added in v0.5.29

func (o *GetRouteOriginDestinationNotFound) IsCode(code int) bool

IsCode returns true when this get route origin destination not found response a status code equal to that given

func (*GetRouteOriginDestinationNotFound) IsRedirect added in v0.5.29

func (o *GetRouteOriginDestinationNotFound) IsRedirect() bool

IsRedirect returns true when this get route origin destination not found response has a 3xx status code

func (*GetRouteOriginDestinationNotFound) IsServerError added in v0.5.29

func (o *GetRouteOriginDestinationNotFound) IsServerError() bool

IsServerError returns true when this get route origin destination not found response has a 5xx status code

func (*GetRouteOriginDestinationNotFound) IsSuccess added in v0.5.29

func (o *GetRouteOriginDestinationNotFound) IsSuccess() bool

IsSuccess returns true when this get route origin destination not found response has a 2xx status code

func (*GetRouteOriginDestinationNotFound) String added in v0.5.29

type GetRouteOriginDestinationNotFoundBody

type GetRouteOriginDestinationNotFoundBody struct {

	// get_route_origin_destination_404_not_found
	//
	// Not found message
	Error string `json:"error,omitempty"`
}

GetRouteOriginDestinationNotFoundBody get_route_origin_destination_not_found // // Not found swagger:model GetRouteOriginDestinationNotFoundBody

func (*GetRouteOriginDestinationNotFoundBody) ContextValidate added in v0.3.0

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

ContextValidate validates this get route origin destination not found body based on context it is used

func (*GetRouteOriginDestinationNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRouteOriginDestinationNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRouteOriginDestinationNotFoundBody) Validate

Validate validates this get route origin destination not found body

type GetRouteOriginDestinationNotModified

type GetRouteOriginDestinationNotModified 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
}

GetRouteOriginDestinationNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetRouteOriginDestinationNotModified

func NewGetRouteOriginDestinationNotModified() *GetRouteOriginDestinationNotModified

NewGetRouteOriginDestinationNotModified creates a GetRouteOriginDestinationNotModified with default headers values

func (*GetRouteOriginDestinationNotModified) Code added in v0.5.29

Code gets the status code for the get route origin destination not modified response

func (*GetRouteOriginDestinationNotModified) Error

func (*GetRouteOriginDestinationNotModified) IsClientError added in v0.5.29

func (o *GetRouteOriginDestinationNotModified) IsClientError() bool

IsClientError returns true when this get route origin destination not modified response has a 4xx status code

func (*GetRouteOriginDestinationNotModified) IsCode added in v0.5.29

IsCode returns true when this get route origin destination not modified response a status code equal to that given

func (*GetRouteOriginDestinationNotModified) IsRedirect added in v0.5.29

IsRedirect returns true when this get route origin destination not modified response has a 3xx status code

func (*GetRouteOriginDestinationNotModified) IsServerError added in v0.5.29

func (o *GetRouteOriginDestinationNotModified) IsServerError() bool

IsServerError returns true when this get route origin destination not modified response has a 5xx status code

func (*GetRouteOriginDestinationNotModified) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination not modified response has a 2xx status code

func (*GetRouteOriginDestinationNotModified) String added in v0.5.29

type GetRouteOriginDestinationOK

type GetRouteOriginDestinationOK 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
}

GetRouteOriginDestinationOK describes a response with status code 200, with default header values.

Solar systems in route from origin to destination

func NewGetRouteOriginDestinationOK

func NewGetRouteOriginDestinationOK() *GetRouteOriginDestinationOK

NewGetRouteOriginDestinationOK creates a GetRouteOriginDestinationOK with default headers values

func (*GetRouteOriginDestinationOK) Code added in v0.5.29

func (o *GetRouteOriginDestinationOK) Code() int

Code gets the status code for the get route origin destination o k response

func (*GetRouteOriginDestinationOK) Error

func (*GetRouteOriginDestinationOK) GetPayload

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

func (*GetRouteOriginDestinationOK) IsClientError added in v0.5.29

func (o *GetRouteOriginDestinationOK) IsClientError() bool

IsClientError returns true when this get route origin destination o k response has a 4xx status code

func (*GetRouteOriginDestinationOK) IsCode added in v0.5.29

func (o *GetRouteOriginDestinationOK) IsCode(code int) bool

IsCode returns true when this get route origin destination o k response a status code equal to that given

func (*GetRouteOriginDestinationOK) IsRedirect added in v0.5.29

func (o *GetRouteOriginDestinationOK) IsRedirect() bool

IsRedirect returns true when this get route origin destination o k response has a 3xx status code

func (*GetRouteOriginDestinationOK) IsServerError added in v0.5.29

func (o *GetRouteOriginDestinationOK) IsServerError() bool

IsServerError returns true when this get route origin destination o k response has a 5xx status code

func (*GetRouteOriginDestinationOK) IsSuccess added in v0.5.29

func (o *GetRouteOriginDestinationOK) IsSuccess() bool

IsSuccess returns true when this get route origin destination o k response has a 2xx status code

func (*GetRouteOriginDestinationOK) String added in v0.5.29

func (o *GetRouteOriginDestinationOK) String() string

type GetRouteOriginDestinationParams

type GetRouteOriginDestinationParams struct {

	/* IfNoneMatch.

	   ETag from a previous request. A 304 will be returned if this matches the current ETag
	*/
	IfNoneMatch *string

	/* Avoid.

	   avoid solar system ID(s)
	*/
	Avoid []int32

	/* Connections.

	   connected solar system pairs
	*/
	Connections [][]int32

	/* Datasource.

	   The server name you would like data from

	   Default: "tranquility"
	*/
	Datasource *string

	/* Destination.

	   destination solar system ID

	   Format: int32
	*/
	Destination int32

	/* Flag.

	   route security preference

	   Default: "shortest"
	*/
	Flag *string

	/* Origin.

	   origin solar system ID

	   Format: int32
	*/
	Origin int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRouteOriginDestinationParams contains all the parameters to send to the API endpoint

for the get route origin destination operation.

Typically these are written to a http.Request.

func NewGetRouteOriginDestinationParams

func NewGetRouteOriginDestinationParams() *GetRouteOriginDestinationParams

NewGetRouteOriginDestinationParams creates a new GetRouteOriginDestinationParams 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 NewGetRouteOriginDestinationParamsWithContext

func NewGetRouteOriginDestinationParamsWithContext(ctx context.Context) *GetRouteOriginDestinationParams

NewGetRouteOriginDestinationParamsWithContext creates a new GetRouteOriginDestinationParams object with the ability to set a context for a request.

func NewGetRouteOriginDestinationParamsWithHTTPClient

func NewGetRouteOriginDestinationParamsWithHTTPClient(client *http.Client) *GetRouteOriginDestinationParams

NewGetRouteOriginDestinationParamsWithHTTPClient creates a new GetRouteOriginDestinationParams object with the ability to set a custom HTTPClient for a request.

func NewGetRouteOriginDestinationParamsWithTimeout

func NewGetRouteOriginDestinationParamsWithTimeout(timeout time.Duration) *GetRouteOriginDestinationParams

NewGetRouteOriginDestinationParamsWithTimeout creates a new GetRouteOriginDestinationParams object with the ability to set a timeout on a request.

func (*GetRouteOriginDestinationParams) SetAvoid

func (o *GetRouteOriginDestinationParams) SetAvoid(avoid []int32)

SetAvoid adds the avoid to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetConnections

func (o *GetRouteOriginDestinationParams) SetConnections(connections [][]int32)

SetConnections adds the connections to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetContext

func (o *GetRouteOriginDestinationParams) SetContext(ctx context.Context)

SetContext adds the context to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetDatasource

func (o *GetRouteOriginDestinationParams) SetDatasource(datasource *string)

SetDatasource adds the datasource to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetDefaults added in v0.3.0

func (o *GetRouteOriginDestinationParams) SetDefaults()

SetDefaults hydrates default values in the get route origin destination params (not the query body).

All values with no default are reset to their zero value.

func (*GetRouteOriginDestinationParams) SetDestination

func (o *GetRouteOriginDestinationParams) SetDestination(destination int32)

SetDestination adds the destination to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetFlag

func (o *GetRouteOriginDestinationParams) SetFlag(flag *string)

SetFlag adds the flag to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetHTTPClient

func (o *GetRouteOriginDestinationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetIfNoneMatch

func (o *GetRouteOriginDestinationParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetOrigin

func (o *GetRouteOriginDestinationParams) SetOrigin(origin int32)

SetOrigin adds the origin to the get route origin destination params

func (*GetRouteOriginDestinationParams) SetTimeout

func (o *GetRouteOriginDestinationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithAvoid

WithAvoid adds the avoid to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithConnections

func (o *GetRouteOriginDestinationParams) WithConnections(connections [][]int32) *GetRouteOriginDestinationParams

WithConnections adds the connections to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithContext

WithContext adds the context to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithDatasource

WithDatasource adds the datasource to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the get route origin destination params (not the query body).

All values with no default are reset to their zero value.

func (*GetRouteOriginDestinationParams) WithDestination

WithDestination adds the destination to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithFlag

WithFlag adds the flag to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithIfNoneMatch

WithIfNoneMatch adds the ifNoneMatch to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithOrigin

WithOrigin adds the origin to the get route origin destination params

func (*GetRouteOriginDestinationParams) WithTimeout

WithTimeout adds the timeout to the get route origin destination params

func (*GetRouteOriginDestinationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRouteOriginDestinationReader

type GetRouteOriginDestinationReader struct {
	// contains filtered or unexported fields
}

GetRouteOriginDestinationReader is a Reader for the GetRouteOriginDestination structure.

func (*GetRouteOriginDestinationReader) ReadResponse

func (o *GetRouteOriginDestinationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRouteOriginDestinationServiceUnavailable

type GetRouteOriginDestinationServiceUnavailable struct {
	Payload *models.ServiceUnavailable
}

GetRouteOriginDestinationServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetRouteOriginDestinationServiceUnavailable

func NewGetRouteOriginDestinationServiceUnavailable() *GetRouteOriginDestinationServiceUnavailable

NewGetRouteOriginDestinationServiceUnavailable creates a GetRouteOriginDestinationServiceUnavailable with default headers values

func (*GetRouteOriginDestinationServiceUnavailable) Code added in v0.5.29

Code gets the status code for the get route origin destination service unavailable response

func (*GetRouteOriginDestinationServiceUnavailable) Error

func (*GetRouteOriginDestinationServiceUnavailable) GetPayload

func (*GetRouteOriginDestinationServiceUnavailable) IsClientError added in v0.5.29

IsClientError returns true when this get route origin destination service unavailable response has a 4xx status code

func (*GetRouteOriginDestinationServiceUnavailable) IsCode added in v0.5.29

IsCode returns true when this get route origin destination service unavailable response a status code equal to that given

func (*GetRouteOriginDestinationServiceUnavailable) IsRedirect added in v0.5.29

IsRedirect returns true when this get route origin destination service unavailable response has a 3xx status code

func (*GetRouteOriginDestinationServiceUnavailable) IsServerError added in v0.5.29

IsServerError returns true when this get route origin destination service unavailable response has a 5xx status code

func (*GetRouteOriginDestinationServiceUnavailable) IsSuccess added in v0.5.29

IsSuccess returns true when this get route origin destination service unavailable response has a 2xx status code

func (*GetRouteOriginDestinationServiceUnavailable) String added in v0.5.29

Jump to

Keyboard shortcuts

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