streams

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 streams API

func (*Client) GetActivityStreams

func (a *Client) GetActivityStreams(params *GetActivityStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityStreamsOK, error)

GetActivityStreams gets activity streams

Returns the given activity's streams. Requires activity:read scope. Requires activity:read_all scope for Only Me activities.

func (*Client) GetRouteStreams

func (a *Client) GetRouteStreams(params *GetRouteStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteStreamsOK, error)

GetRouteStreams gets route streams

Returns the given route's streams. Requires read_all scope for private routes.

func (*Client) GetSegmentEffortStreams

func (a *Client) GetSegmentEffortStreams(params *GetSegmentEffortStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentEffortStreamsOK, error)

GetSegmentEffortStreams gets segment effort streams

Returns a set of streams for a segment effort completed by the authenticated athlete. Requires read_all scope.

func (*Client) GetSegmentStreams

func (a *Client) GetSegmentStreams(params *GetSegmentStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentStreamsOK, error)

GetSegmentStreams gets segment streams

Returns the given segment's streams. Requires read_all scope for private segments.

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 {
	GetActivityStreams(params *GetActivityStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityStreamsOK, error)

	GetRouteStreams(params *GetRouteStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRouteStreamsOK, error)

	GetSegmentEffortStreams(params *GetSegmentEffortStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentEffortStreamsOK, error)

	GetSegmentStreams(params *GetSegmentStreamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentStreamsOK, 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 streams API client.

type GetActivityStreamsDefault

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

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

Unexpected error.

func NewGetActivityStreamsDefault

func NewGetActivityStreamsDefault(code int) *GetActivityStreamsDefault

NewGetActivityStreamsDefault creates a GetActivityStreamsDefault with default headers values

func (*GetActivityStreamsDefault) Code

func (o *GetActivityStreamsDefault) Code() int

Code gets the status code for the get activity streams default response

func (*GetActivityStreamsDefault) Error

func (o *GetActivityStreamsDefault) Error() string

func (*GetActivityStreamsDefault) GetPayload

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

func (*GetActivityStreamsDefault) IsClientError added in v0.0.5

func (o *GetActivityStreamsDefault) IsClientError() bool

IsClientError returns true when this get activity streams default response has a 4xx status code

func (*GetActivityStreamsDefault) IsCode added in v0.0.5

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

IsCode returns true when this get activity streams default response a status code equal to that given

func (*GetActivityStreamsDefault) IsRedirect added in v0.0.5

func (o *GetActivityStreamsDefault) IsRedirect() bool

IsRedirect returns true when this get activity streams default response has a 3xx status code

func (*GetActivityStreamsDefault) IsServerError added in v0.0.5

func (o *GetActivityStreamsDefault) IsServerError() bool

IsServerError returns true when this get activity streams default response has a 5xx status code

func (*GetActivityStreamsDefault) IsSuccess added in v0.0.5

func (o *GetActivityStreamsDefault) IsSuccess() bool

IsSuccess returns true when this get activity streams default response has a 2xx status code

func (*GetActivityStreamsDefault) String added in v0.0.5

func (o *GetActivityStreamsDefault) String() string

type GetActivityStreamsOK

type GetActivityStreamsOK struct {
	Payload *models.StreamSet
}

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

The set of requested streams.

func NewGetActivityStreamsOK

func NewGetActivityStreamsOK() *GetActivityStreamsOK

NewGetActivityStreamsOK creates a GetActivityStreamsOK with default headers values

func (*GetActivityStreamsOK) Code added in v0.0.7

func (o *GetActivityStreamsOK) Code() int

Code gets the status code for the get activity streams o k response

func (*GetActivityStreamsOK) Error

func (o *GetActivityStreamsOK) Error() string

func (*GetActivityStreamsOK) GetPayload

func (o *GetActivityStreamsOK) GetPayload() *models.StreamSet

func (*GetActivityStreamsOK) IsClientError added in v0.0.5

func (o *GetActivityStreamsOK) IsClientError() bool

IsClientError returns true when this get activity streams o k response has a 4xx status code

func (*GetActivityStreamsOK) IsCode added in v0.0.5

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

IsCode returns true when this get activity streams o k response a status code equal to that given

func (*GetActivityStreamsOK) IsRedirect added in v0.0.5

func (o *GetActivityStreamsOK) IsRedirect() bool

IsRedirect returns true when this get activity streams o k response has a 3xx status code

func (*GetActivityStreamsOK) IsServerError added in v0.0.5

func (o *GetActivityStreamsOK) IsServerError() bool

IsServerError returns true when this get activity streams o k response has a 5xx status code

func (*GetActivityStreamsOK) IsSuccess added in v0.0.5

func (o *GetActivityStreamsOK) IsSuccess() bool

IsSuccess returns true when this get activity streams o k response has a 2xx status code

func (*GetActivityStreamsOK) String added in v0.0.5

func (o *GetActivityStreamsOK) String() string

type GetActivityStreamsParams

type GetActivityStreamsParams struct {

	/* ID.

	   The identifier of the activity.

	   Format: int64
	*/
	ID int64

	/* KeyByType.

	   Must be true.

	   Default: true
	*/
	KeyByType bool

	/* Keys.

	   Desired stream types.
	*/
	Keys []string

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

GetActivityStreamsParams contains all the parameters to send to the API endpoint

for the get activity streams operation.

Typically these are written to a http.Request.

func NewGetActivityStreamsParams

func NewGetActivityStreamsParams() *GetActivityStreamsParams

NewGetActivityStreamsParams creates a new GetActivityStreamsParams 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 NewGetActivityStreamsParamsWithContext

func NewGetActivityStreamsParamsWithContext(ctx context.Context) *GetActivityStreamsParams

NewGetActivityStreamsParamsWithContext creates a new GetActivityStreamsParams object with the ability to set a context for a request.

func NewGetActivityStreamsParamsWithHTTPClient

func NewGetActivityStreamsParamsWithHTTPClient(client *http.Client) *GetActivityStreamsParams

NewGetActivityStreamsParamsWithHTTPClient creates a new GetActivityStreamsParams object with the ability to set a custom HTTPClient for a request.

func NewGetActivityStreamsParamsWithTimeout

func NewGetActivityStreamsParamsWithTimeout(timeout time.Duration) *GetActivityStreamsParams

NewGetActivityStreamsParamsWithTimeout creates a new GetActivityStreamsParams object with the ability to set a timeout on a request.

func (*GetActivityStreamsParams) SetContext

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

SetContext adds the context to the get activity streams params

func (*GetActivityStreamsParams) SetDefaults

func (o *GetActivityStreamsParams) SetDefaults()

SetDefaults hydrates default values in the get activity streams params (not the query body).

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

func (*GetActivityStreamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get activity streams params

func (*GetActivityStreamsParams) SetID

func (o *GetActivityStreamsParams) SetID(id int64)

SetID adds the id to the get activity streams params

func (*GetActivityStreamsParams) SetKeyByType

func (o *GetActivityStreamsParams) SetKeyByType(keyByType bool)

SetKeyByType adds the keyByType to the get activity streams params

func (*GetActivityStreamsParams) SetKeys

func (o *GetActivityStreamsParams) SetKeys(keys []string)

SetKeys adds the keys to the get activity streams params

func (*GetActivityStreamsParams) SetTimeout

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

SetTimeout adds the timeout to the get activity streams params

func (*GetActivityStreamsParams) WithContext

WithContext adds the context to the get activity streams params

func (*GetActivityStreamsParams) WithDefaults

WithDefaults hydrates default values in the get activity streams params (not the query body).

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

func (*GetActivityStreamsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get activity streams params

func (*GetActivityStreamsParams) WithID

WithID adds the id to the get activity streams params

func (*GetActivityStreamsParams) WithKeyByType

func (o *GetActivityStreamsParams) WithKeyByType(keyByType bool) *GetActivityStreamsParams

WithKeyByType adds the keyByType to the get activity streams params

func (*GetActivityStreamsParams) WithKeys

WithKeys adds the keys to the get activity streams params

func (*GetActivityStreamsParams) WithTimeout

WithTimeout adds the timeout to the get activity streams params

func (*GetActivityStreamsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetActivityStreamsReader

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

GetActivityStreamsReader is a Reader for the GetActivityStreams structure.

func (*GetActivityStreamsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRouteStreamsDefault

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

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

Unexpected error.

func NewGetRouteStreamsDefault

func NewGetRouteStreamsDefault(code int) *GetRouteStreamsDefault

NewGetRouteStreamsDefault creates a GetRouteStreamsDefault with default headers values

func (*GetRouteStreamsDefault) Code

func (o *GetRouteStreamsDefault) Code() int

Code gets the status code for the get route streams default response

func (*GetRouteStreamsDefault) Error

func (o *GetRouteStreamsDefault) Error() string

func (*GetRouteStreamsDefault) GetPayload

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

func (*GetRouteStreamsDefault) IsClientError added in v0.0.5

func (o *GetRouteStreamsDefault) IsClientError() bool

IsClientError returns true when this get route streams default response has a 4xx status code

func (*GetRouteStreamsDefault) IsCode added in v0.0.5

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

IsCode returns true when this get route streams default response a status code equal to that given

func (*GetRouteStreamsDefault) IsRedirect added in v0.0.5

func (o *GetRouteStreamsDefault) IsRedirect() bool

IsRedirect returns true when this get route streams default response has a 3xx status code

func (*GetRouteStreamsDefault) IsServerError added in v0.0.5

func (o *GetRouteStreamsDefault) IsServerError() bool

IsServerError returns true when this get route streams default response has a 5xx status code

func (*GetRouteStreamsDefault) IsSuccess added in v0.0.5

func (o *GetRouteStreamsDefault) IsSuccess() bool

IsSuccess returns true when this get route streams default response has a 2xx status code

func (*GetRouteStreamsDefault) String added in v0.0.5

func (o *GetRouteStreamsDefault) String() string

type GetRouteStreamsOK

type GetRouteStreamsOK struct {
	Payload *models.StreamSet
}

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

The set of requested streams.

func NewGetRouteStreamsOK

func NewGetRouteStreamsOK() *GetRouteStreamsOK

NewGetRouteStreamsOK creates a GetRouteStreamsOK with default headers values

func (*GetRouteStreamsOK) Code added in v0.0.7

func (o *GetRouteStreamsOK) Code() int

Code gets the status code for the get route streams o k response

func (*GetRouteStreamsOK) Error

func (o *GetRouteStreamsOK) Error() string

func (*GetRouteStreamsOK) GetPayload

func (o *GetRouteStreamsOK) GetPayload() *models.StreamSet

func (*GetRouteStreamsOK) IsClientError added in v0.0.5

func (o *GetRouteStreamsOK) IsClientError() bool

IsClientError returns true when this get route streams o k response has a 4xx status code

func (*GetRouteStreamsOK) IsCode added in v0.0.5

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

IsCode returns true when this get route streams o k response a status code equal to that given

func (*GetRouteStreamsOK) IsRedirect added in v0.0.5

func (o *GetRouteStreamsOK) IsRedirect() bool

IsRedirect returns true when this get route streams o k response has a 3xx status code

func (*GetRouteStreamsOK) IsServerError added in v0.0.5

func (o *GetRouteStreamsOK) IsServerError() bool

IsServerError returns true when this get route streams o k response has a 5xx status code

func (*GetRouteStreamsOK) IsSuccess added in v0.0.5

func (o *GetRouteStreamsOK) IsSuccess() bool

IsSuccess returns true when this get route streams o k response has a 2xx status code

func (*GetRouteStreamsOK) String added in v0.0.5

func (o *GetRouteStreamsOK) String() string

type GetRouteStreamsParams

type GetRouteStreamsParams struct {

	/* ID.

	   The identifier of the route.

	   Format: int64
	*/
	ID int64

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

GetRouteStreamsParams contains all the parameters to send to the API endpoint

for the get route streams operation.

Typically these are written to a http.Request.

func NewGetRouteStreamsParams

func NewGetRouteStreamsParams() *GetRouteStreamsParams

NewGetRouteStreamsParams creates a new GetRouteStreamsParams 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 NewGetRouteStreamsParamsWithContext

func NewGetRouteStreamsParamsWithContext(ctx context.Context) *GetRouteStreamsParams

NewGetRouteStreamsParamsWithContext creates a new GetRouteStreamsParams object with the ability to set a context for a request.

func NewGetRouteStreamsParamsWithHTTPClient

func NewGetRouteStreamsParamsWithHTTPClient(client *http.Client) *GetRouteStreamsParams

NewGetRouteStreamsParamsWithHTTPClient creates a new GetRouteStreamsParams object with the ability to set a custom HTTPClient for a request.

func NewGetRouteStreamsParamsWithTimeout

func NewGetRouteStreamsParamsWithTimeout(timeout time.Duration) *GetRouteStreamsParams

NewGetRouteStreamsParamsWithTimeout creates a new GetRouteStreamsParams object with the ability to set a timeout on a request.

func (*GetRouteStreamsParams) SetContext

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

SetContext adds the context to the get route streams params

func (*GetRouteStreamsParams) SetDefaults

func (o *GetRouteStreamsParams) SetDefaults()

SetDefaults hydrates default values in the get route streams params (not the query body).

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

func (*GetRouteStreamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get route streams params

func (*GetRouteStreamsParams) SetID

func (o *GetRouteStreamsParams) SetID(id int64)

SetID adds the id to the get route streams params

func (*GetRouteStreamsParams) SetTimeout

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

SetTimeout adds the timeout to the get route streams params

func (*GetRouteStreamsParams) WithContext

WithContext adds the context to the get route streams params

func (*GetRouteStreamsParams) WithDefaults

func (o *GetRouteStreamsParams) WithDefaults() *GetRouteStreamsParams

WithDefaults hydrates default values in the get route streams params (not the query body).

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

func (*GetRouteStreamsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get route streams params

func (*GetRouteStreamsParams) WithID

WithID adds the id to the get route streams params

func (*GetRouteStreamsParams) WithTimeout

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

WithTimeout adds the timeout to the get route streams params

func (*GetRouteStreamsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRouteStreamsReader

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

GetRouteStreamsReader is a Reader for the GetRouteStreams structure.

func (*GetRouteStreamsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSegmentEffortStreamsDefault

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

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

Unexpected error.

func NewGetSegmentEffortStreamsDefault

func NewGetSegmentEffortStreamsDefault(code int) *GetSegmentEffortStreamsDefault

NewGetSegmentEffortStreamsDefault creates a GetSegmentEffortStreamsDefault with default headers values

func (*GetSegmentEffortStreamsDefault) Code

Code gets the status code for the get segment effort streams default response

func (*GetSegmentEffortStreamsDefault) Error

func (*GetSegmentEffortStreamsDefault) GetPayload

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

func (*GetSegmentEffortStreamsDefault) IsClientError added in v0.0.5

func (o *GetSegmentEffortStreamsDefault) IsClientError() bool

IsClientError returns true when this get segment effort streams default response has a 4xx status code

func (*GetSegmentEffortStreamsDefault) IsCode added in v0.0.5

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

IsCode returns true when this get segment effort streams default response a status code equal to that given

func (*GetSegmentEffortStreamsDefault) IsRedirect added in v0.0.5

func (o *GetSegmentEffortStreamsDefault) IsRedirect() bool

IsRedirect returns true when this get segment effort streams default response has a 3xx status code

func (*GetSegmentEffortStreamsDefault) IsServerError added in v0.0.5

func (o *GetSegmentEffortStreamsDefault) IsServerError() bool

IsServerError returns true when this get segment effort streams default response has a 5xx status code

func (*GetSegmentEffortStreamsDefault) IsSuccess added in v0.0.5

func (o *GetSegmentEffortStreamsDefault) IsSuccess() bool

IsSuccess returns true when this get segment effort streams default response has a 2xx status code

func (*GetSegmentEffortStreamsDefault) String added in v0.0.5

type GetSegmentEffortStreamsOK

type GetSegmentEffortStreamsOK struct {
	Payload *models.StreamSet
}

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

The set of requested streams.

func NewGetSegmentEffortStreamsOK

func NewGetSegmentEffortStreamsOK() *GetSegmentEffortStreamsOK

NewGetSegmentEffortStreamsOK creates a GetSegmentEffortStreamsOK with default headers values

func (*GetSegmentEffortStreamsOK) Code added in v0.0.7

func (o *GetSegmentEffortStreamsOK) Code() int

Code gets the status code for the get segment effort streams o k response

func (*GetSegmentEffortStreamsOK) Error

func (o *GetSegmentEffortStreamsOK) Error() string

func (*GetSegmentEffortStreamsOK) GetPayload

func (o *GetSegmentEffortStreamsOK) GetPayload() *models.StreamSet

func (*GetSegmentEffortStreamsOK) IsClientError added in v0.0.5

func (o *GetSegmentEffortStreamsOK) IsClientError() bool

IsClientError returns true when this get segment effort streams o k response has a 4xx status code

func (*GetSegmentEffortStreamsOK) IsCode added in v0.0.5

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

IsCode returns true when this get segment effort streams o k response a status code equal to that given

func (*GetSegmentEffortStreamsOK) IsRedirect added in v0.0.5

func (o *GetSegmentEffortStreamsOK) IsRedirect() bool

IsRedirect returns true when this get segment effort streams o k response has a 3xx status code

func (*GetSegmentEffortStreamsOK) IsServerError added in v0.0.5

func (o *GetSegmentEffortStreamsOK) IsServerError() bool

IsServerError returns true when this get segment effort streams o k response has a 5xx status code

func (*GetSegmentEffortStreamsOK) IsSuccess added in v0.0.5

func (o *GetSegmentEffortStreamsOK) IsSuccess() bool

IsSuccess returns true when this get segment effort streams o k response has a 2xx status code

func (*GetSegmentEffortStreamsOK) String added in v0.0.5

func (o *GetSegmentEffortStreamsOK) String() string

type GetSegmentEffortStreamsParams

type GetSegmentEffortStreamsParams struct {

	/* ID.

	   The identifier of the segment effort.

	   Format: int64
	*/
	ID int64

	/* KeyByType.

	   Must be true.

	   Default: true
	*/
	KeyByType bool

	/* Keys.

	   The types of streams to return.
	*/
	Keys []string

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

GetSegmentEffortStreamsParams contains all the parameters to send to the API endpoint

for the get segment effort streams operation.

Typically these are written to a http.Request.

func NewGetSegmentEffortStreamsParams

func NewGetSegmentEffortStreamsParams() *GetSegmentEffortStreamsParams

NewGetSegmentEffortStreamsParams creates a new GetSegmentEffortStreamsParams 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 NewGetSegmentEffortStreamsParamsWithContext

func NewGetSegmentEffortStreamsParamsWithContext(ctx context.Context) *GetSegmentEffortStreamsParams

NewGetSegmentEffortStreamsParamsWithContext creates a new GetSegmentEffortStreamsParams object with the ability to set a context for a request.

func NewGetSegmentEffortStreamsParamsWithHTTPClient

func NewGetSegmentEffortStreamsParamsWithHTTPClient(client *http.Client) *GetSegmentEffortStreamsParams

NewGetSegmentEffortStreamsParamsWithHTTPClient creates a new GetSegmentEffortStreamsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSegmentEffortStreamsParamsWithTimeout

func NewGetSegmentEffortStreamsParamsWithTimeout(timeout time.Duration) *GetSegmentEffortStreamsParams

NewGetSegmentEffortStreamsParamsWithTimeout creates a new GetSegmentEffortStreamsParams object with the ability to set a timeout on a request.

func (*GetSegmentEffortStreamsParams) SetContext

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

SetContext adds the context to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) SetDefaults

func (o *GetSegmentEffortStreamsParams) SetDefaults()

SetDefaults hydrates default values in the get segment effort streams params (not the query body).

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

func (*GetSegmentEffortStreamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) SetID

func (o *GetSegmentEffortStreamsParams) SetID(id int64)

SetID adds the id to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) SetKeyByType

func (o *GetSegmentEffortStreamsParams) SetKeyByType(keyByType bool)

SetKeyByType adds the keyByType to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) SetKeys

func (o *GetSegmentEffortStreamsParams) SetKeys(keys []string)

SetKeys adds the keys to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) SetTimeout

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

SetTimeout adds the timeout to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithContext

WithContext adds the context to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithDefaults

WithDefaults hydrates default values in the get segment effort streams params (not the query body).

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

func (*GetSegmentEffortStreamsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithID

WithID adds the id to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithKeyByType

WithKeyByType adds the keyByType to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithKeys

WithKeys adds the keys to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WithTimeout

WithTimeout adds the timeout to the get segment effort streams params

func (*GetSegmentEffortStreamsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSegmentEffortStreamsReader

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

GetSegmentEffortStreamsReader is a Reader for the GetSegmentEffortStreams structure.

func (*GetSegmentEffortStreamsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSegmentStreamsDefault

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

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

Unexpected error.

func NewGetSegmentStreamsDefault

func NewGetSegmentStreamsDefault(code int) *GetSegmentStreamsDefault

NewGetSegmentStreamsDefault creates a GetSegmentStreamsDefault with default headers values

func (*GetSegmentStreamsDefault) Code

func (o *GetSegmentStreamsDefault) Code() int

Code gets the status code for the get segment streams default response

func (*GetSegmentStreamsDefault) Error

func (o *GetSegmentStreamsDefault) Error() string

func (*GetSegmentStreamsDefault) GetPayload

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

func (*GetSegmentStreamsDefault) IsClientError added in v0.0.5

func (o *GetSegmentStreamsDefault) IsClientError() bool

IsClientError returns true when this get segment streams default response has a 4xx status code

func (*GetSegmentStreamsDefault) IsCode added in v0.0.5

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

IsCode returns true when this get segment streams default response a status code equal to that given

func (*GetSegmentStreamsDefault) IsRedirect added in v0.0.5

func (o *GetSegmentStreamsDefault) IsRedirect() bool

IsRedirect returns true when this get segment streams default response has a 3xx status code

func (*GetSegmentStreamsDefault) IsServerError added in v0.0.5

func (o *GetSegmentStreamsDefault) IsServerError() bool

IsServerError returns true when this get segment streams default response has a 5xx status code

func (*GetSegmentStreamsDefault) IsSuccess added in v0.0.5

func (o *GetSegmentStreamsDefault) IsSuccess() bool

IsSuccess returns true when this get segment streams default response has a 2xx status code

func (*GetSegmentStreamsDefault) String added in v0.0.5

func (o *GetSegmentStreamsDefault) String() string

type GetSegmentStreamsOK

type GetSegmentStreamsOK struct {
	Payload *models.StreamSet
}

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

The set of requested streams.

func NewGetSegmentStreamsOK

func NewGetSegmentStreamsOK() *GetSegmentStreamsOK

NewGetSegmentStreamsOK creates a GetSegmentStreamsOK with default headers values

func (*GetSegmentStreamsOK) Code added in v0.0.7

func (o *GetSegmentStreamsOK) Code() int

Code gets the status code for the get segment streams o k response

func (*GetSegmentStreamsOK) Error

func (o *GetSegmentStreamsOK) Error() string

func (*GetSegmentStreamsOK) GetPayload

func (o *GetSegmentStreamsOK) GetPayload() *models.StreamSet

func (*GetSegmentStreamsOK) IsClientError added in v0.0.5

func (o *GetSegmentStreamsOK) IsClientError() bool

IsClientError returns true when this get segment streams o k response has a 4xx status code

func (*GetSegmentStreamsOK) IsCode added in v0.0.5

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

IsCode returns true when this get segment streams o k response a status code equal to that given

func (*GetSegmentStreamsOK) IsRedirect added in v0.0.5

func (o *GetSegmentStreamsOK) IsRedirect() bool

IsRedirect returns true when this get segment streams o k response has a 3xx status code

func (*GetSegmentStreamsOK) IsServerError added in v0.0.5

func (o *GetSegmentStreamsOK) IsServerError() bool

IsServerError returns true when this get segment streams o k response has a 5xx status code

func (*GetSegmentStreamsOK) IsSuccess added in v0.0.5

func (o *GetSegmentStreamsOK) IsSuccess() bool

IsSuccess returns true when this get segment streams o k response has a 2xx status code

func (*GetSegmentStreamsOK) String added in v0.0.5

func (o *GetSegmentStreamsOK) String() string

type GetSegmentStreamsParams

type GetSegmentStreamsParams struct {

	/* ID.

	   The identifier of the segment.

	   Format: int64
	*/
	ID int64

	/* KeyByType.

	   Must be true.

	   Default: true
	*/
	KeyByType bool

	/* Keys.

	   The types of streams to return.
	*/
	Keys []string

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

GetSegmentStreamsParams contains all the parameters to send to the API endpoint

for the get segment streams operation.

Typically these are written to a http.Request.

func NewGetSegmentStreamsParams

func NewGetSegmentStreamsParams() *GetSegmentStreamsParams

NewGetSegmentStreamsParams creates a new GetSegmentStreamsParams 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 NewGetSegmentStreamsParamsWithContext

func NewGetSegmentStreamsParamsWithContext(ctx context.Context) *GetSegmentStreamsParams

NewGetSegmentStreamsParamsWithContext creates a new GetSegmentStreamsParams object with the ability to set a context for a request.

func NewGetSegmentStreamsParamsWithHTTPClient

func NewGetSegmentStreamsParamsWithHTTPClient(client *http.Client) *GetSegmentStreamsParams

NewGetSegmentStreamsParamsWithHTTPClient creates a new GetSegmentStreamsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSegmentStreamsParamsWithTimeout

func NewGetSegmentStreamsParamsWithTimeout(timeout time.Duration) *GetSegmentStreamsParams

NewGetSegmentStreamsParamsWithTimeout creates a new GetSegmentStreamsParams object with the ability to set a timeout on a request.

func (*GetSegmentStreamsParams) SetContext

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

SetContext adds the context to the get segment streams params

func (*GetSegmentStreamsParams) SetDefaults

func (o *GetSegmentStreamsParams) SetDefaults()

SetDefaults hydrates default values in the get segment streams params (not the query body).

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

func (*GetSegmentStreamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get segment streams params

func (*GetSegmentStreamsParams) SetID

func (o *GetSegmentStreamsParams) SetID(id int64)

SetID adds the id to the get segment streams params

func (*GetSegmentStreamsParams) SetKeyByType

func (o *GetSegmentStreamsParams) SetKeyByType(keyByType bool)

SetKeyByType adds the keyByType to the get segment streams params

func (*GetSegmentStreamsParams) SetKeys

func (o *GetSegmentStreamsParams) SetKeys(keys []string)

SetKeys adds the keys to the get segment streams params

func (*GetSegmentStreamsParams) SetTimeout

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

SetTimeout adds the timeout to the get segment streams params

func (*GetSegmentStreamsParams) WithContext

WithContext adds the context to the get segment streams params

func (*GetSegmentStreamsParams) WithDefaults

WithDefaults hydrates default values in the get segment streams params (not the query body).

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

func (*GetSegmentStreamsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get segment streams params

func (*GetSegmentStreamsParams) WithID

WithID adds the id to the get segment streams params

func (*GetSegmentStreamsParams) WithKeyByType

func (o *GetSegmentStreamsParams) WithKeyByType(keyByType bool) *GetSegmentStreamsParams

WithKeyByType adds the keyByType to the get segment streams params

func (*GetSegmentStreamsParams) WithKeys

WithKeys adds the keys to the get segment streams params

func (*GetSegmentStreamsParams) WithTimeout

WithTimeout adds the timeout to the get segment streams params

func (*GetSegmentStreamsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSegmentStreamsReader

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

GetSegmentStreamsReader is a Reader for the GetSegmentStreams structure.

func (*GetSegmentStreamsReader) ReadResponse

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