bookmarks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarksGetInternalServerError

type BookmarksGetInternalServerError struct {
}

BookmarksGetInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewBookmarksGetInternalServerError

func NewBookmarksGetInternalServerError() *BookmarksGetInternalServerError

NewBookmarksGetInternalServerError creates a BookmarksGetInternalServerError with default headers values

func (*BookmarksGetInternalServerError) Code

Code gets the status code for the bookmarks get internal server error response

func (*BookmarksGetInternalServerError) Error

func (*BookmarksGetInternalServerError) IsClientError

func (o *BookmarksGetInternalServerError) IsClientError() bool

IsClientError returns true when this bookmarks get internal server error response has a 4xx status code

func (*BookmarksGetInternalServerError) IsCode

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

IsCode returns true when this bookmarks get internal server error response a status code equal to that given

func (*BookmarksGetInternalServerError) IsRedirect

func (o *BookmarksGetInternalServerError) IsRedirect() bool

IsRedirect returns true when this bookmarks get internal server error response has a 3xx status code

func (*BookmarksGetInternalServerError) IsServerError

func (o *BookmarksGetInternalServerError) IsServerError() bool

IsServerError returns true when this bookmarks get internal server error response has a 5xx status code

func (*BookmarksGetInternalServerError) IsSuccess

func (o *BookmarksGetInternalServerError) IsSuccess() bool

IsSuccess returns true when this bookmarks get internal server error response has a 2xx status code

func (*BookmarksGetInternalServerError) String

type BookmarksGetNotAcceptable

type BookmarksGetNotAcceptable struct {
}

BookmarksGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewBookmarksGetNotAcceptable

func NewBookmarksGetNotAcceptable() *BookmarksGetNotAcceptable

NewBookmarksGetNotAcceptable creates a BookmarksGetNotAcceptable with default headers values

func (*BookmarksGetNotAcceptable) Code

func (o *BookmarksGetNotAcceptable) Code() int

Code gets the status code for the bookmarks get not acceptable response

func (*BookmarksGetNotAcceptable) Error

func (o *BookmarksGetNotAcceptable) Error() string

func (*BookmarksGetNotAcceptable) IsClientError

func (o *BookmarksGetNotAcceptable) IsClientError() bool

IsClientError returns true when this bookmarks get not acceptable response has a 4xx status code

func (*BookmarksGetNotAcceptable) IsCode

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

IsCode returns true when this bookmarks get not acceptable response a status code equal to that given

func (*BookmarksGetNotAcceptable) IsRedirect

