activity_service

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 10 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 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

type SearchSubscriptionsForbidden struct {
	Payload *models.RestError
}
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 (*SearchSubscriptionsForbidden) GetPayload

type SearchSubscriptionsInternalServerError

type SearchSubscriptionsInternalServerError struct {
	Payload *models.RestError
}
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 (*SearchSubscriptionsInternalServerError) GetPayload

type SearchSubscriptionsNotFound

type SearchSubscriptionsNotFound struct {
	Payload *models.RestError
}
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 (*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

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

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

WithBody adds the body to the search subscriptions params

func (*SearchSubscriptionsParams) WithContext

WithContext adds the context to the search subscriptions params

func (*SearchSubscriptionsParams) WithDefaults

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

WithTimeout adds the timeout to the search subscriptions params

func (*SearchSubscriptionsParams) WriteToRequest

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 {
	Payload *models.RestError
}
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 (*SearchSubscriptionsUnauthorized) GetPayload

type StreamForbidden

type StreamForbidden struct {
	Payload *models.RestError
}
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

type StreamInternalServerError struct {
	Payload *models.RestError
}
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

type StreamNotFound struct {
	Payload *models.RestError
}
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) Error

func (o *StreamOK) Error() string

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

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

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 {
	Payload *models.RestError
}
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

type SubscribeForbidden struct {
	Payload *models.RestError
}
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

type SubscribeInternalServerError struct {
	Payload *models.RestError
}
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 (*SubscribeInternalServerError) GetPayload

type SubscribeNotFound

type SubscribeNotFound struct {
	Payload *models.RestError
}
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

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 {
	Payload *models.RestError
}
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

Jump to

Keyboard shortcuts

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