activity_service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new activity service API client.

func (*Client) SearchSubscriptions

func (a *Client) SearchSubscriptions(params *SearchSubscriptionsParams) (*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) (*StreamOK, error)

Stream loads the the feeds of the currently logged user

func (*Client) Subscribe

func (a *Client) Subscribe(params *SubscribeParams) (*SubscribeOK, error)

Subscribe manages subscriptions to other users nodes feeds

type SearchSubscriptionsOK

type SearchSubscriptionsOK struct {
	Payload *models.RestSubscriptionsCollection
}

SearchSubscriptionsOK handles this case 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

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 values initialized.

func NewSearchSubscriptionsParamsWithContext

func NewSearchSubscriptionsParamsWithContext(ctx context.Context) *SearchSubscriptionsParams

NewSearchSubscriptionsParamsWithContext creates a new SearchSubscriptionsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 StreamOK

type StreamOK struct {
	Payload *models.ActivityObject
}

StreamOK handles this case 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

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 values initialized.

func NewStreamParamsWithContext

func NewStreamParamsWithContext(ctx context.Context) *StreamParams

NewStreamParamsWithContext creates a new StreamParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 SubscribeOK

type SubscribeOK struct {
	Payload *models.ActivitySubscription
}

SubscribeOK handles this case 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

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 values initialized.

func NewSubscribeParamsWithContext

func NewSubscribeParamsWithContext(ctx context.Context) *SubscribeParams

NewSubscribeParamsWithContext creates a new SubscribeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.

Jump to

Keyboard shortcuts

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