Documentation ¶
Index ¶
- type Client
- func (a *Client) SearchSubscriptions(params *SearchSubscriptionsParams, opts ...ClientOption) (*SearchSubscriptionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Stream(params *StreamParams, opts ...ClientOption) (*StreamOK, error)
- func (a *Client) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error)
- type ClientOption
- type ClientService
- type SearchSubscriptionsForbidden
- type SearchSubscriptionsInternalServerError
- type SearchSubscriptionsNotFound
- type SearchSubscriptionsOK
- type SearchSubscriptionsParams
- func NewSearchSubscriptionsParams() *SearchSubscriptionsParams
- func NewSearchSubscriptionsParamsWithContext(ctx context.Context) *SearchSubscriptionsParams
- func NewSearchSubscriptionsParamsWithHTTPClient(client *http.Client) *SearchSubscriptionsParams
- func NewSearchSubscriptionsParamsWithTimeout(timeout time.Duration) *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) SetBody(body *models.ActivitySearchSubscriptionsRequest)
- func (o *SearchSubscriptionsParams) SetContext(ctx context.Context)
- func (o *SearchSubscriptionsParams) SetDefaults()
- func (o *SearchSubscriptionsParams) SetHTTPClient(client *http.Client)
- func (o *SearchSubscriptionsParams) SetTimeout(timeout time.Duration)
- func (o *SearchSubscriptionsParams) WithBody(body *models.ActivitySearchSubscriptionsRequest) *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) WithContext(ctx context.Context) *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) WithDefaults() *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) WithHTTPClient(client *http.Client) *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) WithTimeout(timeout time.Duration) *SearchSubscriptionsParams
- func (o *SearchSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchSubscriptionsReader
- type SearchSubscriptionsUnauthorized
- type StreamForbidden
- type StreamInternalServerError
- type StreamNotFound
- type StreamOK
- type StreamParams
- func (o *StreamParams) SetBody(body *models.ActivityStreamActivitiesRequest)
- func (o *StreamParams) SetContext(ctx context.Context)
- func (o *StreamParams) SetDefaults()
- func (o *StreamParams) SetHTTPClient(client *http.Client)
- func (o *StreamParams) SetTimeout(timeout time.Duration)
- func (o *StreamParams) WithBody(body *models.ActivityStreamActivitiesRequest) *StreamParams
- func (o *StreamParams) WithContext(ctx context.Context) *StreamParams
- func (o *StreamParams) WithDefaults() *StreamParams
- func (o *StreamParams) WithHTTPClient(client *http.Client) *StreamParams
- func (o *StreamParams) WithTimeout(timeout time.Duration) *StreamParams
- func (o *StreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StreamReader
- type StreamUnauthorized
- type SubscribeForbidden
- type SubscribeInternalServerError
- type SubscribeNotFound
- type SubscribeOK
- type SubscribeParams
- func (o *SubscribeParams) SetBody(body *models.ActivitySubscription)
- func (o *SubscribeParams) SetContext(ctx context.Context)
- func (o *SubscribeParams) SetDefaults()
- func (o *SubscribeParams) SetHTTPClient(client *http.Client)
- func (o *SubscribeParams) SetTimeout(timeout time.Duration)
- func (o *SubscribeParams) WithBody(body *models.ActivitySubscription) *SubscribeParams
- func (o *SubscribeParams) WithContext(ctx context.Context) *SubscribeParams
- func (o *SubscribeParams) WithDefaults() *SubscribeParams
- func (o *SubscribeParams) WithHTTPClient(client *http.Client) *SubscribeParams
- func (o *SubscribeParams) WithTimeout(timeout time.Duration) *SubscribeParams
- func (o *SubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubscribeReader
- type SubscribeUnauthorized
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 activity service API
func (*Client) SearchSubscriptions ¶
func (a *Client) SearchSubscriptions(params *SearchSubscriptionsParams, opts ...ClientOption) (*SearchSubscriptionsOK, error)
SearchSubscriptions loads subscriptions to other users nodes feeds
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Stream ¶
func (a *Client) Stream(params *StreamParams, opts ...ClientOption) (*StreamOK, error)
Stream loads the the feeds of the currently logged user
func (*Client) Subscribe ¶
func (a *Client) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error)
Subscribe manages subscriptions to other users nodes feeds
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SearchSubscriptions(params *SearchSubscriptionsParams, opts ...ClientOption) (*SearchSubscriptionsOK, error) Stream(params *StreamParams, opts ...ClientOption) (*StreamOK, error) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, 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 activity service API client.
type SearchSubscriptionsForbidden ¶
SearchSubscriptionsForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewSearchSubscriptionsForbidden ¶
func NewSearchSubscriptionsForbidden() *SearchSubscriptionsForbidden
NewSearchSubscriptionsForbidden creates a SearchSubscriptionsForbidden with default headers values
func (*SearchSubscriptionsForbidden) Error ¶
func (o *SearchSubscriptionsForbidden) Error() string
func (*SearchSubscriptionsForbidden) GetPayload ¶
func (o *SearchSubscriptionsForbidden) GetPayload() *models.RestError
type SearchSubscriptionsInternalServerError ¶
SearchSubscriptionsInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewSearchSubscriptionsInternalServerError ¶
func NewSearchSubscriptionsInternalServerError() *SearchSubscriptionsInternalServerError
NewSearchSubscriptionsInternalServerError creates a SearchSubscriptionsInternalServerError with default headers values
func (*SearchSubscriptionsInternalServerError) Error ¶
func (o *SearchSubscriptionsInternalServerError) Error() string
func (*SearchSubscriptionsInternalServerError) GetPayload ¶
func (o *SearchSubscriptionsInternalServerError) GetPayload() *models.RestError
type SearchSubscriptionsNotFound ¶
SearchSubscriptionsNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewSearchSubscriptionsNotFound ¶
func NewSearchSubscriptionsNotFound() *SearchSubscriptionsNotFound
NewSearchSubscriptionsNotFound creates a SearchSubscriptionsNotFound with default headers values
func (*SearchSubscriptionsNotFound) Error ¶
func (o *SearchSubscriptionsNotFound) Error() string
func (*SearchSubscriptionsNotFound) GetPayload ¶
func (o *SearchSubscriptionsNotFound) GetPayload() *models.RestError
type SearchSubscriptionsOK ¶
type SearchSubscriptionsOK struct {
Payload *models.RestSubscriptionsCollection
}
SearchSubscriptionsOK describes a response with status code 200, with default header values.
SearchSubscriptionsOK search subscriptions o k
func NewSearchSubscriptionsOK ¶
func NewSearchSubscriptionsOK() *SearchSubscriptionsOK
NewSearchSubscriptionsOK creates a SearchSubscriptionsOK with default headers values
func (*SearchSubscriptionsOK) Error ¶
func (o *SearchSubscriptionsOK) Error() string
func (*SearchSubscriptionsOK) GetPayload ¶
func (o *SearchSubscriptionsOK) GetPayload() *models.RestSubscriptionsCollection
type SearchSubscriptionsParams ¶
type SearchSubscriptionsParams struct { // Body. Body *models.ActivitySearchSubscriptionsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchSubscriptionsParams contains all the parameters to send to the API endpoint
for the search subscriptions operation. Typically these are written to a http.Request.
func NewSearchSubscriptionsParams ¶
func NewSearchSubscriptionsParams() *SearchSubscriptionsParams
NewSearchSubscriptionsParams creates a new SearchSubscriptionsParams 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 NewSearchSubscriptionsParamsWithContext ¶
func NewSearchSubscriptionsParamsWithContext(ctx context.Context) *SearchSubscriptionsParams
NewSearchSubscriptionsParamsWithContext creates a new SearchSubscriptionsParams object with the ability to set a context for a request.
func NewSearchSubscriptionsParamsWithHTTPClient ¶
func NewSearchSubscriptionsParamsWithHTTPClient(client *http.Client) *SearchSubscriptionsParams
NewSearchSubscriptionsParamsWithHTTPClient creates a new SearchSubscriptionsParams object with the ability to set a custom HTTPClient for a request.
func NewSearchSubscriptionsParamsWithTimeout ¶
func NewSearchSubscriptionsParamsWithTimeout(timeout time.Duration) *SearchSubscriptionsParams
NewSearchSubscriptionsParamsWithTimeout creates a new SearchSubscriptionsParams object with the ability to set a timeout on a request.
func (*SearchSubscriptionsParams) SetBody ¶
func (o *SearchSubscriptionsParams) SetBody(body *models.ActivitySearchSubscriptionsRequest)
SetBody adds the body to the search subscriptions params
func (*SearchSubscriptionsParams) SetContext ¶
func (o *SearchSubscriptionsParams) SetContext(ctx context.Context)
SetContext adds the context to the search subscriptions params
func (*SearchSubscriptionsParams) SetDefaults ¶
func (o *SearchSubscriptionsParams) SetDefaults()
SetDefaults hydrates default values in the search subscriptions params (not the query body).
All values with no default are reset to their zero value.
func (*SearchSubscriptionsParams) SetHTTPClient ¶
func (o *SearchSubscriptionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search subscriptions params
func (*SearchSubscriptionsParams) SetTimeout ¶
func (o *SearchSubscriptionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search subscriptions params
func (*SearchSubscriptionsParams) WithBody ¶
func (o *SearchSubscriptionsParams) WithBody(body *models.ActivitySearchSubscriptionsRequest) *SearchSubscriptionsParams
WithBody adds the body to the search subscriptions params
func (*SearchSubscriptionsParams) WithContext ¶
func (o *SearchSubscriptionsParams) WithContext(ctx context.Context) *SearchSubscriptionsParams
WithContext adds the context to the search subscriptions params
func (*SearchSubscriptionsParams) WithDefaults ¶
func (o *SearchSubscriptionsParams) WithDefaults() *SearchSubscriptionsParams
WithDefaults hydrates default values in the search subscriptions params (not the query body).
All values with no default are reset to their zero value.
func (*SearchSubscriptionsParams) WithHTTPClient ¶
func (o *SearchSubscriptionsParams) WithHTTPClient(client *http.Client) *SearchSubscriptionsParams
WithHTTPClient adds the HTTPClient to the search subscriptions params
func (*SearchSubscriptionsParams) WithTimeout ¶
func (o *SearchSubscriptionsParams) WithTimeout(timeout time.Duration) *SearchSubscriptionsParams
WithTimeout adds the timeout to the search subscriptions params
func (*SearchSubscriptionsParams) WriteToRequest ¶
func (o *SearchSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchSubscriptionsReader ¶
type SearchSubscriptionsReader struct {
// contains filtered or unexported fields
}
SearchSubscriptionsReader is a Reader for the SearchSubscriptions structure.
func (*SearchSubscriptionsReader) ReadResponse ¶
func (o *SearchSubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchSubscriptionsUnauthorized ¶
type SearchSubscriptionsUnauthorized struct {
}SearchSubscriptionsUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewSearchSubscriptionsUnauthorized ¶
func NewSearchSubscriptionsUnauthorized() *SearchSubscriptionsUnauthorized
NewSearchSubscriptionsUnauthorized creates a SearchSubscriptionsUnauthorized with default headers values
func (*SearchSubscriptionsUnauthorized) Error ¶
func (o *SearchSubscriptionsUnauthorized) Error() string
func (*SearchSubscriptionsUnauthorized) GetPayload ¶
func (o *SearchSubscriptionsUnauthorized) GetPayload() *models.RestError
type StreamForbidden ¶
StreamForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewStreamForbidden ¶
func NewStreamForbidden() *StreamForbidden
NewStreamForbidden creates a StreamForbidden with default headers values
func (*StreamForbidden) Error ¶
func (o *StreamForbidden) Error() string
func (*StreamForbidden) GetPayload ¶
func (o *StreamForbidden) GetPayload() *models.RestError
type StreamInternalServerError ¶
StreamInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewStreamInternalServerError ¶
func NewStreamInternalServerError() *StreamInternalServerError
NewStreamInternalServerError creates a StreamInternalServerError with default headers values
func (*StreamInternalServerError) Error ¶
func (o *StreamInternalServerError) Error() string
func (*StreamInternalServerError) GetPayload ¶
func (o *StreamInternalServerError) GetPayload() *models.RestError
type StreamNotFound ¶
StreamNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewStreamNotFound ¶
func NewStreamNotFound() *StreamNotFound
NewStreamNotFound creates a StreamNotFound with default headers values
func (*StreamNotFound) Error ¶
func (o *StreamNotFound) Error() string
func (*StreamNotFound) GetPayload ¶
func (o *StreamNotFound) GetPayload() *models.RestError
type StreamOK ¶
type StreamOK struct {
Payload *models.ActivityObject
}
StreamOK describes a response with status code 200, with default header values.
StreamOK stream o k
func NewStreamOK ¶
func NewStreamOK() *StreamOK
NewStreamOK creates a StreamOK with default headers values
func (*StreamOK) GetPayload ¶
func (o *StreamOK) GetPayload() *models.ActivityObject
type StreamParams ¶
type StreamParams struct { // Body. Body *models.ActivityStreamActivitiesRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StreamParams contains all the parameters to send to the API endpoint
for the stream operation. Typically these are written to a http.Request.
func NewStreamParams ¶
func NewStreamParams() *StreamParams
NewStreamParams creates a new StreamParams 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 NewStreamParamsWithContext ¶
func NewStreamParamsWithContext(ctx context.Context) *StreamParams
NewStreamParamsWithContext creates a new StreamParams object with the ability to set a context for a request.
func NewStreamParamsWithHTTPClient ¶
func NewStreamParamsWithHTTPClient(client *http.Client) *StreamParams
NewStreamParamsWithHTTPClient creates a new StreamParams object with the ability to set a custom HTTPClient for a request.
func NewStreamParamsWithTimeout ¶
func NewStreamParamsWithTimeout(timeout time.Duration) *StreamParams
NewStreamParamsWithTimeout creates a new StreamParams object with the ability to set a timeout on a request.
func (*StreamParams) SetBody ¶
func (o *StreamParams) SetBody(body *models.ActivityStreamActivitiesRequest)
SetBody adds the body to the stream params
func (*StreamParams) SetContext ¶
func (o *StreamParams) SetContext(ctx context.Context)
SetContext adds the context to the stream params
func (*StreamParams) SetDefaults ¶
func (o *StreamParams) SetDefaults()
SetDefaults hydrates default values in the stream params (not the query body).
All values with no default are reset to their zero value.
func (*StreamParams) SetHTTPClient ¶
func (o *StreamParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the stream params
func (*StreamParams) SetTimeout ¶
func (o *StreamParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the stream params
func (*StreamParams) WithBody ¶
func (o *StreamParams) WithBody(body *models.ActivityStreamActivitiesRequest) *StreamParams
WithBody adds the body to the stream params
func (*StreamParams) WithContext ¶
func (o *StreamParams) WithContext(ctx context.Context) *StreamParams
WithContext adds the context to the stream params
func (*StreamParams) WithDefaults ¶
func (o *StreamParams) WithDefaults() *StreamParams
WithDefaults hydrates default values in the stream params (not the query body).
All values with no default are reset to their zero value.
func (*StreamParams) WithHTTPClient ¶
func (o *StreamParams) WithHTTPClient(client *http.Client) *StreamParams
WithHTTPClient adds the HTTPClient to the stream params
func (*StreamParams) WithTimeout ¶
func (o *StreamParams) WithTimeout(timeout time.Duration) *StreamParams
WithTimeout adds the timeout to the stream params
func (*StreamParams) WriteToRequest ¶
func (o *StreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StreamReader ¶
type StreamReader struct {
// contains filtered or unexported fields
}
StreamReader is a Reader for the Stream structure.
func (*StreamReader) ReadResponse ¶
func (o *StreamReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StreamUnauthorized ¶
type StreamUnauthorized struct {
}StreamUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewStreamUnauthorized ¶
func NewStreamUnauthorized() *StreamUnauthorized
NewStreamUnauthorized creates a StreamUnauthorized with default headers values
func (*StreamUnauthorized) Error ¶
func (o *StreamUnauthorized) Error() string
func (*StreamUnauthorized) GetPayload ¶
func (o *StreamUnauthorized) GetPayload() *models.RestError
type SubscribeForbidden ¶
SubscribeForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewSubscribeForbidden ¶
func NewSubscribeForbidden() *SubscribeForbidden
NewSubscribeForbidden creates a SubscribeForbidden with default headers values
func (*SubscribeForbidden) Error ¶
func (o *SubscribeForbidden) Error() string
func (*SubscribeForbidden) GetPayload ¶
func (o *SubscribeForbidden) GetPayload() *models.RestError
type SubscribeInternalServerError ¶
SubscribeInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewSubscribeInternalServerError ¶
func NewSubscribeInternalServerError() *SubscribeInternalServerError
NewSubscribeInternalServerError creates a SubscribeInternalServerError with default headers values
func (*SubscribeInternalServerError) Error ¶
func (o *SubscribeInternalServerError) Error() string
func (*SubscribeInternalServerError) GetPayload ¶
func (o *SubscribeInternalServerError) GetPayload() *models.RestError
type SubscribeNotFound ¶
SubscribeNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewSubscribeNotFound ¶
func NewSubscribeNotFound() *SubscribeNotFound
NewSubscribeNotFound creates a SubscribeNotFound with default headers values
func (*SubscribeNotFound) Error ¶
func (o *SubscribeNotFound) Error() string
func (*SubscribeNotFound) GetPayload ¶
func (o *SubscribeNotFound) GetPayload() *models.RestError
type SubscribeOK ¶
type SubscribeOK struct {
Payload *models.ActivitySubscription
}
SubscribeOK describes a response with status code 200, with default header values.
SubscribeOK subscribe o k
func NewSubscribeOK ¶
func NewSubscribeOK() *SubscribeOK
NewSubscribeOK creates a SubscribeOK with default headers values
func (*SubscribeOK) Error ¶
func (o *SubscribeOK) Error() string
func (*SubscribeOK) GetPayload ¶
func (o *SubscribeOK) GetPayload() *models.ActivitySubscription
type SubscribeParams ¶
type SubscribeParams struct { // Body. Body *models.ActivitySubscription Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SubscribeParams contains all the parameters to send to the API endpoint
for the subscribe operation. Typically these are written to a http.Request.
func NewSubscribeParams ¶
func NewSubscribeParams() *SubscribeParams
NewSubscribeParams creates a new SubscribeParams 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 NewSubscribeParamsWithContext ¶
func NewSubscribeParamsWithContext(ctx context.Context) *SubscribeParams
NewSubscribeParamsWithContext creates a new SubscribeParams object with the ability to set a context for a request.
func NewSubscribeParamsWithHTTPClient ¶
func NewSubscribeParamsWithHTTPClient(client *http.Client) *SubscribeParams
NewSubscribeParamsWithHTTPClient creates a new SubscribeParams object with the ability to set a custom HTTPClient for a request.
func NewSubscribeParamsWithTimeout ¶
func NewSubscribeParamsWithTimeout(timeout time.Duration) *SubscribeParams
NewSubscribeParamsWithTimeout creates a new SubscribeParams object with the ability to set a timeout on a request.
func (*SubscribeParams) SetBody ¶
func (o *SubscribeParams) SetBody(body *models.ActivitySubscription)
SetBody adds the body to the subscribe params
func (*SubscribeParams) SetContext ¶
func (o *SubscribeParams) SetContext(ctx context.Context)
SetContext adds the context to the subscribe params
func (*SubscribeParams) SetDefaults ¶
func (o *SubscribeParams) SetDefaults()
SetDefaults hydrates default values in the subscribe params (not the query body).
All values with no default are reset to their zero value.
func (*SubscribeParams) SetHTTPClient ¶
func (o *SubscribeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the subscribe params
func (*SubscribeParams) SetTimeout ¶
func (o *SubscribeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the subscribe params
func (*SubscribeParams) WithBody ¶
func (o *SubscribeParams) WithBody(body *models.ActivitySubscription) *SubscribeParams
WithBody adds the body to the subscribe params
func (*SubscribeParams) WithContext ¶
func (o *SubscribeParams) WithContext(ctx context.Context) *SubscribeParams
WithContext adds the context to the subscribe params
func (*SubscribeParams) WithDefaults ¶
func (o *SubscribeParams) WithDefaults() *SubscribeParams
WithDefaults hydrates default values in the subscribe params (not the query body).
All values with no default are reset to their zero value.
func (*SubscribeParams) WithHTTPClient ¶
func (o *SubscribeParams) WithHTTPClient(client *http.Client) *SubscribeParams
WithHTTPClient adds the HTTPClient to the subscribe params
func (*SubscribeParams) WithTimeout ¶
func (o *SubscribeParams) WithTimeout(timeout time.Duration) *SubscribeParams
WithTimeout adds the timeout to the subscribe params
func (*SubscribeParams) WriteToRequest ¶
func (o *SubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SubscribeReader ¶
type SubscribeReader struct {
// contains filtered or unexported fields
}
SubscribeReader is a Reader for the Subscribe structure.
func (*SubscribeReader) ReadResponse ¶
func (o *SubscribeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SubscribeUnauthorized ¶
type SubscribeUnauthorized struct {
}SubscribeUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewSubscribeUnauthorized ¶
func NewSubscribeUnauthorized() *SubscribeUnauthorized
NewSubscribeUnauthorized creates a SubscribeUnauthorized with default headers values
func (*SubscribeUnauthorized) Error ¶
func (o *SubscribeUnauthorized) Error() string
func (*SubscribeUnauthorized) GetPayload ¶
func (o *SubscribeUnauthorized) GetPayload() *models.RestError