routes

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT 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) 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 is the option for 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.

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

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

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

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

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

type GetRouteByIDDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

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

type GetRouteByIDOK struct {
	Payload *models.Route
}

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

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

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 (*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

type GetRoutesByAthleteIDOK struct {
	Payload []*models.Route
}

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

WithContext adds the context to the get routes by athlete Id params

func (*GetRoutesByAthleteIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get routes by athlete Id params

func (*GetRoutesByAthleteIDParams) WithPage

WithPage adds the page to the get routes by athlete Id params

func (*GetRoutesByAthleteIDParams) WithPerPage

WithPerPage adds the perPage to the get routes by athlete Id params

func (*GetRoutesByAthleteIDParams) WithTimeout

WithTimeout adds the timeout to the get routes by athlete Id params

func (*GetRoutesByAthleteIDParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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