timelines

package
v0.0.0-...-6bd88e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: AGPL-3.0-or-later Imports: 12 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 timelines API

func (*Client) HomeTimeline

func (a *Client) HomeTimeline(params *HomeTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HomeTimelineOK, error)
HomeTimeline sees statuses posts by accounts you follow

The statuses will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

The returned Link header can be used to generate the previous and next queries when scrolling up or down a timeline.

Example:

``` <https://example.org/api/v1/timelines/home?limit=20&max_id=01FC3GSQ8A3MMJ43BPZSGEG29M>; rel="next", <https://example.org/api/v1/timelines/home?limit=20&min_id=01FC3KJW2GYXSDDRA6RWNDM46M>; rel="prev" ````

func (*Client) ListTimeline

func (a *Client) ListTimeline(params *ListTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTimelineOK, error)
ListTimeline sees statuses posts from the given list timeline

The statuses will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

The returned Link header can be used to generate the previous and next queries when scrolling up or down a timeline.

Example:

``` <https://example.org/api/v1/timelines/list/01H0W619198FX7J54NF7EH1NG2?limit=20&max_id=01FC3GSQ8A3MMJ43BPZSGEG29M>; rel="next", <https://example.org/api/v1/timelines/list/01H0W619198FX7J54NF7EH1NG2?limit=20&min_id=01FC3KJW2GYXSDDRA6RWNDM46M>; rel="prev" ````

func (*Client) PublicTimeline

func (a *Client) PublicTimeline(params *PublicTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublicTimelineOK, error)
PublicTimeline sees public statuses posts that your instance is aware of

The statuses will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

The returned Link header can be used to generate the previous and next queries when scrolling up or down a timeline.

Example:

``` <https://example.org/api/v1/timelines/public?limit=20&max_id=01FC3GSQ8A3MMJ43BPZSGEG29M>; rel="next", <https://example.org/api/v1/timelines/public?limit=20&min_id=01FC3KJW2GYXSDDRA6RWNDM46M>; rel="prev" ````

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TagTimeline

func (a *Client) TagTimeline(params *TagTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TagTimelineOK, error)
TagTimeline sees public statuses that use the given hashtag case insensitive

The statuses will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

The returned Link header can be used to generate the previous and next queries when scrolling up or down a timeline.

Example:

``` <https://example.org/api/v1/timelines/tag/example?limit=20&max_id=01FC3GSQ8A3MMJ43BPZSGEG29M>; rel="next", <https://example.org/api/v1/timelines/tag/example?limit=20&min_id=01FC3KJW2GYXSDDRA6RWNDM46M>; rel="prev" ````

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	HomeTimeline(params *HomeTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HomeTimelineOK, error)

	ListTimeline(params *ListTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTimelineOK, error)

	PublicTimeline(params *PublicTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublicTimelineOK, error)

	TagTimeline(params *TagTimelineParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TagTimelineOK, 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 timelines API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new timelines API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new timelines API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type HomeTimelineBadRequest

type HomeTimelineBadRequest struct {
}

HomeTimelineBadRequest describes a response with status code 400, with default header values.

bad request

func NewHomeTimelineBadRequest

func NewHomeTimelineBadRequest() *HomeTimelineBadRequest

NewHomeTimelineBadRequest creates a HomeTimelineBadRequest with default headers values

func (*HomeTimelineBadRequest) Code

func (o *HomeTimelineBadRequest) Code() int

Code gets the status code for the home timeline bad request response

func (*HomeTimelineBadRequest) Error

func (o *HomeTimelineBadRequest) Error() string

func (*HomeTimelineBadRequest) IsClientError

func (o *HomeTimelineBadRequest) IsClientError() bool

IsClientError returns true when this home timeline bad request response has a 4xx status code

func (*HomeTimelineBadRequest) IsCode

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

IsCode returns true when this home timeline bad request response a status code equal to that given

func (*HomeTimelineBadRequest) IsRedirect

func (o *HomeTimelineBadRequest) IsRedirect() bool

IsRedirect returns true when this home timeline bad request response has a 3xx status code

func (*HomeTimelineBadRequest) IsServerError

func (o *HomeTimelineBadRequest) IsServerError() bool

IsServerError returns true when this home timeline bad request response has a 5xx status code

func (*HomeTimelineBadRequest) IsSuccess

func (o *HomeTimelineBadRequest) IsSuccess() bool

IsSuccess returns true when this home timeline bad request response has a 2xx status code

func (*HomeTimelineBadRequest) String

func (o *HomeTimelineBadRequest) String() string

type HomeTimelineOK

type HomeTimelineOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Status
}

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

Array of statuses.

func NewHomeTimelineOK

func NewHomeTimelineOK() *HomeTimelineOK

