clubs

package
v0.0.0-...-c7fed22 Latest Latest
Warning

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

Go to latest
Published: Mar 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 clubs API

func (*Client) GetClubActivitiesByID

func (a *Client) GetClubActivitiesByID(params *GetClubActivitiesByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubActivitiesByIDOK, error)

GetClubActivitiesByID lists club activities

Retrieve recent activities from members of a specific club. The authenticated athlete must belong to the requested club in order to hit this endpoint. Pagination is supported. Athlete profile visibility is respected for all activities.

func (*Client) GetClubAdminsByID

func (a *Client) GetClubAdminsByID(params *GetClubAdminsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubAdminsByIDOK, error)

GetClubAdminsByID lists club administrators

Returns a list of the administrators of a given club.

func (*Client) GetClubByID

func (a *Client) GetClubByID(params *GetClubByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubByIDOK, error)

GetClubByID gets club

Returns a given club using its identifier.

func (*Client) GetClubMembersByID

func (a *Client) GetClubMembersByID(params *GetClubMembersByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubMembersByIDOK, error)

GetClubMembersByID lists club members

Returns a list of the athletes who are members of a given club.

func (*Client) GetLoggedInAthleteClubs

func (a *Client) GetLoggedInAthleteClubs(params *GetLoggedInAthleteClubsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteClubsOK, error)

GetLoggedInAthleteClubs lists athlete clubs

