Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetRouteOriginDestinationBadRequest
- type GetRouteOriginDestinationEnhanceYourCalm
- type GetRouteOriginDestinationGatewayTimeout
- type GetRouteOriginDestinationInternalServerError
- type GetRouteOriginDestinationNotFound
- type GetRouteOriginDestinationNotFoundBody
- func (o *GetRouteOriginDestinationNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRouteOriginDestinationNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetRouteOriginDestinationNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetRouteOriginDestinationNotFoundBody) Validate(formats strfmt.Registry) error
- type GetRouteOriginDestinationNotModified
- type GetRouteOriginDestinationOK
- type GetRouteOriginDestinationParams
- func NewGetRouteOriginDestinationParams() *GetRouteOriginDestinationParams
- func NewGetRouteOriginDestinationParamsWithContext(ctx context.Context) *GetRouteOriginDestinationParams
- func NewGetRouteOriginDestinationParamsWithHTTPClient(client *http.Client) *GetRouteOriginDestinationParams
- func NewGetRouteOriginDestinationParamsWithTimeout(timeout time.Duration) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) SetAvoid(avoid []int32)
- func (o *GetRouteOriginDestinationParams) SetConnections(connections [][]int32)
- func (o *GetRouteOriginDestinationParams) SetContext(ctx context.Context)
- func (o *GetRouteOriginDestinationParams) SetDatasource(datasource *string)
- func (o *GetRouteOriginDestinationParams) SetDefaults()
- func (o *GetRouteOriginDestinationParams) SetDestination(destination int32)
- func (o *GetRouteOriginDestinationParams) SetFlag(flag *string)
- func (o *GetRouteOriginDestinationParams) SetHTTPClient(client *http.Client)
- func (o *GetRouteOriginDestinationParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetRouteOriginDestinationParams) SetOrigin(origin int32)
- func (o *GetRouteOriginDestinationParams) SetTimeout(timeout time.Duration)
- func (o *GetRouteOriginDestinationParams) WithAvoid(avoid []int32) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithConnections(connections [][]int32) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithContext(ctx context.Context) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithDatasource(datasource *string) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithDefaults() *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithDestination(destination int32) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithFlag(flag *string) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithHTTPClient(client *http.Client) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithIfNoneMatch(ifNoneMatch *string) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithOrigin(origin int32) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WithTimeout(timeout time.Duration) *GetRouteOriginDestinationParams
- func (o *GetRouteOriginDestinationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRouteOriginDestinationReader
- type GetRouteOriginDestinationServiceUnavailable
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 *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 (o *GetRouteOriginDestinationBadRequest) Error() string
func (*GetRouteOriginDestinationBadRequest) GetPayload ¶
func (o *GetRouteOriginDestinationBadRequest) GetPayload() *models.BadRequest
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 (o *GetRouteOriginDestinationEnhanceYourCalm) Error() string
func (*GetRouteOriginDestinationEnhanceYourCalm) GetPayload ¶
func (o *GetRouteOriginDestinationEnhanceYourCalm) GetPayload() *models.ErrorLimited
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 (o *GetRouteOriginDestinationGatewayTimeout) Error() string
func (*GetRouteOriginDestinationGatewayTimeout) GetPayload ¶
func (o *GetRouteOriginDestinationGatewayTimeout) GetPayload() *models.GatewayTimeout
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 (o *GetRouteOriginDestinationInternalServerError) Error() string
func (*GetRouteOriginDestinationInternalServerError) GetPayload ¶
func (o *GetRouteOriginDestinationInternalServerError) GetPayload() *models.InternalServerError
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 (o *GetRouteOriginDestinationNotFound) Error() string
func (*GetRouteOriginDestinationNotFound) GetPayload ¶
func (o *GetRouteOriginDestinationNotFound) GetPayload() *GetRouteOriginDestinationNotFoundBody
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
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 ¶
func (o *GetRouteOriginDestinationNotModified) Error() string
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 (o *GetRouteOriginDestinationOK) Error() string
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 ¶
func (o *GetRouteOriginDestinationParams) WithAvoid(avoid []int32) *GetRouteOriginDestinationParams
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 ¶
func (o *GetRouteOriginDestinationParams) WithContext(ctx context.Context) *GetRouteOriginDestinationParams
WithContext adds the context to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithDatasource ¶
func (o *GetRouteOriginDestinationParams) WithDatasource(datasource *string) *GetRouteOriginDestinationParams
WithDatasource adds the datasource to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithDefaults ¶ added in v0.3.0
func (o *GetRouteOriginDestinationParams) WithDefaults() *GetRouteOriginDestinationParams
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 ¶
func (o *GetRouteOriginDestinationParams) WithDestination(destination int32) *GetRouteOriginDestinationParams
WithDestination adds the destination to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithFlag ¶
func (o *GetRouteOriginDestinationParams) WithFlag(flag *string) *GetRouteOriginDestinationParams
WithFlag adds the flag to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithHTTPClient ¶
func (o *GetRouteOriginDestinationParams) WithHTTPClient(client *http.Client) *GetRouteOriginDestinationParams
WithHTTPClient adds the HTTPClient to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithIfNoneMatch ¶
func (o *GetRouteOriginDestinationParams) WithIfNoneMatch(ifNoneMatch *string) *GetRouteOriginDestinationParams
WithIfNoneMatch adds the ifNoneMatch to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithOrigin ¶
func (o *GetRouteOriginDestinationParams) WithOrigin(origin int32) *GetRouteOriginDestinationParams
WithOrigin adds the origin to the get route origin destination params
func (*GetRouteOriginDestinationParams) WithTimeout ¶
func (o *GetRouteOriginDestinationParams) WithTimeout(timeout time.Duration) *GetRouteOriginDestinationParams
WithTimeout adds the timeout to the get route origin destination params
func (*GetRouteOriginDestinationParams) WriteToRequest ¶
func (o *GetRouteOriginDestinationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetRouteOriginDestinationServiceUnavailable) Error() string
func (*GetRouteOriginDestinationServiceUnavailable) GetPayload ¶
func (o *GetRouteOriginDestinationServiceUnavailable) GetPayload() *models.ServiceUnavailable