NewHomeTimelineOK creates a HomeTimelineOK with default headers values

func (*HomeTimelineOK) Code

func (o *HomeTimelineOK) Code() int

Code gets the status code for the home timeline o k response

func (*HomeTimelineOK) Error

func (o *HomeTimelineOK) Error() string

func (*HomeTimelineOK) GetPayload

func (o *HomeTimelineOK) GetPayload() []*models.Status

func (*HomeTimelineOK) IsClientError

func (o *HomeTimelineOK) IsClientError() bool

IsClientError returns true when this home timeline o k response has a 4xx status code

func (*HomeTimelineOK) IsCode

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

IsCode returns true when this home timeline o k response a status code equal to that given

func (*HomeTimelineOK) IsRedirect

func (o *HomeTimelineOK) IsRedirect() bool

IsRedirect returns true when this home timeline o k response has a 3xx status code

func (*HomeTimelineOK) IsServerError

func (o *HomeTimelineOK) IsServerError() bool

IsServerError returns true when this home timeline o k response has a 5xx status code

func (*HomeTimelineOK) IsSuccess

func (o *HomeTimelineOK) IsSuccess() bool

IsSuccess returns true when this home timeline o k response has a 2xx status code

func (*HomeTimelineOK) String

func (o *HomeTimelineOK) String() string

type HomeTimelineParams