Returns a list of the clubs whose membership includes the authenticated athlete.

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 {
	GetClubActivitiesByID(params *GetClubActivitiesByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubActivitiesByIDOK, error)

	GetClubAdminsByID(params *GetClubAdminsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubAdminsByIDOK, error)

	GetClubByID(params *GetClubByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubByIDOK, error)

	GetClubMembersByID(params *GetClubMembersByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClubMembersByIDOK, error)

	GetLoggedInAthleteClubs(params *GetLoggedInAthleteClubsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteClubsOK, 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 clubs API client.

type GetClubActivitiesByIDDefault

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

GetClubActivitiesByIDDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetClubActivitiesByIDDefault

func NewGetClubActivitiesByIDDefault(code int) *GetClubActivitiesByIDDefault

NewGetClubActivitiesByIDDefault creates a GetClubActivitiesByIDDefault with default headers values

func (*GetClubActivitiesByIDDefault) Code

Code gets the status code for the get club activities by Id default response

func (*GetClubActivitiesByIDDefault) Error

func (*GetClubActivitiesByIDDefault) GetPayload

func (o *GetClubActivitiesByIDDefault) GetPayload() *models.Fault

func (*GetClubActivitiesByIDDefault) IsClientError

func (o *GetClubActivitiesByIDDefault) IsClientError() bool

IsClientError returns true when this get club activities by Id default response has a 4xx status code

func (*GetClubActivitiesByIDDefault) IsCode

func (o *GetClubActivitiesByIDDefault) IsCode(code int) bool

IsCode returns true when this get club activities by Id default response a status code equal to that given

func (*GetClubActivitiesByIDDefault) IsRedirect

func (o *GetClubActivitiesByIDDefault) IsRedirect() bool

IsRedirect returns true when this get club activities by Id default response has a 3xx status code

func (*GetClubActivitiesByIDDefault) IsServerError

func (o *GetClubActivitiesByIDDefault) IsServerError() bool

IsServerError returns true when this get club activities by Id default response has a 5xx status code

func (*GetClubActivitiesByIDDefault) IsSuccess

func (o *GetClubActivitiesByIDDefault) IsSuccess() bool

IsSuccess returns true when this get club activities by Id default response has a 2xx status code

func (*GetClubActivitiesByIDDefault) String

type GetClubActivitiesByIDOK

type GetClubActivitiesByIDOK struct {
	Payload []*models.ClubActivity
}

GetClubActivitiesByIDOK describes a response with status code 200, with default header values.

A list of activities.

func NewGetClubActivitiesByIDOK

func NewGetClubActivitiesByIDOK() *GetClubActivitiesByIDOK

NewGetClubActivitiesByIDOK creates a GetClubActivitiesByIDOK with default headers values

func (*GetClubActivitiesByIDOK) Code

func (o *GetClubActivitiesByIDOK) Code() int

Code gets the status code for the get club activities by Id o k response

func (*GetClubActivitiesByIDOK) Error

func (o *GetClubActivitiesByIDOK) Error() string

func (*GetClubActivitiesByIDOK) GetPayload

func (o *GetClubActivitiesByIDOK) GetPayload() []*models.ClubActivity

func (*GetClubActivitiesByIDOK) IsClientError

func (o *GetClubActivitiesByIDOK) IsClientError() bool

IsClientError returns true when this get club activities by Id o k response has a 4xx status code

func (*GetClubActivitiesByIDOK) IsCode

func (o *GetClubActivitiesByIDOK) IsCode(code int) bool

IsCode returns true when this get club activities by Id o k response a status code equal to that given

func (*GetClubActivitiesByIDOK) IsRedirect

func (o *GetClubActivitiesByIDOK) IsRedirect() bool

IsRedirect returns true when this get club activities by Id o k response has a 3xx status code

func (*GetClubActivitiesByIDOK) IsServerError

func (o *GetClubActivitiesByIDOK) IsServerError() bool

IsServerError returns true when this get club activities by Id o k response has a 5xx status code

func (*GetClubActivitiesByIDOK) IsSuccess

func (o *GetClubActivitiesByIDOK) IsSuccess() bool

IsSuccess returns true when this get club activities by Id o k response has a 2xx status code

func (*GetClubActivitiesByIDOK) String

func (o *GetClubActivitiesByIDOK) String() string

type GetClubActivitiesByIDParams

type GetClubActivitiesByIDParams struct {
	/* ID.

	   The identifier of the club.

	   Format: int64
	*/
	ID int64

	/* 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
}

GetClubActivitiesByIDParams contains all the parameters to send to the API endpoint

for the get club activities by Id operation.

Typically these are written to a http.Request.

func NewGetClubActivitiesByIDParams

func NewGetClubActivitiesByIDParams() *GetClubActivitiesByIDParams

NewGetClubActivitiesByIDParams creates a new GetClubActivitiesByIDParams 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 NewGetClubActivitiesByIDParamsWithContext

func NewGetClubActivitiesByIDParamsWithContext(ctx context.Context) *GetClubActivitiesByIDParams

NewGetClubActivitiesByIDParamsWithContext creates a new GetClubActivitiesByIDParams object with the ability to set a context for a request.

func NewGetClubActivitiesByIDParamsWithHTTPClient

func NewGetClubActivitiesByIDParamsWithHTTPClient(client *http.Client) *GetClubActivitiesByIDParams

NewGetClubActivitiesByIDParamsWithHTTPClient creates a new GetClubActivitiesByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClubActivitiesByIDParamsWithTimeout

func NewGetClubActivitiesByIDParamsWithTimeout(timeout time.Duration) *GetClubActivitiesByIDParams

NewGetClubActivitiesByIDParamsWithTimeout creates a new GetClubActivitiesByIDParams object with the ability to set a timeout on a request.

func (*GetClubActivitiesByIDParams) SetContext

func (o *GetClubActivitiesByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get club activities by Id params

func (*GetClubActivitiesByIDParams) SetDefaults

func (o *GetClubActivitiesByIDParams) SetDefaults()

SetDefaults hydrates default values in the get club activities by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubActivitiesByIDParams) SetHTTPClient

func (o *GetClubActivitiesByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get club activities by Id params

func (*GetClubActivitiesByIDParams) SetID

func (o *GetClubActivitiesByIDParams) SetID(id int64)

SetID adds the id to the get club activities by Id params

func (*GetClubActivitiesByIDParams) SetPage

func (o *GetClubActivitiesByIDParams) SetPage(page *int64)

SetPage adds the page to the get club activities by Id params

func (*GetClubActivitiesByIDParams) SetPerPage

func (o *GetClubActivitiesByIDParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the get club activities by Id params

func (*GetClubActivitiesByIDParams) SetTimeout

func (o *GetClubActivitiesByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithContext

WithContext adds the context to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithDefaults

WithDefaults hydrates default values in the get club activities by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubActivitiesByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithID

WithID adds the id to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithPage

WithPage adds the page to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithPerPage

WithPerPage adds the perPage to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WithTimeout

WithTimeout adds the timeout to the get club activities by Id params

func (*GetClubActivitiesByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClubActivitiesByIDReader

type GetClubActivitiesByIDReader struct {
	// contains filtered or unexported fields
}

GetClubActivitiesByIDReader is a Reader for the GetClubActivitiesByID structure.

func (*GetClubActivitiesByIDReader) ReadResponse

func (o *GetClubActivitiesByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetClubAdminsByIDDefault

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

GetClubAdminsByIDDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetClubAdminsByIDDefault

func NewGetClubAdminsByIDDefault(code int) *GetClubAdminsByIDDefault

NewGetClubAdminsByIDDefault creates a GetClubAdminsByIDDefault with default headers values

func (*GetClubAdminsByIDDefault) Code

func (o *GetClubAdminsByIDDefault) Code() int

Code gets the status code for the get club admins by Id default response

func (*GetClubAdminsByIDDefault) Error

func (o *GetClubAdminsByIDDefault) Error() string

func (*GetClubAdminsByIDDefault) GetPayload

func (o *GetClubAdminsByIDDefault) GetPayload() *models.Fault

func (*GetClubAdminsByIDDefault) IsClientError

func (o *GetClubAdminsByIDDefault) IsClientError() bool

IsClientError returns true when this get club admins by Id default response has a 4xx status code

func (*GetClubAdminsByIDDefault) IsCode

func (o *GetClubAdminsByIDDefault) IsCode(code int) bool

IsCode returns true when this get club admins by Id default response a status code equal to that given

func (*GetClubAdminsByIDDefault) IsRedirect

func (o *GetClubAdminsByIDDefault) IsRedirect() bool

IsRedirect returns true when this get club admins by Id default response has a 3xx status code

func (*GetClubAdminsByIDDefault) IsServerError

func (o *GetClubAdminsByIDDefault) IsServerError() bool

IsServerError returns true when this get club admins by Id default response has a 5xx status code

func (*GetClubAdminsByIDDefault) IsSuccess

func (o *GetClubAdminsByIDDefault) IsSuccess() bool

IsSuccess returns true when this get club admins by Id default response has a 2xx status code

func (*GetClubAdminsByIDDefault) String

func (o *GetClubAdminsByIDDefault) String() string

type GetClubAdminsByIDOK

type GetClubAdminsByIDOK struct {
	Payload []*models.SummaryAthlete
}

GetClubAdminsByIDOK describes a response with status code 200, with default header values.

A list of summary athlete representations.

func NewGetClubAdminsByIDOK

func NewGetClubAdminsByIDOK() *GetClubAdminsByIDOK

NewGetClubAdminsByIDOK creates a GetClubAdminsByIDOK with default headers values

func (*GetClubAdminsByIDOK) Code

func (o *GetClubAdminsByIDOK) Code() int

Code gets the status code for the get club admins by Id o k response

func (*GetClubAdminsByIDOK) Error

func (o *GetClubAdminsByIDOK) Error() string

func (*GetClubAdminsByIDOK) GetPayload

func (o *GetClubAdminsByIDOK) GetPayload() []*models.SummaryAthlete

func (*GetClubAdminsByIDOK) IsClientError

func (o *GetClubAdminsByIDOK) IsClientError() bool

IsClientError returns true when this get club admins by Id o k response has a 4xx status code

func (*GetClubAdminsByIDOK) IsCode

func (o *GetClubAdminsByIDOK) IsCode(code int) bool

IsCode returns true when this get club admins by Id o k response a status code equal to that given

func (*GetClubAdminsByIDOK) IsRedirect

func (o *GetClubAdminsByIDOK) IsRedirect() bool

IsRedirect returns true when this get club admins by Id o k response has a 3xx status code

func (*GetClubAdminsByIDOK) IsServerError

func (o *GetClubAdminsByIDOK) IsServerError() bool

IsServerError returns true when this get club admins by Id o k response has a 5xx status code

func (*GetClubAdminsByIDOK) IsSuccess

func (o *GetClubAdminsByIDOK) IsSuccess() bool

IsSuccess returns true when this get club admins by Id o k response has a 2xx status code

func (*GetClubAdminsByIDOK) String

func (o *GetClubAdminsByIDOK) String() string

type GetClubAdminsByIDParams

type GetClubAdminsByIDParams struct {
	/* ID.

	   The identifier of the club.

	   Format: int64
	*/
	ID int64

	/* 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
}

GetClubAdminsByIDParams contains all the parameters to send to the API endpoint

for the get club admins by Id operation.

Typically these are written to a http.Request.

func NewGetClubAdminsByIDParams

func NewGetClubAdminsByIDParams() *GetClubAdminsByIDParams

NewGetClubAdminsByIDParams creates a new GetClubAdminsByIDParams 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 NewGetClubAdminsByIDParamsWithContext

func NewGetClubAdminsByIDParamsWithContext(ctx context.Context) *GetClubAdminsByIDParams

NewGetClubAdminsByIDParamsWithContext creates a new GetClubAdminsByIDParams object with the ability to set a context for a request.

func NewGetClubAdminsByIDParamsWithHTTPClient

func NewGetClubAdminsByIDParamsWithHTTPClient(client *http.Client) *GetClubAdminsByIDParams

NewGetClubAdminsByIDParamsWithHTTPClient creates a new GetClubAdminsByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClubAdminsByIDParamsWithTimeout

func NewGetClubAdminsByIDParamsWithTimeout(timeout time.Duration) *GetClubAdminsByIDParams

NewGetClubAdminsByIDParamsWithTimeout creates a new GetClubAdminsByIDParams object with the ability to set a timeout on a request.

func (*GetClubAdminsByIDParams) SetContext

func (o *GetClubAdminsByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get club admins by Id params

func (*GetClubAdminsByIDParams) SetDefaults

func (o *GetClubAdminsByIDParams) SetDefaults()

SetDefaults hydrates default values in the get club admins by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubAdminsByIDParams) SetHTTPClient

func (o *GetClubAdminsByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get club admins by Id params

func (*GetClubAdminsByIDParams) SetID

func (o *GetClubAdminsByIDParams) SetID(id int64)

SetID adds the id to the get club admins by Id params

func (*GetClubAdminsByIDParams) SetPage

func (o *GetClubAdminsByIDParams) SetPage(page *int64)

SetPage adds the page to the get club admins by Id params

func (*GetClubAdminsByIDParams) SetPerPage

func (o *GetClubAdminsByIDParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the get club admins by Id params

func (*GetClubAdminsByIDParams) SetTimeout

func (o *GetClubAdminsByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithContext

WithContext adds the context to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithDefaults

WithDefaults hydrates default values in the get club admins by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubAdminsByIDParams) WithHTTPClient

func (o *GetClubAdminsByIDParams) WithHTTPClient(client *http.Client) *GetClubAdminsByIDParams

WithHTTPClient adds the HTTPClient to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithID

WithID adds the id to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithPage

WithPage adds the page to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithPerPage

func (o *GetClubAdminsByIDParams) WithPerPage(perPage *int64) *GetClubAdminsByIDParams

WithPerPage adds the perPage to the get club admins by Id params

func (*GetClubAdminsByIDParams) WithTimeout

WithTimeout adds the timeout to the get club admins by Id params

func (*GetClubAdminsByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClubAdminsByIDReader

type GetClubAdminsByIDReader struct {
	// contains filtered or unexported fields
}

GetClubAdminsByIDReader is a Reader for the GetClubAdminsByID structure.

func (*GetClubAdminsByIDReader) ReadResponse

func (o *GetClubAdminsByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetClubByIDDefault

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

GetClubByIDDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetClubByIDDefault

func NewGetClubByIDDefault(code int) *GetClubByIDDefault

NewGetClubByIDDefault creates a GetClubByIDDefault with default headers values

func (*GetClubByIDDefault) Code

func (o *GetClubByIDDefault) Code() int

Code gets the status code for the get club by Id default response

func (*GetClubByIDDefault) Error

func (o *GetClubByIDDefault) Error() string

func (*GetClubByIDDefault) GetPayload

func (o *GetClubByIDDefault) GetPayload() *models.Fault

func (*GetClubByIDDefault) IsClientError

func (o *GetClubByIDDefault) IsClientError() bool

IsClientError returns true when this get club by Id default response has a 4xx status code

func (*GetClubByIDDefault) IsCode

func (o *GetClubByIDDefault) IsCode(code int) bool

IsCode returns true when this get club by Id default response a status code equal to that given

func (*GetClubByIDDefault) IsRedirect

func (o *GetClubByIDDefault) IsRedirect() bool

IsRedirect returns true when this get club by Id default response has a 3xx status code

func (*GetClubByIDDefault) IsServerError

func (o *GetClubByIDDefault) IsServerError() bool

IsServerError returns true when this get club by Id default response has a 5xx status code

func (*GetClubByIDDefault) IsSuccess

func (o *GetClubByIDDefault) IsSuccess() bool

IsSuccess returns true when this get club by Id default response has a 2xx status code

func (*GetClubByIDDefault) String

func (o *GetClubByIDDefault) String() string

type GetClubByIDOK

type GetClubByIDOK struct {
	Payload *models.DetailedClub
}

GetClubByIDOK describes a response with status code 200, with default header values.

The detailed representation of a club.

func NewGetClubByIDOK

func NewGetClubByIDOK() *GetClubByIDOK

NewGetClubByIDOK creates a GetClubByIDOK with default headers values

func (*GetClubByIDOK) Code

func (o *GetClubByIDOK) Code() int

Code gets the status code for the get club by Id o k response

func (*GetClubByIDOK) Error

func (o *GetClubByIDOK) Error() string

func (*GetClubByIDOK) GetPayload

func (o *GetClubByIDOK) GetPayload() *models.DetailedClub

func (*GetClubByIDOK) IsClientError

func (o *GetClubByIDOK) IsClientError() bool

IsClientError returns true when this get club by Id o k response has a 4xx status code

func (*GetClubByIDOK) IsCode

func (o *GetClubByIDOK) IsCode(code int) bool

IsCode returns true when this get club by Id o k response a status code equal to that given

func (*GetClubByIDOK) IsRedirect

func (o *GetClubByIDOK) IsRedirect() bool

IsRedirect returns true when this get club by Id o k response has a 3xx status code

func (*GetClubByIDOK) IsServerError

func (o *GetClubByIDOK) IsServerError() bool

IsServerError returns true when this get club by Id o k response has a 5xx status code

func (*GetClubByIDOK) IsSuccess

func (o *GetClubByIDOK) IsSuccess() bool

IsSuccess returns true when this get club by Id o k response has a 2xx status code

func (*GetClubByIDOK) String

func (o *GetClubByIDOK) String() string

type GetClubByIDParams

type GetClubByIDParams struct {
	/* ID.

	   The identifier of the club.

	   Format: int64
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetClubByIDParams contains all the parameters to send to the API endpoint

for the get club by Id operation.

Typically these are written to a http.Request.

func NewGetClubByIDParams

func NewGetClubByIDParams() *GetClubByIDParams

NewGetClubByIDParams creates a new GetClubByIDParams 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 NewGetClubByIDParamsWithContext

func NewGetClubByIDParamsWithContext(ctx context.Context) *GetClubByIDParams

NewGetClubByIDParamsWithContext creates a new GetClubByIDParams object with the ability to set a context for a request.

func NewGetClubByIDParamsWithHTTPClient

func NewGetClubByIDParamsWithHTTPClient(client *http.Client) *GetClubByIDParams

NewGetClubByIDParamsWithHTTPClient creates a new GetClubByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClubByIDParamsWithTimeout

func NewGetClubByIDParamsWithTimeout(timeout time.Duration) *GetClubByIDParams

NewGetClubByIDParamsWithTimeout creates a new GetClubByIDParams object with the ability to set a timeout on a request.

func (*GetClubByIDParams) SetContext

func (o *GetClubByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get club by Id params

func (*GetClubByIDParams) SetDefaults

func (o *GetClubByIDParams) SetDefaults()

SetDefaults hydrates default values in the get club by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubByIDParams) SetHTTPClient

func (o *GetClubByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get club by Id params

func (*GetClubByIDParams) SetID

func (o *GetClubByIDParams) SetID(id int64)

SetID adds the id to the get club by Id params

func (*GetClubByIDParams) SetTimeout

func (o *GetClubByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get club by Id params

func (*GetClubByIDParams) WithContext

func (o *GetClubByIDParams) WithContext(ctx context.Context) *GetClubByIDParams

WithContext adds the context to the get club by Id params

func (*GetClubByIDParams) WithDefaults

func (o *GetClubByIDParams) WithDefaults() *GetClubByIDParams

WithDefaults hydrates default values in the get club by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubByIDParams) WithHTTPClient

func (o *GetClubByIDParams) WithHTTPClient(client *http.Client) *GetClubByIDParams

WithHTTPClient adds the HTTPClient to the get club by Id params

func (*GetClubByIDParams) WithID

func (o *GetClubByIDParams) WithID(id int64) *GetClubByIDParams

WithID adds the id to the get club by Id params

func (*GetClubByIDParams) WithTimeout

func (o *GetClubByIDParams) WithTimeout(timeout time.Duration) *GetClubByIDParams

WithTimeout adds the timeout to the get club by Id params

func (*GetClubByIDParams) WriteToRequest

func (o *GetClubByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetClubByIDReader

type GetClubByIDReader struct {
	// contains filtered or unexported fields
}

GetClubByIDReader is a Reader for the GetClubByID structure.

func (*GetClubByIDReader) ReadResponse

func (o *GetClubByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetClubMembersByIDDefault

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

GetClubMembersByIDDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetClubMembersByIDDefault

func NewGetClubMembersByIDDefault(code int) *GetClubMembersByIDDefault

NewGetClubMembersByIDDefault creates a GetClubMembersByIDDefault with default headers values

func (*GetClubMembersByIDDefault) Code

func (o *GetClubMembersByIDDefault) Code() int

Code gets the status code for the get club members by Id default response

func (*GetClubMembersByIDDefault) Error

func (o *GetClubMembersByIDDefault) Error() string

func (*GetClubMembersByIDDefault) GetPayload

func (o *GetClubMembersByIDDefault) GetPayload() *models.Fault

func (*GetClubMembersByIDDefault) IsClientError

func (o *GetClubMembersByIDDefault) IsClientError() bool

IsClientError returns true when this get club members by Id default response has a 4xx status code

func (*GetClubMembersByIDDefault) IsCode

func (o *GetClubMembersByIDDefault) IsCode(code int) bool

IsCode returns true when this get club members by Id default response a status code equal to that given

func (*GetClubMembersByIDDefault) IsRedirect

func (o *GetClubMembersByIDDefault) IsRedirect() bool

IsRedirect returns true when this get club members by Id default response has a 3xx status code

func (*GetClubMembersByIDDefault) IsServerError

func (o *GetClubMembersByIDDefault) IsServerError() bool

IsServerError returns true when this get club members by Id default response has a 5xx status code

func (*GetClubMembersByIDDefault) IsSuccess

func (o *GetClubMembersByIDDefault) IsSuccess() bool

IsSuccess returns true when this get club members by Id default response has a 2xx status code

func (*GetClubMembersByIDDefault) String

func (o *GetClubMembersByIDDefault) String() string

type GetClubMembersByIDOK

type GetClubMembersByIDOK struct {
	Payload []*models.ClubAthlete
}

GetClubMembersByIDOK describes a response with status code 200, with default header values.

A list of club athlete representations.

func NewGetClubMembersByIDOK

func NewGetClubMembersByIDOK() *GetClubMembersByIDOK

NewGetClubMembersByIDOK creates a GetClubMembersByIDOK with default headers values

func (*GetClubMembersByIDOK) Code

func (o *GetClubMembersByIDOK) Code() int

Code gets the status code for the get club members by Id o k response

func (*GetClubMembersByIDOK) Error

func (o *GetClubMembersByIDOK) Error() string

func (*GetClubMembersByIDOK) GetPayload

func (o *GetClubMembersByIDOK) GetPayload() []*models.ClubAthlete

func (*GetClubMembersByIDOK) IsClientError

func (o *GetClubMembersByIDOK) IsClientError() bool

IsClientError returns true when this get club members by Id o k response has a 4xx status code

func (*GetClubMembersByIDOK) IsCode

func (o *GetClubMembersByIDOK) IsCode(code int) bool

IsCode returns true when this get club members by Id o k response a status code equal to that given

func (*GetClubMembersByIDOK) IsRedirect

func (o *GetClubMembersByIDOK) IsRedirect() bool

IsRedirect returns true when this get club members by Id o k response has a 3xx status code

func (*GetClubMembersByIDOK) IsServerError

func (o *GetClubMembersByIDOK) IsServerError() bool

IsServerError returns true when this get club members by Id o k response has a 5xx status code

func (*GetClubMembersByIDOK) IsSuccess

func (o *GetClubMembersByIDOK) IsSuccess() bool

IsSuccess returns true when this get club members by Id o k response has a 2xx status code

func (*GetClubMembersByIDOK) String

func (o *GetClubMembersByIDOK) String() string

type GetClubMembersByIDParams

type GetClubMembersByIDParams struct {
	/* ID.

	   The identifier of the club.

	   Format: int64
	*/
	ID int64

	/* 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
}

GetClubMembersByIDParams contains all the parameters to send to the API endpoint

for the get club members by Id operation.

Typically these are written to a http.Request.

func NewGetClubMembersByIDParams

func NewGetClubMembersByIDParams() *GetClubMembersByIDParams

NewGetClubMembersByIDParams creates a new GetClubMembersByIDParams 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 NewGetClubMembersByIDParamsWithContext

func NewGetClubMembersByIDParamsWithContext(ctx context.Context) *GetClubMembersByIDParams

NewGetClubMembersByIDParamsWithContext creates a new GetClubMembersByIDParams object with the ability to set a context for a request.

func NewGetClubMembersByIDParamsWithHTTPClient

func NewGetClubMembersByIDParamsWithHTTPClient(client *http.Client) *GetClubMembersByIDParams

NewGetClubMembersByIDParamsWithHTTPClient creates a new GetClubMembersByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClubMembersByIDParamsWithTimeout

func NewGetClubMembersByIDParamsWithTimeout(timeout time.Duration) *GetClubMembersByIDParams

NewGetClubMembersByIDParamsWithTimeout creates a new GetClubMembersByIDParams object with the ability to set a timeout on a request.

func (*GetClubMembersByIDParams) SetContext

func (o *GetClubMembersByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get club members by Id params

func (*GetClubMembersByIDParams) SetDefaults

func (o *GetClubMembersByIDParams) SetDefaults()

SetDefaults hydrates default values in the get club members by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubMembersByIDParams) SetHTTPClient

func (o *GetClubMembersByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get club members by Id params

func (*GetClubMembersByIDParams) SetID

func (o *GetClubMembersByIDParams) SetID(id int64)

SetID adds the id to the get club members by Id params

func (*GetClubMembersByIDParams) SetPage

func (o *GetClubMembersByIDParams) SetPage(page *int64)

SetPage adds the page to the get club members by Id params

func (*GetClubMembersByIDParams) SetPerPage

func (o *GetClubMembersByIDParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the get club members by Id params

func (*GetClubMembersByIDParams) SetTimeout

func (o *GetClubMembersByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get club members by Id params

func (*GetClubMembersByIDParams) WithContext

WithContext adds the context to the get club members by Id params

func (*GetClubMembersByIDParams) WithDefaults

WithDefaults hydrates default values in the get club members by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetClubMembersByIDParams) WithHTTPClient

func (o *GetClubMembersByIDParams) WithHTTPClient(client *http.Client) *GetClubMembersByIDParams

WithHTTPClient adds the HTTPClient to the get club members by Id params

func (*GetClubMembersByIDParams) WithID

WithID adds the id to the get club members by Id params

func (*GetClubMembersByIDParams) WithPage

WithPage adds the page to the get club members by Id params

func (*GetClubMembersByIDParams) WithPerPage

func (o *GetClubMembersByIDParams) WithPerPage(perPage *int64) *GetClubMembersByIDParams

WithPerPage adds the perPage to the get club members by Id params

func (*GetClubMembersByIDParams) WithTimeout

WithTimeout adds the timeout to the get club members by Id params

func (*GetClubMembersByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClubMembersByIDReader

type GetClubMembersByIDReader struct {
	// contains filtered or unexported fields
}

GetClubMembersByIDReader is a Reader for the GetClubMembersByID structure.

func (*GetClubMembersByIDReader) ReadResponse

func (o *GetClubMembersByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLoggedInAthleteClubsDefault

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

GetLoggedInAthleteClubsDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetLoggedInAthleteClubsDefault

func NewGetLoggedInAthleteClubsDefault(code int) *GetLoggedInAthleteClubsDefault

NewGetLoggedInAthleteClubsDefault creates a GetLoggedInAthleteClubsDefault with default headers values

func (*GetLoggedInAthleteClubsDefault) Code

Code gets the status code for the get logged in athlete clubs default response

func (*GetLoggedInAthleteClubsDefault) Error

func (*GetLoggedInAthleteClubsDefault) GetPayload

func (o *GetLoggedInAthleteClubsDefault) GetPayload() *models.Fault

func (*GetLoggedInAthleteClubsDefault) IsClientError

func (o *GetLoggedInAthleteClubsDefault) IsClientError() bool

IsClientError returns true when this get logged in athlete clubs default response has a 4xx status code

func (*GetLoggedInAthleteClubsDefault) IsCode

func (o *GetLoggedInAthleteClubsDefault) IsCode(code int) bool

IsCode returns true when this get logged in athlete clubs default response a status code equal to that given

func (*GetLoggedInAthleteClubsDefault) IsRedirect

func (o *GetLoggedInAthleteClubsDefault) IsRedirect() bool

IsRedirect returns true when this get logged in athlete clubs default response has a 3xx status code

func (*GetLoggedInAthleteClubsDefault) IsServerError

func (o *GetLoggedInAthleteClubsDefault) IsServerError() bool

IsServerError returns true when this get logged in athlete clubs default response has a 5xx status code

func (*GetLoggedInAthleteClubsDefault) IsSuccess

func (o *GetLoggedInAthleteClubsDefault) IsSuccess() bool

IsSuccess returns true when this get logged in athlete clubs default response has a 2xx status code

func (*GetLoggedInAthleteClubsDefault) String

type GetLoggedInAthleteClubsOK

type GetLoggedInAthleteClubsOK struct {
	Payload []*models.SummaryClub
}

GetLoggedInAthleteClubsOK describes a response with status code 200, with default header values.

A list of summary club representations.

func NewGetLoggedInAthleteClubsOK

func NewGetLoggedInAthleteClubsOK() *GetLoggedInAthleteClubsOK

NewGetLoggedInAthleteClubsOK creates a GetLoggedInAthleteClubsOK with default headers values

func (*GetLoggedInAthleteClubsOK) Code

func (o *GetLoggedInAthleteClubsOK) Code() int

Code gets the status code for the get logged in athlete clubs o k response

func (*GetLoggedInAthleteClubsOK) Error

func (o *GetLoggedInAthleteClubsOK) Error() string

func (*GetLoggedInAthleteClubsOK) GetPayload

func (o *GetLoggedInAthleteClubsOK) GetPayload() []*models.SummaryClub

func (*GetLoggedInAthleteClubsOK) IsClientError

func (o *GetLoggedInAthleteClubsOK) IsClientError() bool

IsClientError returns true when this get logged in athlete clubs o k response has a 4xx status code

func (*GetLoggedInAthleteClubsOK) IsCode

func (o *GetLoggedInAthleteClubsOK) IsCode(code int) bool

IsCode returns true when this get logged in athlete clubs o k response a status code equal to that given

func (*GetLoggedInAthleteClubsOK) IsRedirect

func (o *GetLoggedInAthleteClubsOK) IsRedirect() bool

IsRedirect returns true when this get logged in athlete clubs o k response has a 3xx status code

func (*GetLoggedInAthleteClubsOK) IsServerError

func (o *GetLoggedInAthleteClubsOK) IsServerError() bool

IsServerError returns true when this get logged in athlete clubs o k response has a 5xx status code

func (*GetLoggedInAthleteClubsOK) IsSuccess

func (o *GetLoggedInAthleteClubsOK) IsSuccess() bool

IsSuccess returns true when this get logged in athlete clubs o k response has a 2xx status code

func (*GetLoggedInAthleteClubsOK) String

func (o *GetLoggedInAthleteClubsOK) String() string

type GetLoggedInAthleteClubsParams

type GetLoggedInAthleteClubsParams 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
}

GetLoggedInAthleteClubsParams contains all the parameters to send to the API endpoint

for the get logged in athlete clubs operation.

Typically these are written to a http.Request.

func NewGetLoggedInAthleteClubsParams

func NewGetLoggedInAthleteClubsParams() *GetLoggedInAthleteClubsParams

NewGetLoggedInAthleteClubsParams creates a new GetLoggedInAthleteClubsParams 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 NewGetLoggedInAthleteClubsParamsWithContext

func NewGetLoggedInAthleteClubsParamsWithContext(ctx context.Context) *GetLoggedInAthleteClubsParams

NewGetLoggedInAthleteClubsParamsWithContext creates a new GetLoggedInAthleteClubsParams object with the ability to set a context for a request.

func NewGetLoggedInAthleteClubsParamsWithHTTPClient

func NewGetLoggedInAthleteClubsParamsWithHTTPClient(client *http.Client) *GetLoggedInAthleteClubsParams

NewGetLoggedInAthleteClubsParamsWithHTTPClient creates a new GetLoggedInAthleteClubsParams object with the ability to set a custom HTTPClient for a request.

func NewGetLoggedInAthleteClubsParamsWithTimeout

func NewGetLoggedInAthleteClubsParamsWithTimeout(timeout time.Duration) *GetLoggedInAthleteClubsParams

NewGetLoggedInAthleteClubsParamsWithTimeout creates a new GetLoggedInAthleteClubsParams object with the ability to set a timeout on a request.

func (*GetLoggedInAthleteClubsParams) SetContext

func (o *GetLoggedInAthleteClubsParams) SetContext(ctx context.Context)

SetContext adds the context to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) SetDefaults

func (o *GetLoggedInAthleteClubsParams) SetDefaults()

SetDefaults hydrates default values in the get logged in athlete clubs params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteClubsParams) SetHTTPClient

func (o *GetLoggedInAthleteClubsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) SetPage

func (o *GetLoggedInAthleteClubsParams) SetPage(page *int64)

SetPage adds the page to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) SetPerPage

func (o *GetLoggedInAthleteClubsParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) SetTimeout

func (o *GetLoggedInAthleteClubsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WithContext

WithContext adds the context to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WithDefaults

WithDefaults hydrates default values in the get logged in athlete clubs params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteClubsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WithPage

WithPage adds the page to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WithPerPage

WithPerPage adds the perPage to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WithTimeout

WithTimeout adds the timeout to the get logged in athlete clubs params

func (*GetLoggedInAthleteClubsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLoggedInAthleteClubsReader

type GetLoggedInAthleteClubsReader struct {
	// contains filtered or unexported fields
}

GetLoggedInAthleteClubsReader is a Reader for the GetLoggedInAthleteClubs structure.

func (*GetLoggedInAthleteClubsReader) ReadResponse

func (o *GetLoggedInAthleteClubsReader) 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