routes

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 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) Error

func (*GetRouteOriginDestinationBadRequest) GetPayload

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

func (*GetRouteOriginDestinationEnhanceYourCalm) GetPayload

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

func (*GetRouteOriginDestinationGatewayTimeout) GetPayload

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

func (*GetRouteOriginDestinationInternalServerError) GetPayload

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

func (*GetRouteOriginDestinationNotFound) GetPayload

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

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

func (*GetRouteOriginDestinationOK) GetPayload

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

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

func (*GetRouteOriginDestinationServiceUnavailable) GetPayload

Jump to

Keyboard shortcuts

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