func (o *BookmarksGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this bookmarks get not acceptable response has a 3xx status code

func (*BookmarksGetNotAcceptable) IsServerError

func (o *BookmarksGetNotAcceptable) IsServerError() bool

IsServerError returns true when this bookmarks get not acceptable response has a 5xx status code

func (*BookmarksGetNotAcceptable) IsSuccess

func (o *BookmarksGetNotAcceptable) IsSuccess() bool

IsSuccess returns true when this bookmarks get not acceptable response has a 2xx status code

func (*BookmarksGetNotAcceptable) String

func (o *BookmarksGetNotAcceptable) String() string

type BookmarksGetOK

type BookmarksGetOK struct {

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

	Payload []*models.Status
}

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

Array of bookmarked statuses

func NewBookmarksGetOK

func NewBookmarksGetOK() *BookmarksGetOK

NewBookmarksGetOK creates a BookmarksGetOK with default headers values

func (*BookmarksGetOK) Code

func (o *BookmarksGetOK) Code() int

Code gets the status code for the bookmarks get o k response

func (*BookmarksGetOK) Error

func (o *BookmarksGetOK) Error() string

func (*BookmarksGetOK) GetPayload

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

func (*BookmarksGetOK) IsClientError

func (o *BookmarksGetOK) IsClientError() bool

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

func (*BookmarksGetOK) IsCode

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

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

func (*BookmarksGetOK) IsRedirect

func (o *BookmarksGetOK) IsRedirect() bool

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

func (*BookmarksGetOK) IsServerError

func (o *BookmarksGetOK) IsServerError() bool

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

func (*BookmarksGetOK) IsSuccess

func (o *BookmarksGetOK) IsSuccess() bool

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

func (*BookmarksGetOK) String

func (o *BookmarksGetOK) String() string

type BookmarksGetParams

type BookmarksGetParams struct {

	/* Limit.

	   Number of bookmarked statuses to return.

	   Default: 20
	*/
	Limit *int64

	/* MaxID.

	   Return only bookmarked statuses *OLDER* than the given max ID. The bookmarked status with the specified ID will not be included in the response. NOTE: the ID is of the internal bookmark, NOT any of the returned statuses.
	*/
	MaxID *string

	/* MinID.

	   Return only bookmarked statuses *IMMEDIATELY NEWER* than the given min ID. The bookmarked status with the specified ID may be included in the response. NOTE: the ID is of the internal bookmark, NOT any of the returned statuses.
	*/
	MinID *string

	/* SinceID.

	   Return only bookmarked statuses *NEWER* than the given min ID. The bookmarked status with the specified ID will not be included in the response. NOTE: the ID is of the internal bookmark, NOT any of the returned statuses.
	*/
	SinceID *string

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

BookmarksGetParams contains all the parameters to send to the API endpoint

for the bookmarks get operation.

Typically these are written to a http.Request.

func NewBookmarksGetParams

func NewBookmarksGetParams() *BookmarksGetParams

NewBookmarksGetParams creates a new BookmarksGetParams 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 NewBookmarksGetParamsWithContext

func NewBookmarksGetParamsWithContext(ctx context.Context) *BookmarksGetParams

NewBookmarksGetParamsWithContext creates a new BookmarksGetParams object with the ability to set a context for a request.

func NewBookmarksGetParamsWithHTTPClient

func NewBookmarksGetParamsWithHTTPClient(client *http.Client) *BookmarksGetParams

NewBookmarksGetParamsWithHTTPClient creates a new BookmarksGetParams object with the ability to set a custom HTTPClient for a request.

func NewBookmarksGetParamsWithTimeout

func NewBookmarksGetParamsWithTimeout(timeout time.Duration) *BookmarksGetParams

NewBookmarksGetParamsWithTimeout creates a new BookmarksGetParams object with the ability to set a timeout on a request.

func (*BookmarksGetParams) SetContext

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

SetContext adds the context to the bookmarks get params

func (*BookmarksGetParams) SetDefaults

func (o *BookmarksGetParams) SetDefaults()

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

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

func (*BookmarksGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bookmarks get params

func (*BookmarksGetParams) SetLimit

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

SetLimit adds the limit to the bookmarks get params

func (*BookmarksGetParams) SetMaxID

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

SetMaxID adds the maxId to the bookmarks get params

func (*BookmarksGetParams) SetMinID

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

SetMinID adds the minId to the bookmarks get params

func (*BookmarksGetParams) SetSinceID

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

SetSinceID adds the sinceId to the bookmarks get params

func (*BookmarksGetParams) SetTimeout

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

SetTimeout adds the timeout to the bookmarks get params

func (*BookmarksGetParams) WithContext

WithContext adds the context to the bookmarks get params

func (*BookmarksGetParams) WithDefaults

func (o *BookmarksGetParams) WithDefaults() *BookmarksGetParams

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

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

func (*BookmarksGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bookmarks get params

func (*BookmarksGetParams) WithLimit

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

WithLimit adds the limit to the bookmarks get params

func (*BookmarksGetParams) WithMaxID

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

WithMaxID adds the maxID to the bookmarks get params

func (*BookmarksGetParams) WithMinID

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

WithMinID adds the minID to the bookmarks get params

func (*BookmarksGetParams) WithSinceID

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

WithSinceID adds the sinceID to the bookmarks get params

func (*BookmarksGetParams) WithTimeout

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

WithTimeout adds the timeout to the bookmarks get params

func (*BookmarksGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BookmarksGetReader

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

BookmarksGetReader is a Reader for the BookmarksGet structure.

func (*BookmarksGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BookmarksGetUnauthorized

type BookmarksGetUnauthorized struct {
}

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

unauthorized

func NewBookmarksGetUnauthorized

func NewBookmarksGetUnauthorized() *BookmarksGetUnauthorized

NewBookmarksGetUnauthorized creates a BookmarksGetUnauthorized with default headers values

func (*BookmarksGetUnauthorized) Code

func (o *BookmarksGetUnauthorized) Code() int

Code gets the status code for the bookmarks get unauthorized response

func (*BookmarksGetUnauthorized) Error

func (o *BookmarksGetUnauthorized) Error() string

func (*BookmarksGetUnauthorized) IsClientError

func (o *BookmarksGetUnauthorized) IsClientError() bool

IsClientError returns true when this bookmarks get unauthorized response has a 4xx status code

func (*BookmarksGetUnauthorized) IsCode

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

IsCode returns true when this bookmarks get unauthorized response a status code equal to that given

func (*BookmarksGetUnauthorized) IsRedirect

func (o *BookmarksGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this bookmarks get unauthorized response has a 3xx status code

func (*BookmarksGetUnauthorized) IsServerError

func (o *BookmarksGetUnauthorized) IsServerError() bool

IsServerError returns true when this bookmarks get unauthorized response has a 5xx status code

func (*BookmarksGetUnauthorized) IsSuccess

func (o *BookmarksGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this bookmarks get unauthorized response has a 2xx status code

func (*BookmarksGetUnauthorized) String

func (o *BookmarksGetUnauthorized) String() string

type Client

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

Client for bookmarks API

func (*Client) BookmarksGet

func (a *Client) BookmarksGet(params *BookmarksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BookmarksGetOK, error)

BookmarksGet Get an array of statuses bookmarked in the instance

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BookmarksGet(params *BookmarksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BookmarksGetOK, 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 bookmarks API client.

Jump to

Keyboard shortcuts

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