routes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 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) (*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 ClientService

type ClientService interface {
	GetRouteOriginDestination(params *GetRouteOriginDestinationParams) (*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 *esimodels.BadRequest
}

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

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

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

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

	*/
	Datasource *string
	/*Destination
	  destination solar system ID

	*/
	Destination int32
	/*Flag
	  route security preference

	*/
	Flag *string
	/*Origin
	  origin solar system ID

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

func NewGetRouteOriginDestinationParamsWithContext

func NewGetRouteOriginDestinationParamsWithContext(ctx context.Context) *GetRouteOriginDestinationParams

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

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