trends

package
v0.20.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for trends API

func (a *Client) GetTrendingLinks(params *GetTrendingLinksParams, opts ...ClientOption) (*GetTrendingLinksOK, error)

GetTrendingLinks links that have been shared more than others

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

func (*Client) GetTrendingStatuses

func (a *Client) GetTrendingStatuses(params *GetTrendingStatusesParams, opts ...ClientOption) (*GetTrendingStatusesOK, error)

GetTrendingStatuses statuses that have been interacted with more than others

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

func (*Client) GetTrendingTags

func (a *Client) GetTrendingTags(params *GetTrendingTagsParams, opts ...ClientOption) (*GetTrendingTagsOK, error)

GetTrendingTags views hashtags that are currently being used more frequently than usual

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 {
	GetTrendingLinks(params *GetTrendingLinksParams, opts ...ClientOption) (*GetTrendingLinksOK, error)

	GetTrendingStatuses(params *GetTrendingStatusesParams, opts ...ClientOption) (*GetTrendingStatusesOK, error)

	GetTrendingTags(params *GetTrendingTagsParams, opts ...ClientOption) (*GetTrendingTagsOK, 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 trends API client.

func NewClientWithBasicAuth

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

New creates a new trends 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 trends 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 GetTrendingLinksNotAcceptable

type GetTrendingLinksNotAcceptable struct {
}

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

not acceptable

func NewGetTrendingLinksNotAcceptable

func NewGetTrendingLinksNotAcceptable() *GetTrendingLinksNotAcceptable

NewGetTrendingLinksNotAcceptable creates a GetTrendingLinksNotAcceptable with default headers values

func (*GetTrendingLinksNotAcceptable) Code

Code gets the status code for the get trending links not acceptable response

func (*GetTrendingLinksNotAcceptable) Error

func (*GetTrendingLinksNotAcceptable) IsClientError

func (o *GetTrendingLinksNotAcceptable) IsClientError() bool

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

func (*GetTrendingLinksNotAcceptable) IsCode

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

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

func (*GetTrendingLinksNotAcceptable) IsRedirect

func (o *GetTrendingLinksNotAcceptable) IsRedirect() bool

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

func (*GetTrendingLinksNotAcceptable) IsServerError

func (o *GetTrendingLinksNotAcceptable) IsServerError() bool

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

func (*GetTrendingLinksNotAcceptable) IsSuccess

func (o *GetTrendingLinksNotAcceptable) IsSuccess() bool

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

func (*GetTrendingLinksNotAcceptable) String

type GetTrendingLinksOK

type GetTrendingLinksOK struct {
	Payload []interface{}
}

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

GetTrendingLinksOK get trending links o k

func NewGetTrendingLinksOK

func NewGetTrendingLinksOK() *GetTrendingLinksOK

NewGetTrendingLinksOK creates a GetTrendingLinksOK with default headers values

func (*GetTrendingLinksOK) Code

func (o *GetTrendingLinksOK) Code() int

Code gets the status code for the get trending links o k response

func (*GetTrendingLinksOK) Error

func (o *GetTrendingLinksOK) Error() string

func (*GetTrendingLinksOK) GetPayload

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

func (*GetTrendingLinksOK) IsClientError

func (o *GetTrendingLinksOK) IsClientError() bool

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

func (*GetTrendingLinksOK) IsCode

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

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

func (*GetTrendingLinksOK) IsRedirect

func (o *GetTrendingLinksOK) IsRedirect() bool

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

func (*GetTrendingLinksOK) IsServerError

func (o *GetTrendingLinksOK) IsServerError() bool

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

func (*GetTrendingLinksOK) IsSuccess

func (o *GetTrendingLinksOK) IsSuccess() bool

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

func (*GetTrendingLinksOK) String

func (o *GetTrendingLinksOK) String() string

type GetTrendingLinksParams

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

GetTrendingLinksParams contains all the parameters to send to the API endpoint

for the get trending links operation.

Typically these are written to a http.Request.

func NewGetTrendingLinksParams

func NewGetTrendingLinksParams() *GetTrendingLinksParams

NewGetTrendingLinksParams creates a new GetTrendingLinksParams 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 NewGetTrendingLinksParamsWithContext

func NewGetTrendingLinksParamsWithContext(ctx context.Context) *GetTrendingLinksParams

NewGetTrendingLinksParamsWithContext creates a new GetTrendingLinksParams object with the ability to set a context for a request.

func NewGetTrendingLinksParamsWithHTTPClient

func NewGetTrendingLinksParamsWithHTTPClient(client *http.Client) *GetTrendingLinksParams

NewGetTrendingLinksParamsWithHTTPClient creates a new GetTrendingLinksParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrendingLinksParamsWithTimeout

func NewGetTrendingLinksParamsWithTimeout(timeout time.Duration) *GetTrendingLinksParams

NewGetTrendingLinksParamsWithTimeout creates a new GetTrendingLinksParams object with the ability to set a timeout on a request.

func (*GetTrendingLinksParams) SetContext

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

SetContext adds the context to the get trending links params

func (*GetTrendingLinksParams) SetDefaults

func (o *GetTrendingLinksParams) SetDefaults()

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

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

func (*GetTrendingLinksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get trending links params

func (*GetTrendingLinksParams) SetTimeout

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

SetTimeout adds the timeout to the get trending links params

func (*GetTrendingLinksParams) WithContext

WithContext adds the context to the get trending links params

func (*GetTrendingLinksParams) WithDefaults

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

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

func (*GetTrendingLinksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get trending links params

func (*GetTrendingLinksParams) WithTimeout

WithTimeout adds the timeout to the get trending links params

func (*GetTrendingLinksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTrendingLinksReader

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

GetTrendingLinksReader is a Reader for the GetTrendingLinks structure.

func (*GetTrendingLinksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTrendingStatusesNotAcceptable

type GetTrendingStatusesNotAcceptable struct {
}

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

not acceptable

func NewGetTrendingStatusesNotAcceptable

func NewGetTrendingStatusesNotAcceptable() *GetTrendingStatusesNotAcceptable

NewGetTrendingStatusesNotAcceptable creates a GetTrendingStatusesNotAcceptable with default headers values

func (*GetTrendingStatusesNotAcceptable) Code

Code gets the status code for the get trending statuses not acceptable response

func (*GetTrendingStatusesNotAcceptable) Error

func (*GetTrendingStatusesNotAcceptable) IsClientError

func (o *GetTrendingStatusesNotAcceptable) IsClientError() bool

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

func (*GetTrendingStatusesNotAcceptable) IsCode

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

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

func (*GetTrendingStatusesNotAcceptable) IsRedirect

func (o *GetTrendingStatusesNotAcceptable) IsRedirect() bool

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

func (*GetTrendingStatusesNotAcceptable) IsServerError

func (o *GetTrendingStatusesNotAcceptable) IsServerError() bool

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

func (*GetTrendingStatusesNotAcceptable) IsSuccess

func (o *GetTrendingStatusesNotAcceptable) IsSuccess() bool

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

func (*GetTrendingStatusesNotAcceptable) String

type GetTrendingStatusesOK

type GetTrendingStatusesOK struct {
	Payload []interface{}
}

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

GetTrendingStatusesOK get trending statuses o k

func NewGetTrendingStatusesOK

func NewGetTrendingStatusesOK() *GetTrendingStatusesOK

NewGetTrendingStatusesOK creates a GetTrendingStatusesOK with default headers values

func (*GetTrendingStatusesOK) Code

func (o *GetTrendingStatusesOK) Code() int

Code gets the status code for the get trending statuses o k response

func (*GetTrendingStatusesOK) Error

func (o *GetTrendingStatusesOK) Error() string

func (*GetTrendingStatusesOK) GetPayload

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

func (*GetTrendingStatusesOK) IsClientError

func (o *GetTrendingStatusesOK) IsClientError() bool

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

func (*GetTrendingStatusesOK) IsCode

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

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

func (*GetTrendingStatusesOK) IsRedirect

func (o *GetTrendingStatusesOK) IsRedirect() bool

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

func (*GetTrendingStatusesOK) IsServerError

func (o *GetTrendingStatusesOK) IsServerError() bool

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

func (*GetTrendingStatusesOK) IsSuccess

func (o *GetTrendingStatusesOK) IsSuccess() bool

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

func (*GetTrendingStatusesOK) String

func (o *GetTrendingStatusesOK) String() string

type GetTrendingStatusesParams

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

GetTrendingStatusesParams contains all the parameters to send to the API endpoint

for the get trending statuses operation.

Typically these are written to a http.Request.

func NewGetTrendingStatusesParams

func NewGetTrendingStatusesParams() *GetTrendingStatusesParams

NewGetTrendingStatusesParams creates a new GetTrendingStatusesParams 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 NewGetTrendingStatusesParamsWithContext

func NewGetTrendingStatusesParamsWithContext(ctx context.Context) *GetTrendingStatusesParams

NewGetTrendingStatusesParamsWithContext creates a new GetTrendingStatusesParams object with the ability to set a context for a request.

func NewGetTrendingStatusesParamsWithHTTPClient

func NewGetTrendingStatusesParamsWithHTTPClient(client *http.Client) *GetTrendingStatusesParams

NewGetTrendingStatusesParamsWithHTTPClient creates a new GetTrendingStatusesParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrendingStatusesParamsWithTimeout

func NewGetTrendingStatusesParamsWithTimeout(timeout time.Duration) *GetTrendingStatusesParams

NewGetTrendingStatusesParamsWithTimeout creates a new GetTrendingStatusesParams object with the ability to set a timeout on a request.

func (*GetTrendingStatusesParams) SetContext

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

SetContext adds the context to the get trending statuses params

func (*GetTrendingStatusesParams) SetDefaults

func (o *GetTrendingStatusesParams) SetDefaults()

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

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

func (*GetTrendingStatusesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get trending statuses params

func (*GetTrendingStatusesParams) SetTimeout

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

SetTimeout adds the timeout to the get trending statuses params

func (*GetTrendingStatusesParams) WithContext

WithContext adds the context to the get trending statuses params

func (*GetTrendingStatusesParams) WithDefaults

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

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

func (*GetTrendingStatusesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get trending statuses params

func (*GetTrendingStatusesParams) WithTimeout

WithTimeout adds the timeout to the get trending statuses params

func (*GetTrendingStatusesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTrendingStatusesReader

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

GetTrendingStatusesReader is a Reader for the GetTrendingStatuses structure.

func (*GetTrendingStatusesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTrendingTagsNotAcceptable

type GetTrendingTagsNotAcceptable struct {
}

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

not acceptable

func NewGetTrendingTagsNotAcceptable

func NewGetTrendingTagsNotAcceptable() *GetTrendingTagsNotAcceptable

NewGetTrendingTagsNotAcceptable creates a GetTrendingTagsNotAcceptable with default headers values

func (*GetTrendingTagsNotAcceptable) Code

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

func (*GetTrendingTagsNotAcceptable) Error

func (*GetTrendingTagsNotAcceptable) IsClientError

func (o *GetTrendingTagsNotAcceptable) IsClientError() bool

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

func (*GetTrendingTagsNotAcceptable) IsCode

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

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

func (*GetTrendingTagsNotAcceptable) IsRedirect

func (o *GetTrendingTagsNotAcceptable) IsRedirect() bool

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

func (*GetTrendingTagsNotAcceptable) IsServerError

func (o *GetTrendingTagsNotAcceptable) IsServerError() bool

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

func (*GetTrendingTagsNotAcceptable) IsSuccess

func (o *GetTrendingTagsNotAcceptable) IsSuccess() bool

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

func (*GetTrendingTagsNotAcceptable) String

type GetTrendingTagsOK

type GetTrendingTagsOK struct {
	Payload []interface{}
}

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

GetTrendingTagsOK get trending tags o k

func NewGetTrendingTagsOK

func NewGetTrendingTagsOK() *GetTrendingTagsOK

NewGetTrendingTagsOK creates a GetTrendingTagsOK with default headers values

func (*GetTrendingTagsOK) Code

func (o *GetTrendingTagsOK) Code() int

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

func (*GetTrendingTagsOK) Error

func (o *GetTrendingTagsOK) Error() string

func (*GetTrendingTagsOK) GetPayload

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

func (*GetTrendingTagsOK) IsClientError

func (o *GetTrendingTagsOK) IsClientError() bool

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

func (*GetTrendingTagsOK) IsCode

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

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

func (*GetTrendingTagsOK) IsRedirect

func (o *GetTrendingTagsOK) IsRedirect() bool

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

func (*GetTrendingTagsOK) IsServerError

func (o *GetTrendingTagsOK) IsServerError() bool

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

func (*GetTrendingTagsOK) IsSuccess

func (o *GetTrendingTagsOK) IsSuccess() bool

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

func (*GetTrendingTagsOK) String

func (o *GetTrendingTagsOK) String() string

type GetTrendingTagsParams

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

GetTrendingTagsParams contains all the parameters to send to the API endpoint

for the get trending tags operation.

Typically these are written to a http.Request.

func NewGetTrendingTagsParams

func NewGetTrendingTagsParams() *GetTrendingTagsParams

NewGetTrendingTagsParams creates a new GetTrendingTagsParams 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 NewGetTrendingTagsParamsWithContext

func NewGetTrendingTagsParamsWithContext(ctx context.Context) *GetTrendingTagsParams

NewGetTrendingTagsParamsWithContext creates a new GetTrendingTagsParams object with the ability to set a context for a request.

func NewGetTrendingTagsParamsWithHTTPClient

func NewGetTrendingTagsParamsWithHTTPClient(client *http.Client) *GetTrendingTagsParams

NewGetTrendingTagsParamsWithHTTPClient creates a new GetTrendingTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrendingTagsParamsWithTimeout

func NewGetTrendingTagsParamsWithTimeout(timeout time.Duration) *GetTrendingTagsParams

NewGetTrendingTagsParamsWithTimeout creates a new GetTrendingTagsParams object with the ability to set a timeout on a request.

func (*GetTrendingTagsParams) SetContext

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

SetContext adds the context to the get trending tags params

func (*GetTrendingTagsParams) SetDefaults

func (o *GetTrendingTagsParams) SetDefaults()

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

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

func (*GetTrendingTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get trending tags params

func (*GetTrendingTagsParams) SetTimeout

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

SetTimeout adds the timeout to the get trending tags params

func (*GetTrendingTagsParams) WithContext

WithContext adds the context to the get trending tags params

func (*GetTrendingTagsParams) WithDefaults

func (o *GetTrendingTagsParams) WithDefaults() *GetTrendingTagsParams

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

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

func (*GetTrendingTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get trending tags params

func (*GetTrendingTagsParams) WithTimeout

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

WithTimeout adds the timeout to the get trending tags params

func (*GetTrendingTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTrendingTagsReader

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

GetTrendingTagsReader is a Reader for the GetTrendingTags structure.

func (*GetTrendingTagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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