Documentation
¶
Index ¶
- type Client
- func (a *Client) GetTrendingLinks(params *GetTrendingLinksParams, opts ...ClientOption) (*GetTrendingLinksOK, error)
- func (a *Client) GetTrendingStatuses(params *GetTrendingStatusesParams, opts ...ClientOption) (*GetTrendingStatusesOK, error)
- func (a *Client) GetTrendingTags(params *GetTrendingTagsParams, opts ...ClientOption) (*GetTrendingTagsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTrendingLinksNotAcceptable
- func (o *GetTrendingLinksNotAcceptable) Code() int
- func (o *GetTrendingLinksNotAcceptable) Error() string
- func (o *GetTrendingLinksNotAcceptable) IsClientError() bool
- func (o *GetTrendingLinksNotAcceptable) IsCode(code int) bool
- func (o *GetTrendingLinksNotAcceptable) IsRedirect() bool
- func (o *GetTrendingLinksNotAcceptable) IsServerError() bool
- func (o *GetTrendingLinksNotAcceptable) IsSuccess() bool
- func (o *GetTrendingLinksNotAcceptable) String() string
- type GetTrendingLinksOK
- func (o *GetTrendingLinksOK) Code() int
- func (o *GetTrendingLinksOK) Error() string
- func (o *GetTrendingLinksOK) GetPayload() []interface{}
- func (o *GetTrendingLinksOK) IsClientError() bool
- func (o *GetTrendingLinksOK) IsCode(code int) bool
- func (o *GetTrendingLinksOK) IsRedirect() bool
- func (o *GetTrendingLinksOK) IsServerError() bool
- func (o *GetTrendingLinksOK) IsSuccess() bool
- func (o *GetTrendingLinksOK) String() string
- type GetTrendingLinksParams
- func NewGetTrendingLinksParams() *GetTrendingLinksParams
- func NewGetTrendingLinksParamsWithContext(ctx context.Context) *GetTrendingLinksParams
- func NewGetTrendingLinksParamsWithHTTPClient(client *http.Client) *GetTrendingLinksParams
- func NewGetTrendingLinksParamsWithTimeout(timeout time.Duration) *GetTrendingLinksParams
- func (o *GetTrendingLinksParams) SetContext(ctx context.Context)
- func (o *GetTrendingLinksParams) SetDefaults()
- func (o *GetTrendingLinksParams) SetHTTPClient(client *http.Client)
- func (o *GetTrendingLinksParams) SetTimeout(timeout time.Duration)
- func (o *GetTrendingLinksParams) WithContext(ctx context.Context) *GetTrendingLinksParams
- func (o *GetTrendingLinksParams) WithDefaults() *GetTrendingLinksParams
- func (o *GetTrendingLinksParams) WithHTTPClient(client *http.Client) *GetTrendingLinksParams
- func (o *GetTrendingLinksParams) WithTimeout(timeout time.Duration) *GetTrendingLinksParams
- func (o *GetTrendingLinksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTrendingLinksReader
- type GetTrendingStatusesNotAcceptable
- func (o *GetTrendingStatusesNotAcceptable) Code() int
- func (o *GetTrendingStatusesNotAcceptable) Error() string
- func (o *GetTrendingStatusesNotAcceptable) IsClientError() bool
- func (o *GetTrendingStatusesNotAcceptable) IsCode(code int) bool
- func (o *GetTrendingStatusesNotAcceptable) IsRedirect() bool
- func (o *GetTrendingStatusesNotAcceptable) IsServerError() bool
- func (o *GetTrendingStatusesNotAcceptable) IsSuccess() bool
- func (o *GetTrendingStatusesNotAcceptable) String() string
- type GetTrendingStatusesOK
- func (o *GetTrendingStatusesOK) Code() int
- func (o *GetTrendingStatusesOK) Error() string
- func (o *GetTrendingStatusesOK) GetPayload() []interface{}
- func (o *GetTrendingStatusesOK) IsClientError() bool
- func (o *GetTrendingStatusesOK) IsCode(code int) bool
- func (o *GetTrendingStatusesOK) IsRedirect() bool
- func (o *GetTrendingStatusesOK) IsServerError() bool
- func (o *GetTrendingStatusesOK) IsSuccess() bool
- func (o *GetTrendingStatusesOK) String() string
- type GetTrendingStatusesParams
- func NewGetTrendingStatusesParams() *GetTrendingStatusesParams
- func NewGetTrendingStatusesParamsWithContext(ctx context.Context) *GetTrendingStatusesParams
- func NewGetTrendingStatusesParamsWithHTTPClient(client *http.Client) *GetTrendingStatusesParams
- func NewGetTrendingStatusesParamsWithTimeout(timeout time.Duration) *GetTrendingStatusesParams
- func (o *GetTrendingStatusesParams) SetContext(ctx context.Context)
- func (o *GetTrendingStatusesParams) SetDefaults()
- func (o *GetTrendingStatusesParams) SetHTTPClient(client *http.Client)
- func (o *GetTrendingStatusesParams) SetTimeout(timeout time.Duration)
- func (o *GetTrendingStatusesParams) WithContext(ctx context.Context) *GetTrendingStatusesParams
- func (o *GetTrendingStatusesParams) WithDefaults() *GetTrendingStatusesParams
- func (o *GetTrendingStatusesParams) WithHTTPClient(client *http.Client) *GetTrendingStatusesParams
- func (o *GetTrendingStatusesParams) WithTimeout(timeout time.Duration) *GetTrendingStatusesParams
- func (o *GetTrendingStatusesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTrendingStatusesReader
- type GetTrendingTagsNotAcceptable
- func (o *GetTrendingTagsNotAcceptable) Code() int
- func (o *GetTrendingTagsNotAcceptable) Error() string
- func (o *GetTrendingTagsNotAcceptable) IsClientError() bool
- func (o *GetTrendingTagsNotAcceptable) IsCode(code int) bool
- func (o *GetTrendingTagsNotAcceptable) IsRedirect() bool
- func (o *GetTrendingTagsNotAcceptable) IsServerError() bool
- func (o *GetTrendingTagsNotAcceptable) IsSuccess() bool
- func (o *GetTrendingTagsNotAcceptable) String() string
- type GetTrendingTagsOK
- func (o *GetTrendingTagsOK) Code() int
- func (o *GetTrendingTagsOK) Error() string
- func (o *GetTrendingTagsOK) GetPayload() []interface{}
- func (o *GetTrendingTagsOK) IsClientError() bool
- func (o *GetTrendingTagsOK) IsCode(code int) bool
- func (o *GetTrendingTagsOK) IsRedirect() bool
- func (o *GetTrendingTagsOK) IsServerError() bool
- func (o *GetTrendingTagsOK) IsSuccess() bool
- func (o *GetTrendingTagsOK) String() string
- type GetTrendingTagsParams
- func NewGetTrendingTagsParams() *GetTrendingTagsParams
- func NewGetTrendingTagsParamsWithContext(ctx context.Context) *GetTrendingTagsParams
- func NewGetTrendingTagsParamsWithHTTPClient(client *http.Client) *GetTrendingTagsParams
- func NewGetTrendingTagsParamsWithTimeout(timeout time.Duration) *GetTrendingTagsParams
- func (o *GetTrendingTagsParams) SetContext(ctx context.Context)
- func (o *GetTrendingTagsParams) SetDefaults()
- func (o *GetTrendingTagsParams) SetHTTPClient(client *http.Client)
- func (o *GetTrendingTagsParams) SetTimeout(timeout time.Duration)
- func (o *GetTrendingTagsParams) WithContext(ctx context.Context) *GetTrendingTagsParams
- func (o *GetTrendingTagsParams) WithDefaults() *GetTrendingTagsParams
- func (o *GetTrendingTagsParams) WithHTTPClient(client *http.Client) *GetTrendingTagsParams
- func (o *GetTrendingTagsParams) WithTimeout(timeout time.Duration) *GetTrendingTagsParams
- func (o *GetTrendingTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTrendingTagsReader
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 (*Client) GetTrendingLinks ¶
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 ¶
func (o *GetTrendingLinksNotAcceptable) Code() int
Code gets the status code for the get trending links not acceptable response
func (*GetTrendingLinksNotAcceptable) Error ¶
func (o *GetTrendingLinksNotAcceptable) Error() string
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 ¶
func (o *GetTrendingLinksNotAcceptable) String() 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 ¶
func (o *GetTrendingLinksParams) WithContext(ctx context.Context) *GetTrendingLinksParams
WithContext adds the context to the get trending links params
func (*GetTrendingLinksParams) WithDefaults ¶
func (o *GetTrendingLinksParams) WithDefaults() *GetTrendingLinksParams
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 ¶
func (o *GetTrendingLinksParams) WithTimeout(timeout time.Duration) *GetTrendingLinksParams
WithTimeout adds the timeout to the get trending links params
func (*GetTrendingLinksParams) WriteToRequest ¶
func (o *GetTrendingLinksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetTrendingStatusesNotAcceptable) Code() int
Code gets the status code for the get trending statuses not acceptable response
func (*GetTrendingStatusesNotAcceptable) Error ¶
func (o *GetTrendingStatusesNotAcceptable) Error() string
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 ¶
func (o *GetTrendingStatusesNotAcceptable) String() 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 ¶
func (o *GetTrendingStatusesParams) WithContext(ctx context.Context) *GetTrendingStatusesParams
WithContext adds the context to the get trending statuses params
func (*GetTrendingStatusesParams) WithDefaults ¶
func (o *GetTrendingStatusesParams) WithDefaults() *GetTrendingStatusesParams
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 ¶
func (o *GetTrendingStatusesParams) WithTimeout(timeout time.Duration) *GetTrendingStatusesParams
WithTimeout adds the timeout to the get trending statuses params
func (*GetTrendingStatusesParams) WriteToRequest ¶
func (o *GetTrendingStatusesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetTrendingTagsNotAcceptable) Code() int
Code gets the status code for the get trending tags not acceptable response
func (*GetTrendingTagsNotAcceptable) Error ¶
func (o *GetTrendingTagsNotAcceptable) Error() string
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 ¶
func (o *GetTrendingTagsNotAcceptable) String() 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 ¶
func (o *GetTrendingTagsParams) WithContext(ctx context.Context) *GetTrendingTagsParams
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.