featured_tags

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: 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 featured tags API

func (*Client) GetFeaturedTags

func (a *Client) GetFeaturedTags(params *GetFeaturedTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFeaturedTagsOK, error)

GetFeaturedTags gets an array of all hashtags that you currently have featured on your profile

THIS ENDPOINT IS CURRENTLY NOT FULLY IMPLEMENTED: it will always return an empty array.

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 {
	GetFeaturedTags(params *GetFeaturedTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFeaturedTagsOK, 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 featured tags API client.

func NewClientWithBasicAuth

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

New creates a new featured tags 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 featured tags 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 GetFeaturedTagsBadRequest

type GetFeaturedTagsBadRequest struct {
}

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

bad request

func NewGetFeaturedTagsBadRequest

func NewGetFeaturedTagsBadRequest() *GetFeaturedTagsBadRequest

NewGetFeaturedTagsBadRequest creates a GetFeaturedTagsBadRequest with default headers values

func (*GetFeaturedTagsBadRequest) Code

func (o *GetFeaturedTagsBadRequest) Code() int

Code gets the status code for the get featured tags bad request response

func (*GetFeaturedTagsBadRequest) Error

func (o *GetFeaturedTagsBadRequest) Error() string

func (*GetFeaturedTagsBadRequest) IsClientError

func (o *GetFeaturedTagsBadRequest) IsClientError() bool

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

func (*GetFeaturedTagsBadRequest) IsCode

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

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

func (*GetFeaturedTagsBadRequest) IsRedirect

func (o *GetFeaturedTagsBadRequest) IsRedirect() bool

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

func (*GetFeaturedTagsBadRequest) IsServerError

func (o *GetFeaturedTagsBadRequest) IsServerError() bool

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

func (*GetFeaturedTagsBadRequest) IsSuccess

func (o *GetFeaturedTagsBadRequest) IsSuccess() bool

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

func (*GetFeaturedTagsBadRequest) String

func (o *GetFeaturedTagsBadRequest) String() string

type GetFeaturedTagsInternalServerError

type GetFeaturedTagsInternalServerError struct {
}

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

internal server error

func NewGetFeaturedTagsInternalServerError

func NewGetFeaturedTagsInternalServerError() *GetFeaturedTagsInternalServerError

NewGetFeaturedTagsInternalServerError creates a GetFeaturedTagsInternalServerError with default headers values

func (*GetFeaturedTagsInternalServerError) Code

Code gets the status code for the get featured tags internal server error response

func (*GetFeaturedTagsInternalServerError) Error

func (*GetFeaturedTagsInternalServerError) IsClientError

func (o *GetFeaturedTagsInternalServerError) IsClientError() bool

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

func (*GetFeaturedTagsInternalServerError) IsCode

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

func (*GetFeaturedTagsInternalServerError) IsRedirect

func (o *GetFeaturedTagsInternalServerError) IsRedirect() bool

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

func (*GetFeaturedTagsInternalServerError) IsServerError

func (o *GetFeaturedTagsInternalServerError) IsServerError() bool

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

func (*GetFeaturedTagsInternalServerError) IsSuccess

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

func (*GetFeaturedTagsInternalServerError) String

type GetFeaturedTagsNotAcceptable

type GetFeaturedTagsNotAcceptable struct {
}

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

not acceptable

func NewGetFeaturedTagsNotAcceptable

func NewGetFeaturedTagsNotAcceptable() *GetFeaturedTagsNotAcceptable

NewGetFeaturedTagsNotAcceptable creates a GetFeaturedTagsNotAcceptable with default headers values

func (*GetFeaturedTagsNotAcceptable) Code

Code gets the status code for the get featured tags not acceptable response

func (*GetFeaturedTagsNotAcceptable) Error

func (*GetFeaturedTagsNotAcceptable) IsClientError

func (o *GetFeaturedTagsNotAcceptable) IsClientError() bool

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

func (*GetFeaturedTagsNotAcceptable) IsCode

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

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

func (*GetFeaturedTagsNotAcceptable) IsRedirect

func (o *GetFeaturedTagsNotAcceptable) IsRedirect() bool

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

func (*GetFeaturedTagsNotAcceptable) IsServerError

func (o *GetFeaturedTagsNotAcceptable) IsServerError() bool

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

func (*GetFeaturedTagsNotAcceptable) IsSuccess

func (o *GetFeaturedTagsNotAcceptable) IsSuccess() bool

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

func (*GetFeaturedTagsNotAcceptable) String

type GetFeaturedTagsNotFound

type GetFeaturedTagsNotFound struct {
}

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

not found

func NewGetFeaturedTagsNotFound

func NewGetFeaturedTagsNotFound() *GetFeaturedTagsNotFound

NewGetFeaturedTagsNotFound creates a GetFeaturedTagsNotFound with default headers values

func (*GetFeaturedTagsNotFound) Code

func (o *GetFeaturedTagsNotFound) Code() int

Code gets the status code for the get featured tags not found response

func (*GetFeaturedTagsNotFound) Error

func (o *GetFeaturedTagsNotFound) Error() string

func (*GetFeaturedTagsNotFound) IsClientError

func (o *GetFeaturedTagsNotFound) IsClientError() bool

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

func (*GetFeaturedTagsNotFound) IsCode

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

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

func (*GetFeaturedTagsNotFound) IsRedirect

func (o *GetFeaturedTagsNotFound) IsRedirect() bool

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

func (*GetFeaturedTagsNotFound) IsServerError

func (o *GetFeaturedTagsNotFound) IsServerError() bool

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

func (*GetFeaturedTagsNotFound) IsSuccess

func (o *GetFeaturedTagsNotFound) IsSuccess() bool

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

func (*GetFeaturedTagsNotFound) String

func (o *GetFeaturedTagsNotFound) String() string

type GetFeaturedTagsOK

type GetFeaturedTagsOK struct {
	Payload []interface{}
}

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

GetFeaturedTagsOK get featured tags o k

func NewGetFeaturedTagsOK

func NewGetFeaturedTagsOK() *GetFeaturedTagsOK

NewGetFeaturedTagsOK creates a GetFeaturedTagsOK with default headers values

func (*GetFeaturedTagsOK) Code

func (o *GetFeaturedTagsOK) Code() int

Code gets the status code for the get featured tags o k response

func (*GetFeaturedTagsOK) Error

func (o *GetFeaturedTagsOK) Error() string

func (*GetFeaturedTagsOK) GetPayload

func (o *GetFeaturedTagsOK) GetPayload() []interface{}

func (*GetFeaturedTagsOK) IsClientError

func (o *GetFeaturedTagsOK) IsClientError() bool

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

func (*GetFeaturedTagsOK) IsCode

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

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

func (*GetFeaturedTagsOK) IsRedirect

func (o *GetFeaturedTagsOK) IsRedirect() bool

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

func (*GetFeaturedTagsOK) IsServerError

func (o *GetFeaturedTagsOK) IsServerError() bool

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

func (*GetFeaturedTagsOK) IsSuccess

func (o *GetFeaturedTagsOK) IsSuccess() bool

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

func (*GetFeaturedTagsOK) String

func (o *GetFeaturedTagsOK) String() string

type GetFeaturedTagsParams

type GetFeaturedTagsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFeaturedTagsParams contains all the parameters to send to the API endpoint

for the get featured tags operation.

Typically these are written to a http.Request.

func NewGetFeaturedTagsParams

func NewGetFeaturedTagsParams() *GetFeaturedTagsParams

NewGetFeaturedTagsParams creates a new GetFeaturedTagsParams 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 NewGetFeaturedTagsParamsWithContext

func NewGetFeaturedTagsParamsWithContext(ctx context.Context) *GetFeaturedTagsParams

NewGetFeaturedTagsParamsWithContext creates a new GetFeaturedTagsParams object with the ability to set a context for a request.

func NewGetFeaturedTagsParamsWithHTTPClient

func NewGetFeaturedTagsParamsWithHTTPClient(client *http.Client) *GetFeaturedTagsParams

NewGetFeaturedTagsParamsWithHTTPClient creates a new GetFeaturedTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetFeaturedTagsParamsWithTimeout

func NewGetFeaturedTagsParamsWithTimeout(timeout time.Duration) *GetFeaturedTagsParams

NewGetFeaturedTagsParamsWithTimeout creates a new GetFeaturedTagsParams object with the ability to set a timeout on a request.

func (*GetFeaturedTagsParams) SetContext

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

SetContext adds the context to the get featured tags params

func (*GetFeaturedTagsParams) SetDefaults

func (o *GetFeaturedTagsParams) SetDefaults()

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

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

func (*GetFeaturedTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get featured tags params

func (*GetFeaturedTagsParams) SetTimeout

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

SetTimeout adds the timeout to the get featured tags params

func (*GetFeaturedTagsParams) WithContext

WithContext adds the context to the get featured tags params

func (*GetFeaturedTagsParams) WithDefaults

func (o *GetFeaturedTagsParams) WithDefaults() *GetFeaturedTagsParams

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

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

func (*GetFeaturedTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get featured tags params

func (*GetFeaturedTagsParams) WithTimeout

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

WithTimeout adds the timeout to the get featured tags params

func (*GetFeaturedTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFeaturedTagsReader

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

GetFeaturedTagsReader is a Reader for the GetFeaturedTags structure.

func (*GetFeaturedTagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFeaturedTagsUnauthorized

type GetFeaturedTagsUnauthorized struct {
}

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

unauthorized

func NewGetFeaturedTagsUnauthorized

func NewGetFeaturedTagsUnauthorized() *GetFeaturedTagsUnauthorized

NewGetFeaturedTagsUnauthorized creates a GetFeaturedTagsUnauthorized with default headers values

func (*GetFeaturedTagsUnauthorized) Code

func (o *GetFeaturedTagsUnauthorized) Code() int

Code gets the status code for the get featured tags unauthorized response

func (*GetFeaturedTagsUnauthorized) Error

func (*GetFeaturedTagsUnauthorized) IsClientError

func (o *GetFeaturedTagsUnauthorized) IsClientError() bool

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

func (*GetFeaturedTagsUnauthorized) IsCode

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

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

func (*GetFeaturedTagsUnauthorized) IsRedirect

func (o *GetFeaturedTagsUnauthorized) IsRedirect() bool

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

func (*GetFeaturedTagsUnauthorized) IsServerError

func (o *GetFeaturedTagsUnauthorized) IsServerError() bool

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

func (*GetFeaturedTagsUnauthorized) IsSuccess

func (o *GetFeaturedTagsUnauthorized) IsSuccess() bool

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

func (*GetFeaturedTagsUnauthorized) String

func (o *GetFeaturedTagsUnauthorized) String() string

Jump to

Keyboard shortcuts

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