type HomeTimelineParams struct {

	/* Limit.

	   Number of statuses to return.

	   Default: 20
	*/
	Limit *int64

	/* Local.

	   Show only statuses posted by local accounts.
	*/
	Local *bool

	/* MaxID.

	   Return only statuses *OLDER* than the given max status ID. The status with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only statuses *immediately newer* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only statuses *newer* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	SinceID *string

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

HomeTimelineParams contains all the parameters to send to the API endpoint

for the home timeline operation.

Typically these are written to a http.Request.

func NewHomeTimelineParams

func NewHomeTimelineParams() *HomeTimelineParams

NewHomeTimelineParams creates a new HomeTimelineParams 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 NewHomeTimelineParamsWithContext

func NewHomeTimelineParamsWithContext(ctx context.Context) *HomeTimelineParams

NewHomeTimelineParamsWithContext creates a new HomeTimelineParams object with the ability to set a context for a request.

func NewHomeTimelineParamsWithHTTPClient

func NewHomeTimelineParamsWithHTTPClient(client *http.Client) *HomeTimelineParams

NewHomeTimelineParamsWithHTTPClient creates a new HomeTimelineParams object with the ability to set a custom HTTPClient for a request.

func NewHomeTimelineParamsWithTimeout

func NewHomeTimelineParamsWithTimeout(timeout time.Duration) *HomeTimelineParams

NewHomeTimelineParamsWithTimeout creates a new HomeTimelineParams object with the ability to set a timeout on a request.

func (*HomeTimelineParams) SetContext

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

SetContext adds the context to the home timeline params

func (*HomeTimelineParams) SetDefaults

func (o *HomeTimelineParams) SetDefaults()

SetDefaults hydrates default values in the home timeline params (not the query body).

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

func (*HomeTimelineParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the home timeline params

func (*HomeTimelineParams) SetLimit

func (o *HomeTimelineParams) SetLimit(limit *int64)

SetLimit adds the limit to the home timeline params

func (*HomeTimelineParams) SetLocal

func (o *HomeTimelineParams) SetLocal(local *bool)

SetLocal adds the local to the home timeline params

func (*HomeTimelineParams) SetMaxID

func (o *HomeTimelineParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the home timeline params

func (*HomeTimelineParams) SetMinID

func (o *HomeTimelineParams) SetMinID(minID *string)

SetMinID adds the minId to the home timeline params

func (*HomeTimelineParams) SetSinceID

func (o *HomeTimelineParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the home timeline params

func (*HomeTimelineParams) SetTimeout

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

SetTimeout adds the timeout to the home timeline params

func (*HomeTimelineParams) WithContext

WithContext adds the context to the home timeline params

func (*HomeTimelineParams) WithDefaults

func (o *HomeTimelineParams) WithDefaults() *HomeTimelineParams

WithDefaults hydrates default values in the home timeline params (not the query body).

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

func (*HomeTimelineParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the home timeline params

func (*HomeTimelineParams) WithLimit

func (o *HomeTimelineParams) WithLimit(limit *int64) *HomeTimelineParams

WithLimit adds the limit to the home timeline params

func (*HomeTimelineParams) WithLocal

func (o *HomeTimelineParams) WithLocal(local *bool) *HomeTimelineParams

WithLocal adds the local to the home timeline params

func (*HomeTimelineParams) WithMaxID

func (o *HomeTimelineParams) WithMaxID(maxID *string) *HomeTimelineParams

WithMaxID adds the maxID to the home timeline params

func (*HomeTimelineParams) WithMinID

func (o *HomeTimelineParams) WithMinID(minID *string) *HomeTimelineParams

WithMinID adds the minID to the home timeline params

func (*HomeTimelineParams) WithSinceID

func (o *HomeTimelineParams) WithSinceID(sinceID *string) *HomeTimelineParams

WithSinceID adds the sinceID to the home timeline params

func (*HomeTimelineParams) WithTimeout

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

WithTimeout adds the timeout to the home timeline params

func (*HomeTimelineParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HomeTimelineReader

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

HomeTimelineReader is a Reader for the HomeTimeline structure.

func (*HomeTimelineReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type HomeTimelineUnauthorized

type HomeTimelineUnauthorized struct {
}

HomeTimelineUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewHomeTimelineUnauthorized

func NewHomeTimelineUnauthorized() *HomeTimelineUnauthorized

NewHomeTimelineUnauthorized creates a HomeTimelineUnauthorized with default headers values

func (*HomeTimelineUnauthorized) Code

func (o *HomeTimelineUnauthorized) Code() int

Code gets the status code for the home timeline unauthorized response

func (*HomeTimelineUnauthorized) Error

func (o *HomeTimelineUnauthorized) Error() string

func (*HomeTimelineUnauthorized) IsClientError

func (o *HomeTimelineUnauthorized) IsClientError() bool

IsClientError returns true when this home timeline unauthorized response has a 4xx status code

func (*HomeTimelineUnauthorized) IsCode

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

IsCode returns true when this home timeline unauthorized response a status code equal to that given

func (*HomeTimelineUnauthorized) IsRedirect

func (o *HomeTimelineUnauthorized) IsRedirect() bool

IsRedirect returns true when this home timeline unauthorized response has a 3xx status code

func (*HomeTimelineUnauthorized) IsServerError

func (o *HomeTimelineUnauthorized) IsServerError() bool

IsServerError returns true when this home timeline unauthorized response has a 5xx status code

func (*HomeTimelineUnauthorized) IsSuccess

func (o *HomeTimelineUnauthorized) IsSuccess() bool

IsSuccess returns true when this home timeline unauthorized response has a 2xx status code

func (*HomeTimelineUnauthorized) String

func (o *HomeTimelineUnauthorized) String() string

type ListTimelineBadRequest

type ListTimelineBadRequest struct {
}

ListTimelineBadRequest describes a response with status code 400, with default header values.

bad request

func NewListTimelineBadRequest

func NewListTimelineBadRequest() *ListTimelineBadRequest

NewListTimelineBadRequest creates a ListTimelineBadRequest with default headers values

func (*ListTimelineBadRequest) Code

func (o *ListTimelineBadRequest) Code() int

Code gets the status code for the list timeline bad request response

func (*ListTimelineBadRequest) Error

func (o *ListTimelineBadRequest) Error() string

func (*ListTimelineBadRequest) IsClientError

func (o *ListTimelineBadRequest) IsClientError() bool

IsClientError returns true when this list timeline bad request response has a 4xx status code

func (*ListTimelineBadRequest) IsCode

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

IsCode returns true when this list timeline bad request response a status code equal to that given

func (*ListTimelineBadRequest) IsRedirect

func (o *ListTimelineBadRequest) IsRedirect() bool

IsRedirect returns true when this list timeline bad request response has a 3xx status code

func (*ListTimelineBadRequest) IsServerError

func (o *ListTimelineBadRequest) IsServerError() bool

IsServerError returns true when this list timeline bad request response has a 5xx status code

func (*ListTimelineBadRequest) IsSuccess

func (o *ListTimelineBadRequest) IsSuccess() bool

IsSuccess returns true when this list timeline bad request response has a 2xx status code

func (*ListTimelineBadRequest) String

func (o *ListTimelineBadRequest) String() string

type ListTimelineOK

type ListTimelineOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Status
}

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

Array of statuses.

func NewListTimelineOK

func NewListTimelineOK() *ListTimelineOK

NewListTimelineOK creates a ListTimelineOK with default headers values

func (*ListTimelineOK) Code

func (o *ListTimelineOK) Code() int

Code gets the status code for the list timeline o k response

func (*ListTimelineOK) Error

func (o *ListTimelineOK) Error() string

func (*ListTimelineOK) GetPayload

func (o *ListTimelineOK) GetPayload() []*models.Status

func (*ListTimelineOK) IsClientError

func (o *ListTimelineOK) IsClientError() bool

IsClientError returns true when this list timeline o k response has a 4xx status code

func (*ListTimelineOK) IsCode

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

IsCode returns true when this list timeline o k response a status code equal to that given

func (*ListTimelineOK) IsRedirect

func (o *ListTimelineOK) IsRedirect() bool

IsRedirect returns true when this list timeline o k response has a 3xx status code

func (*ListTimelineOK) IsServerError

func (o *ListTimelineOK) IsServerError() bool

IsServerError returns true when this list timeline o k response has a 5xx status code

func (*ListTimelineOK) IsSuccess

func (o *ListTimelineOK) IsSuccess() bool

IsSuccess returns true when this list timeline o k response has a 2xx status code

func (*ListTimelineOK) String

func (o *ListTimelineOK) String() string

type ListTimelineParams

type ListTimelineParams struct {

	/* ID.

	   ID of the list
	*/
	ID string

	/* Limit.

	   Number of statuses to return.

	   Default: 20
	*/
	Limit *int64

	/* MaxID.

	   Return only statuses *OLDER* than the given max status ID. The status with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only statuses *NEWER* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only statuses *NEWER* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	SinceID *string

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

ListTimelineParams contains all the parameters to send to the API endpoint

for the list timeline operation.

Typically these are written to a http.Request.

func NewListTimelineParams

func NewListTimelineParams() *ListTimelineParams

NewListTimelineParams creates a new ListTimelineParams 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 NewListTimelineParamsWithContext

func NewListTimelineParamsWithContext(ctx context.Context) *ListTimelineParams

NewListTimelineParamsWithContext creates a new ListTimelineParams object with the ability to set a context for a request.

func NewListTimelineParamsWithHTTPClient

func NewListTimelineParamsWithHTTPClient(client *http.Client) *ListTimelineParams

NewListTimelineParamsWithHTTPClient creates a new ListTimelineParams object with the ability to set a custom HTTPClient for a request.

func NewListTimelineParamsWithTimeout

func NewListTimelineParamsWithTimeout(timeout time.Duration) *ListTimelineParams

NewListTimelineParamsWithTimeout creates a new ListTimelineParams object with the ability to set a timeout on a request.

func (*ListTimelineParams) SetContext

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

SetContext adds the context to the list timeline params

func (*ListTimelineParams) SetDefaults

func (o *ListTimelineParams) SetDefaults()

SetDefaults hydrates default values in the list timeline params (not the query body).

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

func (*ListTimelineParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list timeline params

func (*ListTimelineParams) SetID

func (o *ListTimelineParams) SetID(id string)

SetID adds the id to the list timeline params

func (*ListTimelineParams) SetLimit

func (o *ListTimelineParams) SetLimit(limit *int64)

SetLimit adds the limit to the list timeline params

func (*ListTimelineParams) SetMaxID

func (o *ListTimelineParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the list timeline params

func (*ListTimelineParams) SetMinID

func (o *ListTimelineParams) SetMinID(minID *string)

SetMinID adds the minId to the list timeline params

func (*ListTimelineParams) SetSinceID

func (o *ListTimelineParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the list timeline params

func (*ListTimelineParams) SetTimeout

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

SetTimeout adds the timeout to the list timeline params

func (*ListTimelineParams) WithContext

WithContext adds the context to the list timeline params

func (*ListTimelineParams) WithDefaults

func (o *ListTimelineParams) WithDefaults() *ListTimelineParams

WithDefaults hydrates default values in the list timeline params (not the query body).

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

func (*ListTimelineParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list timeline params

func (*ListTimelineParams) WithID

WithID adds the id to the list timeline params

func (*ListTimelineParams) WithLimit

func (o *ListTimelineParams) WithLimit(limit *int64) *ListTimelineParams

WithLimit adds the limit to the list timeline params

func (*ListTimelineParams) WithMaxID

func (o *ListTimelineParams) WithMaxID(maxID *string) *ListTimelineParams

WithMaxID adds the maxID to the list timeline params

func (*ListTimelineParams) WithMinID

func (o *ListTimelineParams) WithMinID(minID *string) *ListTimelineParams

WithMinID adds the minID to the list timeline params

func (*ListTimelineParams) WithSinceID

func (o *ListTimelineParams) WithSinceID(sinceID *string) *ListTimelineParams

WithSinceID adds the sinceID to the list timeline params

func (*ListTimelineParams) WithTimeout

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

WithTimeout adds the timeout to the list timeline params

func (*ListTimelineParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTimelineReader

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

ListTimelineReader is a Reader for the ListTimeline structure.

func (*ListTimelineReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTimelineUnauthorized

type ListTimelineUnauthorized struct {
}

ListTimelineUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewListTimelineUnauthorized

func NewListTimelineUnauthorized() *ListTimelineUnauthorized

NewListTimelineUnauthorized creates a ListTimelineUnauthorized with default headers values

func (*ListTimelineUnauthorized) Code

func (o *ListTimelineUnauthorized) Code() int

Code gets the status code for the list timeline unauthorized response

func (*ListTimelineUnauthorized) Error

func (o *ListTimelineUnauthorized) Error() string

func (*ListTimelineUnauthorized) IsClientError

func (o *ListTimelineUnauthorized) IsClientError() bool

IsClientError returns true when this list timeline unauthorized response has a 4xx status code

func (*ListTimelineUnauthorized) IsCode

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

IsCode returns true when this list timeline unauthorized response a status code equal to that given

func (*ListTimelineUnauthorized) IsRedirect

func (o *ListTimelineUnauthorized) IsRedirect() bool

IsRedirect returns true when this list timeline unauthorized response has a 3xx status code

func (*ListTimelineUnauthorized) IsServerError

func (o *ListTimelineUnauthorized) IsServerError() bool

IsServerError returns true when this list timeline unauthorized response has a 5xx status code

func (*ListTimelineUnauthorized) IsSuccess

func (o *ListTimelineUnauthorized) IsSuccess() bool

IsSuccess returns true when this list timeline unauthorized response has a 2xx status code

func (*ListTimelineUnauthorized) String

func (o *ListTimelineUnauthorized) String() string

type PublicTimelineBadRequest

type PublicTimelineBadRequest struct {
}

PublicTimelineBadRequest describes a response with status code 400, with default header values.

bad request

func NewPublicTimelineBadRequest

func NewPublicTimelineBadRequest() *PublicTimelineBadRequest

NewPublicTimelineBadRequest creates a PublicTimelineBadRequest with default headers values

func (*PublicTimelineBadRequest) Code

func (o *PublicTimelineBadRequest) Code() int

Code gets the status code for the public timeline bad request response

func (*PublicTimelineBadRequest) Error

func (o *PublicTimelineBadRequest) Error() string

func (*PublicTimelineBadRequest) IsClientError

func (o *PublicTimelineBadRequest) IsClientError() bool

IsClientError returns true when this public timeline bad request response has a 4xx status code

func (*PublicTimelineBadRequest) IsCode

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

IsCode returns true when this public timeline bad request response a status code equal to that given

func (*PublicTimelineBadRequest) IsRedirect

func (o *PublicTimelineBadRequest) IsRedirect() bool

IsRedirect returns true when this public timeline bad request response has a 3xx status code

func (*PublicTimelineBadRequest) IsServerError

func (o *PublicTimelineBadRequest) IsServerError() bool

IsServerError returns true when this public timeline bad request response has a 5xx status code

func (*PublicTimelineBadRequest) IsSuccess

func (o *PublicTimelineBadRequest) IsSuccess() bool

IsSuccess returns true when this public timeline bad request response has a 2xx status code

func (*PublicTimelineBadRequest) String

func (o *PublicTimelineBadRequest) String() string

type PublicTimelineOK

type PublicTimelineOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Status
}

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

Array of statuses.

func NewPublicTimelineOK

func NewPublicTimelineOK() *PublicTimelineOK

NewPublicTimelineOK creates a PublicTimelineOK with default headers values

func (*PublicTimelineOK) Code

func (o *PublicTimelineOK) Code() int

Code gets the status code for the public timeline o k response

func (*PublicTimelineOK) Error

func (o *PublicTimelineOK) Error() string

func (*PublicTimelineOK) GetPayload

func (o *PublicTimelineOK) GetPayload() []*models.Status

func (*PublicTimelineOK) IsClientError

func (o *PublicTimelineOK) IsClientError() bool

IsClientError returns true when this public timeline o k response has a 4xx status code

func (*PublicTimelineOK) IsCode

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

IsCode returns true when this public timeline o k response a status code equal to that given

func (*PublicTimelineOK) IsRedirect

func (o *PublicTimelineOK) IsRedirect() bool

IsRedirect returns true when this public timeline o k response has a 3xx status code

func (*PublicTimelineOK) IsServerError

func (o *PublicTimelineOK) IsServerError() bool

IsServerError returns true when this public timeline o k response has a 5xx status code

func (*PublicTimelineOK) IsSuccess

func (o *PublicTimelineOK) IsSuccess() bool

IsSuccess returns true when this public timeline o k response has a 2xx status code

func (*PublicTimelineOK) String

func (o *PublicTimelineOK) String() string

type PublicTimelineParams

type PublicTimelineParams struct {

	/* Limit.

	   Number of statuses to return.

	   Default: 20
	*/
	Limit *int64

	/* Local.

	   Show only statuses posted by local accounts.
	*/
	Local *bool

	/* MaxID.

	   Return only statuses *OLDER* than the given max status ID. The status with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only statuses *NEWER* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only statuses *NEWER* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	SinceID *string

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

PublicTimelineParams contains all the parameters to send to the API endpoint

for the public timeline operation.

Typically these are written to a http.Request.

func NewPublicTimelineParams

func NewPublicTimelineParams() *PublicTimelineParams

NewPublicTimelineParams creates a new PublicTimelineParams 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 NewPublicTimelineParamsWithContext

func NewPublicTimelineParamsWithContext(ctx context.Context) *PublicTimelineParams

NewPublicTimelineParamsWithContext creates a new PublicTimelineParams object with the ability to set a context for a request.

func NewPublicTimelineParamsWithHTTPClient

func NewPublicTimelineParamsWithHTTPClient(client *http.Client) *PublicTimelineParams

NewPublicTimelineParamsWithHTTPClient creates a new PublicTimelineParams object with the ability to set a custom HTTPClient for a request.

func NewPublicTimelineParamsWithTimeout

func NewPublicTimelineParamsWithTimeout(timeout time.Duration) *PublicTimelineParams

NewPublicTimelineParamsWithTimeout creates a new PublicTimelineParams object with the ability to set a timeout on a request.

func (*PublicTimelineParams) SetContext

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

SetContext adds the context to the public timeline params

func (*PublicTimelineParams) SetDefaults

func (o *PublicTimelineParams) SetDefaults()

SetDefaults hydrates default values in the public timeline params (not the query body).

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

func (*PublicTimelineParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public timeline params

func (*PublicTimelineParams) SetLimit

func (o *PublicTimelineParams) SetLimit(limit *int64)

SetLimit adds the limit to the public timeline params

func (*PublicTimelineParams) SetLocal

func (o *PublicTimelineParams) SetLocal(local *bool)

SetLocal adds the local to the public timeline params

func (*PublicTimelineParams) SetMaxID

func (o *PublicTimelineParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the public timeline params

func (*PublicTimelineParams) SetMinID

func (o *PublicTimelineParams) SetMinID(minID *string)

SetMinID adds the minId to the public timeline params

func (*PublicTimelineParams) SetSinceID

func (o *PublicTimelineParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the public timeline params

func (*PublicTimelineParams) SetTimeout

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

SetTimeout adds the timeout to the public timeline params

func (*PublicTimelineParams) WithContext

WithContext adds the context to the public timeline params

func (*PublicTimelineParams) WithDefaults

func (o *PublicTimelineParams) WithDefaults() *PublicTimelineParams

WithDefaults hydrates default values in the public timeline params (not the query body).

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

func (*PublicTimelineParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public timeline params

func (*PublicTimelineParams) WithLimit

func (o *PublicTimelineParams) WithLimit(limit *int64) *PublicTimelineParams

WithLimit adds the limit to the public timeline params

func (*PublicTimelineParams) WithLocal

func (o *PublicTimelineParams) WithLocal(local *bool) *PublicTimelineParams

WithLocal adds the local to the public timeline params

func (*PublicTimelineParams) WithMaxID

func (o *PublicTimelineParams) WithMaxID(maxID *string) *PublicTimelineParams

WithMaxID adds the maxID to the public timeline params

func (*PublicTimelineParams) WithMinID

func (o *PublicTimelineParams) WithMinID(minID *string) *PublicTimelineParams

WithMinID adds the minID to the public timeline params

func (*PublicTimelineParams) WithSinceID

func (o *PublicTimelineParams) WithSinceID(sinceID *string) *PublicTimelineParams

WithSinceID adds the sinceID to the public timeline params

func (*PublicTimelineParams) WithTimeout

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

WithTimeout adds the timeout to the public timeline params

func (*PublicTimelineParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PublicTimelineReader

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

PublicTimelineReader is a Reader for the PublicTimeline structure.

func (*PublicTimelineReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicTimelineUnauthorized

type PublicTimelineUnauthorized struct {
}

PublicTimelineUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewPublicTimelineUnauthorized

func NewPublicTimelineUnauthorized() *PublicTimelineUnauthorized

NewPublicTimelineUnauthorized creates a PublicTimelineUnauthorized with default headers values

func (*PublicTimelineUnauthorized) Code

func (o *PublicTimelineUnauthorized) Code() int

Code gets the status code for the public timeline unauthorized response

func (*PublicTimelineUnauthorized) Error

func (*PublicTimelineUnauthorized) IsClientError

func (o *PublicTimelineUnauthorized) IsClientError() bool

IsClientError returns true when this public timeline unauthorized response has a 4xx status code

func (*PublicTimelineUnauthorized) IsCode

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

IsCode returns true when this public timeline unauthorized response a status code equal to that given

func (*PublicTimelineUnauthorized) IsRedirect

func (o *PublicTimelineUnauthorized) IsRedirect() bool

IsRedirect returns true when this public timeline unauthorized response has a 3xx status code

func (*PublicTimelineUnauthorized) IsServerError

func (o *PublicTimelineUnauthorized) IsServerError() bool

IsServerError returns true when this public timeline unauthorized response has a 5xx status code

func (*PublicTimelineUnauthorized) IsSuccess

func (o *PublicTimelineUnauthorized) IsSuccess() bool

IsSuccess returns true when this public timeline unauthorized response has a 2xx status code

func (*PublicTimelineUnauthorized) String

func (o *PublicTimelineUnauthorized) String() string

type TagTimelineBadRequest

type TagTimelineBadRequest struct {
}

TagTimelineBadRequest describes a response with status code 400, with default header values.

bad request

func NewTagTimelineBadRequest

func NewTagTimelineBadRequest() *TagTimelineBadRequest

NewTagTimelineBadRequest creates a TagTimelineBadRequest with default headers values

func (*TagTimelineBadRequest) Code

func (o *TagTimelineBadRequest) Code() int

Code gets the status code for the tag timeline bad request response

func (*TagTimelineBadRequest) Error

func (o *TagTimelineBadRequest) Error() string

func (*TagTimelineBadRequest) IsClientError

func (o *TagTimelineBadRequest) IsClientError() bool

IsClientError returns true when this tag timeline bad request response has a 4xx status code

func (*TagTimelineBadRequest) IsCode

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

IsCode returns true when this tag timeline bad request response a status code equal to that given

func (*TagTimelineBadRequest) IsRedirect

func (o *TagTimelineBadRequest) IsRedirect() bool

IsRedirect returns true when this tag timeline bad request response has a 3xx status code

func (*TagTimelineBadRequest) IsServerError

func (o *TagTimelineBadRequest) IsServerError() bool

IsServerError returns true when this tag timeline bad request response has a 5xx status code

func (*TagTimelineBadRequest) IsSuccess

func (o *TagTimelineBadRequest) IsSuccess() bool

IsSuccess returns true when this tag timeline bad request response has a 2xx status code

func (*TagTimelineBadRequest) String

func (o *TagTimelineBadRequest) String() string

type TagTimelineOK

type TagTimelineOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Status
}

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

Array of statuses.

func NewTagTimelineOK

func NewTagTimelineOK() *TagTimelineOK

NewTagTimelineOK creates a TagTimelineOK with default headers values

func (*TagTimelineOK) Code

func (o *TagTimelineOK) Code() int

Code gets the status code for the tag timeline o k response

func (*TagTimelineOK) Error

func (o *TagTimelineOK) Error() string

func (*TagTimelineOK) GetPayload

func (o *TagTimelineOK) GetPayload() []*models.Status

func (*TagTimelineOK) IsClientError

func (o *TagTimelineOK) IsClientError() bool

IsClientError returns true when this tag timeline o k response has a 4xx status code

func (*TagTimelineOK) IsCode

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

IsCode returns true when this tag timeline o k response a status code equal to that given

func (*TagTimelineOK) IsRedirect

func (o *TagTimelineOK) IsRedirect() bool

IsRedirect returns true when this tag timeline o k response has a 3xx status code

func (*TagTimelineOK) IsServerError

func (o *TagTimelineOK) IsServerError() bool

IsServerError returns true when this tag timeline o k response has a 5xx status code

func (*TagTimelineOK) IsSuccess

func (o *TagTimelineOK) IsSuccess() bool

IsSuccess returns true when this tag timeline o k response has a 2xx status code

func (*TagTimelineOK) String

func (o *TagTimelineOK) String() string

type TagTimelineParams

type TagTimelineParams struct {

	/* Limit.

	   Number of statuses to return.

	   Default: 20
	*/
	Limit *int64

	/* MaxID.

	   Return only statuses *OLDER* than the given max status ID. The status with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only statuses *immediately newer* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only statuses *newer* than the given since status ID. The status with the specified ID will not be included in the response.
	*/
	SinceID *string

	/* TagName.

	   Name of the tag
	*/
	TagName string

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

TagTimelineParams contains all the parameters to send to the API endpoint

for the tag timeline operation.

Typically these are written to a http.Request.

func NewTagTimelineParams

func NewTagTimelineParams() *TagTimelineParams

NewTagTimelineParams creates a new TagTimelineParams 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 NewTagTimelineParamsWithContext

func NewTagTimelineParamsWithContext(ctx context.Context) *TagTimelineParams

NewTagTimelineParamsWithContext creates a new TagTimelineParams object with the ability to set a context for a request.

func NewTagTimelineParamsWithHTTPClient

func NewTagTimelineParamsWithHTTPClient(client *http.Client) *TagTimelineParams

NewTagTimelineParamsWithHTTPClient creates a new TagTimelineParams object with the ability to set a custom HTTPClient for a request.

func NewTagTimelineParamsWithTimeout

func NewTagTimelineParamsWithTimeout(timeout time.Duration) *TagTimelineParams

NewTagTimelineParamsWithTimeout creates a new TagTimelineParams object with the ability to set a timeout on a request.

func (*TagTimelineParams) SetContext

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

SetContext adds the context to the tag timeline params

func (*TagTimelineParams) SetDefaults

func (o *TagTimelineParams) SetDefaults()

SetDefaults hydrates default values in the tag timeline params (not the query body).

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

func (*TagTimelineParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tag timeline params

func (*TagTimelineParams) SetLimit

func (o *TagTimelineParams) SetLimit(limit *int64)

SetLimit adds the limit to the tag timeline params

func (*TagTimelineParams) SetMaxID

func (o *TagTimelineParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the tag timeline params

func (*TagTimelineParams) SetMinID

func (o *TagTimelineParams) SetMinID(minID *string)

SetMinID adds the minId to the tag timeline params

func (*TagTimelineParams) SetSinceID

func (o *TagTimelineParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the tag timeline params

func (*TagTimelineParams) SetTagName

func (o *TagTimelineParams) SetTagName(tagName string)

SetTagName adds the tagName to the tag timeline params

func (*TagTimelineParams) SetTimeout

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

SetTimeout adds the timeout to the tag timeline params

func (*TagTimelineParams) WithContext

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

WithContext adds the context to the tag timeline params

func (*TagTimelineParams) WithDefaults

func (o *TagTimelineParams) WithDefaults() *TagTimelineParams

WithDefaults hydrates default values in the tag timeline params (not the query body).

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

func (*TagTimelineParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tag timeline params

func (*TagTimelineParams) WithLimit

func (o *TagTimelineParams) WithLimit(limit *int64) *TagTimelineParams

WithLimit adds the limit to the tag timeline params

func (*TagTimelineParams) WithMaxID

func (o *TagTimelineParams) WithMaxID(maxID *string) *TagTimelineParams

WithMaxID adds the maxID to the tag timeline params

func (*TagTimelineParams) WithMinID

func (o *TagTimelineParams) WithMinID(minID *string) *TagTimelineParams

WithMinID adds the minID to the tag timeline params

func (*TagTimelineParams) WithSinceID

func (o *TagTimelineParams) WithSinceID(sinceID *string) *TagTimelineParams

WithSinceID adds the sinceID to the tag timeline params

func (*TagTimelineParams) WithTagName

func (o *TagTimelineParams) WithTagName(tagName string) *TagTimelineParams

WithTagName adds the tagName to the tag timeline params

func (*TagTimelineParams) WithTimeout

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

WithTimeout adds the timeout to the tag timeline params

func (*TagTimelineParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TagTimelineReader

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

TagTimelineReader is a Reader for the TagTimeline structure.

func (*TagTimelineReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TagTimelineUnauthorized

type TagTimelineUnauthorized struct {
}

TagTimelineUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTagTimelineUnauthorized

func NewTagTimelineUnauthorized() *TagTimelineUnauthorized

NewTagTimelineUnauthorized creates a TagTimelineUnauthorized with default headers values

func (*TagTimelineUnauthorized) Code

func (o *TagTimelineUnauthorized) Code() int

Code gets the status code for the tag timeline unauthorized response

func (*TagTimelineUnauthorized) Error

func (o *TagTimelineUnauthorized) Error() string

func (*TagTimelineUnauthorized) IsClientError

func (o *TagTimelineUnauthorized) IsClientError() bool

IsClientError returns true when this tag timeline unauthorized response has a 4xx status code

func (*TagTimelineUnauthorized) IsCode

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

IsCode returns true when this tag timeline unauthorized response a status code equal to that given

func (*TagTimelineUnauthorized) IsRedirect

func (o *TagTimelineUnauthorized) IsRedirect() bool

IsRedirect returns true when this tag timeline unauthorized response has a 3xx status code

func (*TagTimelineUnauthorized) IsServerError

func (o *TagTimelineUnauthorized) IsServerError() bool

IsServerError returns true when this tag timeline unauthorized response has a 5xx status code

func (*TagTimelineUnauthorized) IsSuccess

func (o *TagTimelineUnauthorized) IsSuccess() bool

IsSuccess returns true when this tag timeline unauthorized response has a 2xx status code

func (*TagTimelineUnauthorized) String

func (o *TagTimelineUnauthorized) String() string

Jump to

Keyboard shortcuts

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