mutes

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 mutes API

func (*Client) MutesGet

func (a *Client) MutesGet(params *MutesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MutesGetOK, error)
MutesGet gets an array of accounts that requesting account has muted

The next and previous queries can be parsed from the returned Link header.

Example:

``` <https://example.org/api/v1/mutes?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/mutes?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	MutesGet(params *MutesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MutesGetOK, 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 mutes API client.

func NewClientWithBasicAuth

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

New creates a new mutes 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 mutes 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 MutesGetBadRequest

type MutesGetBadRequest struct {
}

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

bad request

func NewMutesGetBadRequest

func NewMutesGetBadRequest() *MutesGetBadRequest

NewMutesGetBadRequest creates a MutesGetBadRequest with default headers values

func (*MutesGetBadRequest) Code

func (o *MutesGetBadRequest) Code() int

Code gets the status code for the mutes get bad request response

func (*MutesGetBadRequest) Error

func (o *MutesGetBadRequest) Error() string

func (*MutesGetBadRequest) IsClientError

func (o *MutesGetBadRequest) IsClientError() bool

IsClientError returns true when this mutes get bad request response has a 4xx status code

func (*MutesGetBadRequest) IsCode

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

IsCode returns true when this mutes get bad request response a status code equal to that given

func (*MutesGetBadRequest) IsRedirect

func (o *MutesGetBadRequest) IsRedirect() bool

IsRedirect returns true when this mutes get bad request response has a 3xx status code

func (*MutesGetBadRequest) IsServerError

func (o *MutesGetBadRequest) IsServerError() bool

IsServerError returns true when this mutes get bad request response has a 5xx status code

func (*MutesGetBadRequest) IsSuccess

func (o *MutesGetBadRequest) IsSuccess() bool

IsSuccess returns true when this mutes get bad request response has a 2xx status code

func (*MutesGetBadRequest) String

func (o *MutesGetBadRequest) String() string

type MutesGetInternalServerError

type MutesGetInternalServerError struct {
}

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

internal server error

func NewMutesGetInternalServerError

func NewMutesGetInternalServerError() *MutesGetInternalServerError

NewMutesGetInternalServerError creates a MutesGetInternalServerError with default headers values

func (*MutesGetInternalServerError) Code

func (o *MutesGetInternalServerError) Code() int

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

func (*MutesGetInternalServerError) Error

func (*MutesGetInternalServerError) IsClientError

func (o *MutesGetInternalServerError) IsClientError() bool

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

func (*MutesGetInternalServerError) IsCode

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

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

func (*MutesGetInternalServerError) IsRedirect

func (o *MutesGetInternalServerError) IsRedirect() bool

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

func (*MutesGetInternalServerError) IsServerError

func (o *MutesGetInternalServerError) IsServerError() bool

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

func (*MutesGetInternalServerError) IsSuccess

func (o *MutesGetInternalServerError) IsSuccess() bool

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

func (*MutesGetInternalServerError) String

func (o *MutesGetInternalServerError) String() string

type MutesGetNotAcceptable

type MutesGetNotAcceptable struct {
}

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

not acceptable

func NewMutesGetNotAcceptable

func NewMutesGetNotAcceptable() *MutesGetNotAcceptable

NewMutesGetNotAcceptable creates a MutesGetNotAcceptable with default headers values

func (*MutesGetNotAcceptable) Code

func (o *MutesGetNotAcceptable) Code() int

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

func (*MutesGetNotAcceptable) Error

func (o *MutesGetNotAcceptable) Error() string

func (*MutesGetNotAcceptable) IsClientError

func (o *MutesGetNotAcceptable) IsClientError() bool

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

func (*MutesGetNotAcceptable) IsCode

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

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

func (*MutesGetNotAcceptable) IsRedirect

func (o *MutesGetNotAcceptable) IsRedirect() bool

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

func (*MutesGetNotAcceptable) IsServerError

func (o *MutesGetNotAcceptable) IsServerError() bool

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

func (*MutesGetNotAcceptable) IsSuccess

func (o *MutesGetNotAcceptable) IsSuccess() bool

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

func (*MutesGetNotAcceptable) String

func (o *MutesGetNotAcceptable) String() string

type MutesGetNotFound

type MutesGetNotFound struct {
}

MutesGetNotFound describes a response with status code 404, with default header values.

not found

func NewMutesGetNotFound

func NewMutesGetNotFound() *MutesGetNotFound

NewMutesGetNotFound creates a MutesGetNotFound with default headers values

func (*MutesGetNotFound) Code

func (o *MutesGetNotFound) Code() int

Code gets the status code for the mutes get not found response

func (*MutesGetNotFound) Error

func (o *MutesGetNotFound) Error() string

func (*MutesGetNotFound) IsClientError

func (o *MutesGetNotFound) IsClientError() bool

IsClientError returns true when this mutes get not found response has a 4xx status code

func (*MutesGetNotFound) IsCode

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

IsCode returns true when this mutes get not found response a status code equal to that given

func (*MutesGetNotFound) IsRedirect

func (o *MutesGetNotFound) IsRedirect() bool

IsRedirect returns true when this mutes get not found response has a 3xx status code

func (*MutesGetNotFound) IsServerError

func (o *MutesGetNotFound) IsServerError() bool

IsServerError returns true when this mutes get not found response has a 5xx status code

func (*MutesGetNotFound) IsSuccess

func (o *MutesGetNotFound) IsSuccess() bool

IsSuccess returns true when this mutes get not found response has a 2xx status code

func (*MutesGetNotFound) String

func (o *MutesGetNotFound) String() string

type MutesGetOK

type MutesGetOK struct {

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

	Payload []*models.MutedAccount
}

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

List of muted accounts, including when their mutes expire (if applicable).

func NewMutesGetOK

func NewMutesGetOK() *MutesGetOK

NewMutesGetOK creates a MutesGetOK with default headers values

func (*MutesGetOK) Code

func (o *MutesGetOK) Code() int

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

func (*MutesGetOK) Error

func (o *MutesGetOK) Error() string

func (*MutesGetOK) GetPayload

func (o *MutesGetOK) GetPayload() []*models.MutedAccount

func (*MutesGetOK) IsClientError

func (o *MutesGetOK) IsClientError() bool

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

func (*MutesGetOK) IsCode

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

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

func (*MutesGetOK) IsRedirect

func (o *MutesGetOK) IsRedirect() bool

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

func (*MutesGetOK) IsServerError

func (o *MutesGetOK) IsServerError() bool

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

func (*MutesGetOK) IsSuccess

func (o *MutesGetOK) IsSuccess() bool

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

func (*MutesGetOK) String

func (o *MutesGetOK) String() string

type MutesGetParams

type MutesGetParams struct {

	/* Limit.

	   Number of muted accounts to return.

	   Default: 40
	*/
	Limit *int64

	/* MaxID.

	   Return only muted accounts *OLDER* than the given max ID. The muted account with the specified ID will not be included in the response. NOTE: the ID is of the internal mute, NOT any of the returned accounts.
	*/
	MaxID *string

	/* MinID.

	   Return only muted accounts *IMMEDIATELY NEWER* than the given min ID. The muted account with the specified ID will not be included in the response. NOTE: the ID is of the internal mute, NOT any of the returned accounts.
	*/
	MinID *string

	/* SinceID.

	   Return only muted accounts *NEWER* than the given since ID. The muted account with the specified ID will not be included in the response. NOTE: the ID is of the internal mute, NOT any of the returned accounts.
	*/
	SinceID *string

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

MutesGetParams contains all the parameters to send to the API endpoint

for the mutes get operation.

Typically these are written to a http.Request.

func NewMutesGetParams

func NewMutesGetParams() *MutesGetParams

NewMutesGetParams creates a new MutesGetParams 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 NewMutesGetParamsWithContext

func NewMutesGetParamsWithContext(ctx context.Context) *MutesGetParams

NewMutesGetParamsWithContext creates a new MutesGetParams object with the ability to set a context for a request.

func NewMutesGetParamsWithHTTPClient

func NewMutesGetParamsWithHTTPClient(client *http.Client) *MutesGetParams

NewMutesGetParamsWithHTTPClient creates a new MutesGetParams object with the ability to set a custom HTTPClient for a request.

func NewMutesGetParamsWithTimeout

func NewMutesGetParamsWithTimeout(timeout time.Duration) *MutesGetParams

NewMutesGetParamsWithTimeout creates a new MutesGetParams object with the ability to set a timeout on a request.

func (*MutesGetParams) SetContext

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

SetContext adds the context to the mutes get params

func (*MutesGetParams) SetDefaults

func (o *MutesGetParams) SetDefaults()

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

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

func (*MutesGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the mutes get params

func (*MutesGetParams) SetLimit

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

SetLimit adds the limit to the mutes get params

func (*MutesGetParams) SetMaxID

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

SetMaxID adds the maxId to the mutes get params

func (*MutesGetParams) SetMinID

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

SetMinID adds the minId to the mutes get params

func (*MutesGetParams) SetSinceID

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

SetSinceID adds the sinceId to the mutes get params

func (*MutesGetParams) SetTimeout

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

SetTimeout adds the timeout to the mutes get params

func (*MutesGetParams) WithContext

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

WithContext adds the context to the mutes get params

func (*MutesGetParams) WithDefaults

func (o *MutesGetParams) WithDefaults() *MutesGetParams

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

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

func (*MutesGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the mutes get params

func (*MutesGetParams) WithLimit

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

WithLimit adds the limit to the mutes get params

func (*MutesGetParams) WithMaxID

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

WithMaxID adds the maxID to the mutes get params

func (*MutesGetParams) WithMinID

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

WithMinID adds the minID to the mutes get params

func (*MutesGetParams) WithSinceID

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

WithSinceID adds the sinceID to the mutes get params

func (*MutesGetParams) WithTimeout

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

WithTimeout adds the timeout to the mutes get params

func (*MutesGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MutesGetReader

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

MutesGetReader is a Reader for the MutesGet structure.

func (*MutesGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MutesGetUnauthorized

type MutesGetUnauthorized struct {
}

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

unauthorized

func NewMutesGetUnauthorized

func NewMutesGetUnauthorized() *MutesGetUnauthorized

NewMutesGetUnauthorized creates a MutesGetUnauthorized with default headers values

func (*MutesGetUnauthorized) Code

func (o *MutesGetUnauthorized) Code() int

Code gets the status code for the mutes get unauthorized response

func (*MutesGetUnauthorized) Error

func (o *MutesGetUnauthorized) Error() string

func (*MutesGetUnauthorized) IsClientError

func (o *MutesGetUnauthorized) IsClientError() bool

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

func (*MutesGetUnauthorized) IsCode

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

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

func (*MutesGetUnauthorized) IsRedirect

func (o *MutesGetUnauthorized) IsRedirect() bool

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

func (*MutesGetUnauthorized) IsServerError

func (o *MutesGetUnauthorized) IsServerError() bool

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

func (*MutesGetUnauthorized) IsSuccess

func (o *MutesGetUnauthorized) IsSuccess() bool

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

func (*MutesGetUnauthorized) String

func (o *MutesGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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