Documentation
¶
Index ¶
- type Client
- func (a *Client) GetRouteAsGPX(params *GetRouteAsGPXParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRouteAsGPXOK, error)
- func (a *Client) GetRouteAsTCX(params *GetRouteAsTCXParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRouteAsTCXOK, error)
- func (a *Client) GetRouteByID(params *GetRouteByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRouteByIDOK, error)
- func (a *Client) GetRoutesByAthleteID(params *GetRoutesByAthleteIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRoutesByAthleteIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetRouteAsGPXDefault
- func (o *GetRouteAsGPXDefault) Code() int
- func (o *GetRouteAsGPXDefault) Error() string
- func (o *GetRouteAsGPXDefault) GetPayload() *models.Fault
- func (o *GetRouteAsGPXDefault) IsClientError() bool
- func (o *GetRouteAsGPXDefault) IsCode(code int) bool
- func (o *GetRouteAsGPXDefault) IsRedirect() bool
- func (o *GetRouteAsGPXDefault) IsServerError() bool
- func (o *GetRouteAsGPXDefault) IsSuccess() bool
- func (o *GetRouteAsGPXDefault) String() string
- type GetRouteAsGPXOK
- func (o *GetRouteAsGPXOK) Code() int
- func (o *GetRouteAsGPXOK) Error() string
- func (o *GetRouteAsGPXOK) IsClientError() bool
- func (o *GetRouteAsGPXOK) IsCode(code int) bool
- func (o *GetRouteAsGPXOK) IsRedirect() bool
- func (o *GetRouteAsGPXOK) IsServerError() bool
- func (o *GetRouteAsGPXOK) IsSuccess() bool
- func (o *GetRouteAsGPXOK) String() string
- type GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) SetContext(ctx context.Context)
- func (o *GetRouteAsGPXParams) SetDefaults()
- func (o *GetRouteAsGPXParams) SetHTTPClient(client *http.Client)
- func (o *GetRouteAsGPXParams) SetID(id int64)
- func (o *GetRouteAsGPXParams) SetTimeout(timeout time.Duration)
- func (o *GetRouteAsGPXParams) WithContext(ctx context.Context) *GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) WithDefaults() *GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) WithHTTPClient(client *http.Client) *GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) WithID(id int64) *GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) WithTimeout(timeout time.Duration) *GetRouteAsGPXParams
- func (o *GetRouteAsGPXParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRouteAsGPXReader
- type GetRouteAsTCXDefault
- func (o *GetRouteAsTCXDefault) Code() int
- func (o *GetRouteAsTCXDefault) Error() string
- func (o *GetRouteAsTCXDefault) GetPayload() *models.Fault
- func (o *GetRouteAsTCXDefault) IsClientError() bool
- func (o *GetRouteAsTCXDefault) IsCode(code int) bool
- func (o *GetRouteAsTCXDefault) IsRedirect() bool
- func (o *GetRouteAsTCXDefault) IsServerError() bool
- func (o *GetRouteAsTCXDefault) IsSuccess() bool
- func (o *GetRouteAsTCXDefault) String() string
- type GetRouteAsTCXOK
- func (o *GetRouteAsTCXOK) Code() int
- func (o *GetRouteAsTCXOK) Error() string
- func (o *GetRouteAsTCXOK) IsClientError() bool
- func (o *GetRouteAsTCXOK) IsCode(code int) bool
- func (o *GetRouteAsTCXOK) IsRedirect() bool
- func (o *GetRouteAsTCXOK) IsServerError() bool
- func (o *GetRouteAsTCXOK) IsSuccess() bool
- func (o *GetRouteAsTCXOK) String() string
- type GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) SetContext(ctx context.Context)
- func (o *GetRouteAsTCXParams) SetDefaults()
- func (o *GetRouteAsTCXParams) SetHTTPClient(client *http.Client)
- func (o *GetRouteAsTCXParams) SetID(id int64)
- func (o *GetRouteAsTCXParams) SetTimeout(timeout time.Duration)
- func (o *GetRouteAsTCXParams) WithContext(ctx context.Context) *GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) WithDefaults() *GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) WithHTTPClient(client *http.Client) *GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) WithID(id int64) *GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) WithTimeout(timeout time.Duration) *GetRouteAsTCXParams
- func (o *GetRouteAsTCXParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRouteAsTCXReader
- type GetRouteByIDDefault
- func (o *GetRouteByIDDefault) Code() int
- func (o *GetRouteByIDDefault) Error() string
- func (o *GetRouteByIDDefault) GetPayload() *models.Fault
- func (o *GetRouteByIDDefault) IsClientError() bool
- func (o *GetRouteByIDDefault) IsCode(code int) bool
- func (o *GetRouteByIDDefault) IsRedirect() bool
- func (o *GetRouteByIDDefault) IsServerError() bool
- func (o *GetRouteByIDDefault) IsSuccess() bool
- func (o *GetRouteByIDDefault) String() string
- type GetRouteByIDOK
- func (o *GetRouteByIDOK) Code() int
- func (o *GetRouteByIDOK) Error() string
- func (o *GetRouteByIDOK) GetPayload() *models.Route
- func (o *GetRouteByIDOK) IsClientError() bool
- func (o *GetRouteByIDOK) IsCode(code int) bool
- func (o *GetRouteByIDOK) IsRedirect() bool
- func (o *GetRouteByIDOK) IsServerError() bool
- func (o *GetRouteByIDOK) IsSuccess() bool
- func (o *GetRouteByIDOK) String() string
- type GetRouteByIDParams
- func (o *GetRouteByIDParams) SetContext(ctx context.Context)
- func (o *GetRouteByIDParams) SetDefaults()
- func (o *GetRouteByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetRouteByIDParams) SetID(id int64)
- func (o *GetRouteByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetRouteByIDParams) WithContext(ctx context.Context) *GetRouteByIDParams
- func (o *GetRouteByIDParams) WithDefaults() *GetRouteByIDParams
- func (o *GetRouteByIDParams) WithHTTPClient(client *http.Client) *GetRouteByIDParams
- func (o *GetRouteByIDParams) WithID(id int64) *GetRouteByIDParams
- func (o *GetRouteByIDParams) WithTimeout(timeout time.Duration) *GetRouteByIDParams
- func (o *GetRouteByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRouteByIDReader
- type GetRoutesByAthleteIDDefault
- func (o *GetRoutesByAthleteIDDefault) Code() int
- func (o *GetRoutesByAthleteIDDefault) Error() string
- func (o *GetRoutesByAthleteIDDefault) GetPayload() *models.Fault
- func (o *GetRoutesByAthleteIDDefault) IsClientError() bool
- func (o *GetRoutesByAthleteIDDefault) IsCode(code int) bool
- func (o *GetRoutesByAthleteIDDefault) IsRedirect() bool
- func (o *GetRoutesByAthleteIDDefault) IsServerError() bool
- func (o *GetRoutesByAthleteIDDefault) IsSuccess() bool
- func (o *GetRoutesByAthleteIDDefault) String() string
- type GetRoutesByAthleteIDOK
- func (o *GetRoutesByAthleteIDOK) Code() int
- func (o *GetRoutesByAthleteIDOK) Error() string
- func (o *GetRoutesByAthleteIDOK) GetPayload() []*models.Route
- func (o *GetRoutesByAthleteIDOK) IsClientError() bool
- func (o *GetRoutesByAthleteIDOK) IsCode(code int) bool
- func (o *GetRoutesByAthleteIDOK) IsRedirect() bool
- func (o *GetRoutesByAthleteIDOK) IsServerError() bool
- func (o *GetRoutesByAthleteIDOK) IsSuccess() bool
- func (o *GetRoutesByAthleteIDOK) String() string
- type GetRoutesByAthleteIDParams
- func NewGetRoutesByAthleteIDParams() *GetRoutesByAthleteIDParams
- func NewGetRoutesByAthleteIDParamsWithContext(ctx context.Context) *GetRoutesByAthleteIDParams
- func NewGetRoutesByAthleteIDParamsWithHTTPClient(client *http.Client) *GetRoutesByAthleteIDParams
- func NewGetRoutesByAthleteIDParamsWithTimeout(timeout time.Duration) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) SetContext(ctx context.Context)
- func (o *GetRoutesByAthleteIDParams) SetDefaults()
- func (o *GetRoutesByAthleteIDParams) SetHTTPClient(client *http.Client)
- func (o *GetRoutesByAthleteIDParams) SetPage(page *int64)
- func (o *GetRoutesByAthleteIDParams) SetPerPage(perPage *int64)
- func (o *GetRoutesByAthleteIDParams) SetTimeout(timeout time.Duration)
- func (o *GetRoutesByAthleteIDParams) WithContext(ctx context.Context) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WithDefaults() *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WithHTTPClient(client *http.Client) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WithPage(page *int64) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WithPerPage(perPage *int64) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WithTimeout(timeout time.Duration) *GetRoutesByAthleteIDParams
- func (o *GetRoutesByAthleteIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoutesByAthleteIDReader
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) GetRouteAsGPX ¶
func (a *Client) GetRouteAsGPX(params *GetRouteAsGPXParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteAsGPXOK, error)
GetRouteAsGPX exports route g p x
Returns a GPX file of the route. Requires read_all scope for private routes.
func (*Client) GetRouteAsTCX ¶
func (a *Client) GetRouteAsTCX(params *GetRouteAsTCXParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteAsTCXOK, error)
GetRouteAsTCX exports route t c x
Returns a TCX file of the route. Requires read_all scope for private routes.
func (*Client) GetRouteByID ¶
func (a *Client) GetRouteByID(params *GetRouteByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteByIDOK, error)
GetRouteByID gets route
Returns a route using its identifier. Requires read_all scope for private routes.
func (*Client) GetRoutesByAthleteID ¶
func (a *Client) GetRoutesByAthleteID(params *GetRoutesByAthleteIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoutesByAthleteIDOK, error)
GetRoutesByAthleteID lists athlete routes
Returns a list of the routes created by the authenticated athlete. Private routes are filtered out unless requested by a token with read_all scope.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetRouteAsGPX(params *GetRouteAsGPXParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteAsGPXOK, error) GetRouteAsTCX(params *GetRouteAsTCXParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteAsTCXOK, error) GetRouteByID(params *GetRouteByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteByIDOK, error) GetRoutesByAthleteID(params *GetRoutesByAthleteIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoutesByAthleteIDOK, 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.
func NewClientWithBasicAuth ¶ added in v0.1.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new routes API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.1.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new routes API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetRouteAsGPXDefault ¶
type GetRouteAsGPXDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetRouteAsGPXDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetRouteAsGPXDefault ¶
func NewGetRouteAsGPXDefault(code int) *GetRouteAsGPXDefault
NewGetRouteAsGPXDefault creates a GetRouteAsGPXDefault with default headers values
func (*GetRouteAsGPXDefault) Code ¶
func (o *GetRouteAsGPXDefault) Code() int
Code gets the status code for the get route as g p x default response
func (*GetRouteAsGPXDefault) Error ¶
func (o *GetRouteAsGPXDefault) Error() string
func (*GetRouteAsGPXDefault) GetPayload ¶
func (o *GetRouteAsGPXDefault) GetPayload() *models.Fault
func (*GetRouteAsGPXDefault) IsClientError ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) IsClientError() bool
IsClientError returns true when this get route as g p x default response has a 4xx status code
func (*GetRouteAsGPXDefault) IsCode ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) IsCode(code int) bool
IsCode returns true when this get route as g p x default response a status code equal to that given
func (*GetRouteAsGPXDefault) IsRedirect ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) IsRedirect() bool
IsRedirect returns true when this get route as g p x default response has a 3xx status code
func (*GetRouteAsGPXDefault) IsServerError ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) IsServerError() bool
IsServerError returns true when this get route as g p x default response has a 5xx status code
func (*GetRouteAsGPXDefault) IsSuccess ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) IsSuccess() bool
IsSuccess returns true when this get route as g p x default response has a 2xx status code
func (*GetRouteAsGPXDefault) String ¶ added in v0.0.5
func (o *GetRouteAsGPXDefault) String() string
type GetRouteAsGPXOK ¶
type GetRouteAsGPXOK struct { }
GetRouteAsGPXOK describes a response with status code 200, with default header values.
A GPX file with the route.
func NewGetRouteAsGPXOK ¶
func NewGetRouteAsGPXOK() *GetRouteAsGPXOK
NewGetRouteAsGPXOK creates a GetRouteAsGPXOK with default headers values
func (*GetRouteAsGPXOK) Code ¶ added in v0.0.7
func (o *GetRouteAsGPXOK) Code() int
Code gets the status code for the get route as g p x o k response
func (*GetRouteAsGPXOK) Error ¶
func (o *GetRouteAsGPXOK) Error() string
func (*GetRouteAsGPXOK) IsClientError ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) IsClientError() bool
IsClientError returns true when this get route as g p x o k response has a 4xx status code
func (*GetRouteAsGPXOK) IsCode ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) IsCode(code int) bool
IsCode returns true when this get route as g p x o k response a status code equal to that given
func (*GetRouteAsGPXOK) IsRedirect ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) IsRedirect() bool
IsRedirect returns true when this get route as g p x o k response has a 3xx status code
func (*GetRouteAsGPXOK) IsServerError ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) IsServerError() bool
IsServerError returns true when this get route as g p x o k response has a 5xx status code
func (*GetRouteAsGPXOK) IsSuccess ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) IsSuccess() bool
IsSuccess returns true when this get route as g p x o k response has a 2xx status code
func (*GetRouteAsGPXOK) String ¶ added in v0.0.5
func (o *GetRouteAsGPXOK) String() string
type GetRouteAsGPXParams ¶
type GetRouteAsGPXParams struct { /* ID. The identifier of the route. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRouteAsGPXParams contains all the parameters to send to the API endpoint
for the get route as g p x operation. Typically these are written to a http.Request.
func NewGetRouteAsGPXParams ¶
func NewGetRouteAsGPXParams() *GetRouteAsGPXParams
NewGetRouteAsGPXParams creates a new GetRouteAsGPXParams 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 NewGetRouteAsGPXParamsWithContext ¶
func NewGetRouteAsGPXParamsWithContext(ctx context.Context) *GetRouteAsGPXParams
NewGetRouteAsGPXParamsWithContext creates a new GetRouteAsGPXParams object with the ability to set a context for a request.
func NewGetRouteAsGPXParamsWithHTTPClient ¶
func NewGetRouteAsGPXParamsWithHTTPClient(client *http.Client) *GetRouteAsGPXParams
NewGetRouteAsGPXParamsWithHTTPClient creates a new GetRouteAsGPXParams object with the ability to set a custom HTTPClient for a request.
func NewGetRouteAsGPXParamsWithTimeout ¶
func NewGetRouteAsGPXParamsWithTimeout(timeout time.Duration) *GetRouteAsGPXParams
NewGetRouteAsGPXParamsWithTimeout creates a new GetRouteAsGPXParams object with the ability to set a timeout on a request.
func (*GetRouteAsGPXParams) SetContext ¶
func (o *GetRouteAsGPXParams) SetContext(ctx context.Context)
SetContext adds the context to the get route as g p x params
func (*GetRouteAsGPXParams) SetDefaults ¶
func (o *GetRouteAsGPXParams) SetDefaults()
SetDefaults hydrates default values in the get route as g p x params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteAsGPXParams) SetHTTPClient ¶
func (o *GetRouteAsGPXParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get route as g p x params
func (*GetRouteAsGPXParams) SetID ¶
func (o *GetRouteAsGPXParams) SetID(id int64)
SetID adds the id to the get route as g p x params
func (*GetRouteAsGPXParams) SetTimeout ¶
func (o *GetRouteAsGPXParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get route as g p x params
func (*GetRouteAsGPXParams) WithContext ¶
func (o *GetRouteAsGPXParams) WithContext(ctx context.Context) *GetRouteAsGPXParams
WithContext adds the context to the get route as g p x params
func (*GetRouteAsGPXParams) WithDefaults ¶
func (o *GetRouteAsGPXParams) WithDefaults() *GetRouteAsGPXParams
WithDefaults hydrates default values in the get route as g p x params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteAsGPXParams) WithHTTPClient ¶
func (o *GetRouteAsGPXParams) WithHTTPClient(client *http.Client) *GetRouteAsGPXParams
WithHTTPClient adds the HTTPClient to the get route as g p x params
func (*GetRouteAsGPXParams) WithID ¶
func (o *GetRouteAsGPXParams) WithID(id int64) *GetRouteAsGPXParams
WithID adds the id to the get route as g p x params
func (*GetRouteAsGPXParams) WithTimeout ¶
func (o *GetRouteAsGPXParams) WithTimeout(timeout time.Duration) *GetRouteAsGPXParams
WithTimeout adds the timeout to the get route as g p x params
func (*GetRouteAsGPXParams) WriteToRequest ¶
func (o *GetRouteAsGPXParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRouteAsGPXReader ¶
type GetRouteAsGPXReader struct {
// contains filtered or unexported fields
}
GetRouteAsGPXReader is a Reader for the GetRouteAsGPX structure.
func (*GetRouteAsGPXReader) ReadResponse ¶
func (o *GetRouteAsGPXReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRouteAsTCXDefault ¶
type GetRouteAsTCXDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetRouteAsTCXDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetRouteAsTCXDefault ¶
func NewGetRouteAsTCXDefault(code int) *GetRouteAsTCXDefault
NewGetRouteAsTCXDefault creates a GetRouteAsTCXDefault with default headers values
func (*GetRouteAsTCXDefault) Code ¶
func (o *GetRouteAsTCXDefault) Code() int
Code gets the status code for the get route as t c x default response
func (*GetRouteAsTCXDefault) Error ¶
func (o *GetRouteAsTCXDefault) Error() string
func (*GetRouteAsTCXDefault) GetPayload ¶
func (o *GetRouteAsTCXDefault) GetPayload() *models.Fault
func (*GetRouteAsTCXDefault) IsClientError ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) IsClientError() bool
IsClientError returns true when this get route as t c x default response has a 4xx status code
func (*GetRouteAsTCXDefault) IsCode ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) IsCode(code int) bool
IsCode returns true when this get route as t c x default response a status code equal to that given
func (*GetRouteAsTCXDefault) IsRedirect ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) IsRedirect() bool
IsRedirect returns true when this get route as t c x default response has a 3xx status code
func (*GetRouteAsTCXDefault) IsServerError ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) IsServerError() bool
IsServerError returns true when this get route as t c x default response has a 5xx status code
func (*GetRouteAsTCXDefault) IsSuccess ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) IsSuccess() bool
IsSuccess returns true when this get route as t c x default response has a 2xx status code
func (*GetRouteAsTCXDefault) String ¶ added in v0.0.5
func (o *GetRouteAsTCXDefault) String() string
type GetRouteAsTCXOK ¶
type GetRouteAsTCXOK struct { }
GetRouteAsTCXOK describes a response with status code 200, with default header values.
A TCX file with the route.
func NewGetRouteAsTCXOK ¶
func NewGetRouteAsTCXOK() *GetRouteAsTCXOK
NewGetRouteAsTCXOK creates a GetRouteAsTCXOK with default headers values
func (*GetRouteAsTCXOK) Code ¶ added in v0.0.7
func (o *GetRouteAsTCXOK) Code() int
Code gets the status code for the get route as t c x o k response
func (*GetRouteAsTCXOK) Error ¶
func (o *GetRouteAsTCXOK) Error() string
func (*GetRouteAsTCXOK) IsClientError ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) IsClientError() bool
IsClientError returns true when this get route as t c x o k response has a 4xx status code
func (*GetRouteAsTCXOK) IsCode ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) IsCode(code int) bool
IsCode returns true when this get route as t c x o k response a status code equal to that given
func (*GetRouteAsTCXOK) IsRedirect ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) IsRedirect() bool
IsRedirect returns true when this get route as t c x o k response has a 3xx status code
func (*GetRouteAsTCXOK) IsServerError ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) IsServerError() bool
IsServerError returns true when this get route as t c x o k response has a 5xx status code
func (*GetRouteAsTCXOK) IsSuccess ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) IsSuccess() bool
IsSuccess returns true when this get route as t c x o k response has a 2xx status code
func (*GetRouteAsTCXOK) String ¶ added in v0.0.5
func (o *GetRouteAsTCXOK) String() string
type GetRouteAsTCXParams ¶
type GetRouteAsTCXParams struct { /* ID. The identifier of the route. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRouteAsTCXParams contains all the parameters to send to the API endpoint
for the get route as t c x operation. Typically these are written to a http.Request.
func NewGetRouteAsTCXParams ¶
func NewGetRouteAsTCXParams() *GetRouteAsTCXParams
NewGetRouteAsTCXParams creates a new GetRouteAsTCXParams 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 NewGetRouteAsTCXParamsWithContext ¶
func NewGetRouteAsTCXParamsWithContext(ctx context.Context) *GetRouteAsTCXParams
NewGetRouteAsTCXParamsWithContext creates a new GetRouteAsTCXParams object with the ability to set a context for a request.
func NewGetRouteAsTCXParamsWithHTTPClient ¶
func NewGetRouteAsTCXParamsWithHTTPClient(client *http.Client) *GetRouteAsTCXParams
NewGetRouteAsTCXParamsWithHTTPClient creates a new GetRouteAsTCXParams object with the ability to set a custom HTTPClient for a request.
func NewGetRouteAsTCXParamsWithTimeout ¶
func NewGetRouteAsTCXParamsWithTimeout(timeout time.Duration) *GetRouteAsTCXParams
NewGetRouteAsTCXParamsWithTimeout creates a new GetRouteAsTCXParams object with the ability to set a timeout on a request.
func (*GetRouteAsTCXParams) SetContext ¶
func (o *GetRouteAsTCXParams) SetContext(ctx context.Context)
SetContext adds the context to the get route as t c x params
func (*GetRouteAsTCXParams) SetDefaults ¶
func (o *GetRouteAsTCXParams) SetDefaults()
SetDefaults hydrates default values in the get route as t c x params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteAsTCXParams) SetHTTPClient ¶
func (o *GetRouteAsTCXParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get route as t c x params
func (*GetRouteAsTCXParams) SetID ¶
func (o *GetRouteAsTCXParams) SetID(id int64)
SetID adds the id to the get route as t c x params
func (*GetRouteAsTCXParams) SetTimeout ¶
func (o *GetRouteAsTCXParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get route as t c x params
func (*GetRouteAsTCXParams) WithContext ¶
func (o *GetRouteAsTCXParams) WithContext(ctx context.Context) *GetRouteAsTCXParams
WithContext adds the context to the get route as t c x params
func (*GetRouteAsTCXParams) WithDefaults ¶
func (o *GetRouteAsTCXParams) WithDefaults() *GetRouteAsTCXParams
WithDefaults hydrates default values in the get route as t c x params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteAsTCXParams) WithHTTPClient ¶
func (o *GetRouteAsTCXParams) WithHTTPClient(client *http.Client) *GetRouteAsTCXParams
WithHTTPClient adds the HTTPClient to the get route as t c x params
func (*GetRouteAsTCXParams) WithID ¶
func (o *GetRouteAsTCXParams) WithID(id int64) *GetRouteAsTCXParams
WithID adds the id to the get route as t c x params
func (*GetRouteAsTCXParams) WithTimeout ¶
func (o *GetRouteAsTCXParams) WithTimeout(timeout time.Duration) *GetRouteAsTCXParams
WithTimeout adds the timeout to the get route as t c x params
func (*GetRouteAsTCXParams) WriteToRequest ¶
func (o *GetRouteAsTCXParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRouteAsTCXReader ¶
type GetRouteAsTCXReader struct {
// contains filtered or unexported fields
}
GetRouteAsTCXReader is a Reader for the GetRouteAsTCX structure.
func (*GetRouteAsTCXReader) ReadResponse ¶
func (o *GetRouteAsTCXReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRouteByIDDefault ¶
GetRouteByIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetRouteByIDDefault ¶
func NewGetRouteByIDDefault(code int) *GetRouteByIDDefault
NewGetRouteByIDDefault creates a GetRouteByIDDefault with default headers values
func (*GetRouteByIDDefault) Code ¶
func (o *GetRouteByIDDefault) Code() int
Code gets the status code for the get route by Id default response
func (*GetRouteByIDDefault) Error ¶
func (o *GetRouteByIDDefault) Error() string
func (*GetRouteByIDDefault) GetPayload ¶
func (o *GetRouteByIDDefault) GetPayload() *models.Fault
func (*GetRouteByIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetRouteByIDDefault) IsClientError() bool
IsClientError returns true when this get route by Id default response has a 4xx status code
func (*GetRouteByIDDefault) IsCode ¶ added in v0.0.5
func (o *GetRouteByIDDefault) IsCode(code int) bool
IsCode returns true when this get route by Id default response a status code equal to that given
func (*GetRouteByIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetRouteByIDDefault) IsRedirect() bool
IsRedirect returns true when this get route by Id default response has a 3xx status code
func (*GetRouteByIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetRouteByIDDefault) IsServerError() bool
IsServerError returns true when this get route by Id default response has a 5xx status code
func (*GetRouteByIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetRouteByIDDefault) IsSuccess() bool
IsSuccess returns true when this get route by Id default response has a 2xx status code
func (*GetRouteByIDDefault) String ¶ added in v0.0.5
func (o *GetRouteByIDDefault) String() string
type GetRouteByIDOK ¶
GetRouteByIDOK describes a response with status code 200, with default header values.
A representation of the route.
func NewGetRouteByIDOK ¶
func NewGetRouteByIDOK() *GetRouteByIDOK
NewGetRouteByIDOK creates a GetRouteByIDOK with default headers values
func (*GetRouteByIDOK) Code ¶ added in v0.0.7
func (o *GetRouteByIDOK) Code() int
Code gets the status code for the get route by Id o k response
func (*GetRouteByIDOK) Error ¶
func (o *GetRouteByIDOK) Error() string
func (*GetRouteByIDOK) GetPayload ¶
func (o *GetRouteByIDOK) GetPayload() *models.Route
func (*GetRouteByIDOK) IsClientError ¶ added in v0.0.5
func (o *GetRouteByIDOK) IsClientError() bool
IsClientError returns true when this get route by Id o k response has a 4xx status code
func (*GetRouteByIDOK) IsCode ¶ added in v0.0.5
func (o *GetRouteByIDOK) IsCode(code int) bool
IsCode returns true when this get route by Id o k response a status code equal to that given
func (*GetRouteByIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetRouteByIDOK) IsRedirect() bool
IsRedirect returns true when this get route by Id o k response has a 3xx status code
func (*GetRouteByIDOK) IsServerError ¶ added in v0.0.5
func (o *GetRouteByIDOK) IsServerError() bool
IsServerError returns true when this get route by Id o k response has a 5xx status code
func (*GetRouteByIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetRouteByIDOK) IsSuccess() bool
IsSuccess returns true when this get route by Id o k response has a 2xx status code
func (*GetRouteByIDOK) String ¶ added in v0.0.5
func (o *GetRouteByIDOK) String() string
type GetRouteByIDParams ¶
type GetRouteByIDParams struct { /* ID. The identifier of the route. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRouteByIDParams contains all the parameters to send to the API endpoint
for the get route by Id operation. Typically these are written to a http.Request.
func NewGetRouteByIDParams ¶
func NewGetRouteByIDParams() *GetRouteByIDParams
NewGetRouteByIDParams creates a new GetRouteByIDParams 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 NewGetRouteByIDParamsWithContext ¶
func NewGetRouteByIDParamsWithContext(ctx context.Context) *GetRouteByIDParams
NewGetRouteByIDParamsWithContext creates a new GetRouteByIDParams object with the ability to set a context for a request.
func NewGetRouteByIDParamsWithHTTPClient ¶
func NewGetRouteByIDParamsWithHTTPClient(client *http.Client) *GetRouteByIDParams
NewGetRouteByIDParamsWithHTTPClient creates a new GetRouteByIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetRouteByIDParamsWithTimeout ¶
func NewGetRouteByIDParamsWithTimeout(timeout time.Duration) *GetRouteByIDParams
NewGetRouteByIDParamsWithTimeout creates a new GetRouteByIDParams object with the ability to set a timeout on a request.
func (*GetRouteByIDParams) SetContext ¶
func (o *GetRouteByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get route by Id params
func (*GetRouteByIDParams) SetDefaults ¶
func (o *GetRouteByIDParams) SetDefaults()
SetDefaults hydrates default values in the get route by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteByIDParams) SetHTTPClient ¶
func (o *GetRouteByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get route by Id params
func (*GetRouteByIDParams) SetID ¶
func (o *GetRouteByIDParams) SetID(id int64)
SetID adds the id to the get route by Id params
func (*GetRouteByIDParams) SetTimeout ¶
func (o *GetRouteByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get route by Id params
func (*GetRouteByIDParams) WithContext ¶
func (o *GetRouteByIDParams) WithContext(ctx context.Context) *GetRouteByIDParams
WithContext adds the context to the get route by Id params
func (*GetRouteByIDParams) WithDefaults ¶
func (o *GetRouteByIDParams) WithDefaults() *GetRouteByIDParams
WithDefaults hydrates default values in the get route by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetRouteByIDParams) WithHTTPClient ¶
func (o *GetRouteByIDParams) WithHTTPClient(client *http.Client) *GetRouteByIDParams
WithHTTPClient adds the HTTPClient to the get route by Id params
func (*GetRouteByIDParams) WithID ¶
func (o *GetRouteByIDParams) WithID(id int64) *GetRouteByIDParams
WithID adds the id to the get route by Id params
func (*GetRouteByIDParams) WithTimeout ¶
func (o *GetRouteByIDParams) WithTimeout(timeout time.Duration) *GetRouteByIDParams
WithTimeout adds the timeout to the get route by Id params
func (*GetRouteByIDParams) WriteToRequest ¶
func (o *GetRouteByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRouteByIDReader ¶
type GetRouteByIDReader struct {
// contains filtered or unexported fields
}
GetRouteByIDReader is a Reader for the GetRouteByID structure.
func (*GetRouteByIDReader) ReadResponse ¶
func (o *GetRouteByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRoutesByAthleteIDDefault ¶
type GetRoutesByAthleteIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetRoutesByAthleteIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetRoutesByAthleteIDDefault ¶
func NewGetRoutesByAthleteIDDefault(code int) *GetRoutesByAthleteIDDefault
NewGetRoutesByAthleteIDDefault creates a GetRoutesByAthleteIDDefault with default headers values
func (*GetRoutesByAthleteIDDefault) Code ¶
func (o *GetRoutesByAthleteIDDefault) Code() int
Code gets the status code for the get routes by athlete Id default response
func (*GetRoutesByAthleteIDDefault) Error ¶
func (o *GetRoutesByAthleteIDDefault) Error() string
func (*GetRoutesByAthleteIDDefault) GetPayload ¶
func (o *GetRoutesByAthleteIDDefault) GetPayload() *models.Fault
func (*GetRoutesByAthleteIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) IsClientError() bool
IsClientError returns true when this get routes by athlete Id default response has a 4xx status code
func (*GetRoutesByAthleteIDDefault) IsCode ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) IsCode(code int) bool
IsCode returns true when this get routes by athlete Id default response a status code equal to that given
func (*GetRoutesByAthleteIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) IsRedirect() bool
IsRedirect returns true when this get routes by athlete Id default response has a 3xx status code
func (*GetRoutesByAthleteIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) IsServerError() bool
IsServerError returns true when this get routes by athlete Id default response has a 5xx status code
func (*GetRoutesByAthleteIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) IsSuccess() bool
IsSuccess returns true when this get routes by athlete Id default response has a 2xx status code
func (*GetRoutesByAthleteIDDefault) String ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDDefault) String() string
type GetRoutesByAthleteIDOK ¶
GetRoutesByAthleteIDOK describes a response with status code 200, with default header values.
A representation of the route.
func NewGetRoutesByAthleteIDOK ¶
func NewGetRoutesByAthleteIDOK() *GetRoutesByAthleteIDOK
NewGetRoutesByAthleteIDOK creates a GetRoutesByAthleteIDOK with default headers values
func (*GetRoutesByAthleteIDOK) Code ¶ added in v0.0.7
func (o *GetRoutesByAthleteIDOK) Code() int
Code gets the status code for the get routes by athlete Id o k response
func (*GetRoutesByAthleteIDOK) Error ¶
func (o *GetRoutesByAthleteIDOK) Error() string
func (*GetRoutesByAthleteIDOK) GetPayload ¶
func (o *GetRoutesByAthleteIDOK) GetPayload() []*models.Route
func (*GetRoutesByAthleteIDOK) IsClientError ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) IsClientError() bool
IsClientError returns true when this get routes by athlete Id o k response has a 4xx status code
func (*GetRoutesByAthleteIDOK) IsCode ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) IsCode(code int) bool
IsCode returns true when this get routes by athlete Id o k response a status code equal to that given
func (*GetRoutesByAthleteIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) IsRedirect() bool
IsRedirect returns true when this get routes by athlete Id o k response has a 3xx status code
func (*GetRoutesByAthleteIDOK) IsServerError ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) IsServerError() bool
IsServerError returns true when this get routes by athlete Id o k response has a 5xx status code
func (*GetRoutesByAthleteIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) IsSuccess() bool
IsSuccess returns true when this get routes by athlete Id o k response has a 2xx status code
func (*GetRoutesByAthleteIDOK) String ¶ added in v0.0.5
func (o *GetRoutesByAthleteIDOK) String() string
type GetRoutesByAthleteIDParams ¶
type GetRoutesByAthleteIDParams struct { /* Page. Page number. Defaults to 1. */ Page *int64 /* PerPage. Number of items per page. Defaults to 30. Default: 30 */ PerPage *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRoutesByAthleteIDParams contains all the parameters to send to the API endpoint
for the get routes by athlete Id operation. Typically these are written to a http.Request.
func NewGetRoutesByAthleteIDParams ¶
func NewGetRoutesByAthleteIDParams() *GetRoutesByAthleteIDParams
NewGetRoutesByAthleteIDParams creates a new GetRoutesByAthleteIDParams 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 NewGetRoutesByAthleteIDParamsWithContext ¶
func NewGetRoutesByAthleteIDParamsWithContext(ctx context.Context) *GetRoutesByAthleteIDParams
NewGetRoutesByAthleteIDParamsWithContext creates a new GetRoutesByAthleteIDParams object with the ability to set a context for a request.
func NewGetRoutesByAthleteIDParamsWithHTTPClient ¶
func NewGetRoutesByAthleteIDParamsWithHTTPClient(client *http.Client) *GetRoutesByAthleteIDParams
NewGetRoutesByAthleteIDParamsWithHTTPClient creates a new GetRoutesByAthleteIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetRoutesByAthleteIDParamsWithTimeout ¶
func NewGetRoutesByAthleteIDParamsWithTimeout(timeout time.Duration) *GetRoutesByAthleteIDParams
NewGetRoutesByAthleteIDParamsWithTimeout creates a new GetRoutesByAthleteIDParams object with the ability to set a timeout on a request.
func (*GetRoutesByAthleteIDParams) SetContext ¶
func (o *GetRoutesByAthleteIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) SetDefaults ¶
func (o *GetRoutesByAthleteIDParams) SetDefaults()
SetDefaults hydrates default values in the get routes by athlete Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoutesByAthleteIDParams) SetHTTPClient ¶
func (o *GetRoutesByAthleteIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) SetPage ¶
func (o *GetRoutesByAthleteIDParams) SetPage(page *int64)
SetPage adds the page to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) SetPerPage ¶
func (o *GetRoutesByAthleteIDParams) SetPerPage(perPage *int64)
SetPerPage adds the perPage to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) SetTimeout ¶
func (o *GetRoutesByAthleteIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WithContext ¶
func (o *GetRoutesByAthleteIDParams) WithContext(ctx context.Context) *GetRoutesByAthleteIDParams
WithContext adds the context to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WithDefaults ¶
func (o *GetRoutesByAthleteIDParams) WithDefaults() *GetRoutesByAthleteIDParams
WithDefaults hydrates default values in the get routes by athlete Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoutesByAthleteIDParams) WithHTTPClient ¶
func (o *GetRoutesByAthleteIDParams) WithHTTPClient(client *http.Client) *GetRoutesByAthleteIDParams
WithHTTPClient adds the HTTPClient to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WithPage ¶
func (o *GetRoutesByAthleteIDParams) WithPage(page *int64) *GetRoutesByAthleteIDParams
WithPage adds the page to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WithPerPage ¶
func (o *GetRoutesByAthleteIDParams) WithPerPage(perPage *int64) *GetRoutesByAthleteIDParams
WithPerPage adds the perPage to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WithTimeout ¶
func (o *GetRoutesByAthleteIDParams) WithTimeout(timeout time.Duration) *GetRoutesByAthleteIDParams
WithTimeout adds the timeout to the get routes by athlete Id params
func (*GetRoutesByAthleteIDParams) WriteToRequest ¶
func (o *GetRoutesByAthleteIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRoutesByAthleteIDReader ¶
type GetRoutesByAthleteIDReader struct {
// contains filtered or unexported fields
}
GetRoutesByAthleteIDReader is a Reader for the GetRoutesByAthleteID structure.
func (*GetRoutesByAthleteIDReader) ReadResponse ¶
func (o *GetRoutesByAthleteIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.