Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetFeaturedTagsBadRequest
- func (o *GetFeaturedTagsBadRequest) Code() int
- func (o *GetFeaturedTagsBadRequest) Error() string
- func (o *GetFeaturedTagsBadRequest) IsClientError() bool
- func (o *GetFeaturedTagsBadRequest) IsCode(code int) bool
- func (o *GetFeaturedTagsBadRequest) IsRedirect() bool
- func (o *GetFeaturedTagsBadRequest) IsServerError() bool
- func (o *GetFeaturedTagsBadRequest) IsSuccess() bool
- func (o *GetFeaturedTagsBadRequest) String() string
- type GetFeaturedTagsInternalServerError
- func (o *GetFeaturedTagsInternalServerError) Code() int
- func (o *GetFeaturedTagsInternalServerError) Error() string
- func (o *GetFeaturedTagsInternalServerError) IsClientError() bool
- func (o *GetFeaturedTagsInternalServerError) IsCode(code int) bool
- func (o *GetFeaturedTagsInternalServerError) IsRedirect() bool
- func (o *GetFeaturedTagsInternalServerError) IsServerError() bool
- func (o *GetFeaturedTagsInternalServerError) IsSuccess() bool
- func (o *GetFeaturedTagsInternalServerError) String() string
- type GetFeaturedTagsNotAcceptable
- func (o *GetFeaturedTagsNotAcceptable) Code() int
- func (o *GetFeaturedTagsNotAcceptable) Error() string
- func (o *GetFeaturedTagsNotAcceptable) IsClientError() bool
- func (o *GetFeaturedTagsNotAcceptable) IsCode(code int) bool
- func (o *GetFeaturedTagsNotAcceptable) IsRedirect() bool
- func (o *GetFeaturedTagsNotAcceptable) IsServerError() bool
- func (o *GetFeaturedTagsNotAcceptable) IsSuccess() bool
- func (o *GetFeaturedTagsNotAcceptable) String() string
- type GetFeaturedTagsNotFound
- func (o *GetFeaturedTagsNotFound) Code() int
- func (o *GetFeaturedTagsNotFound) Error() string
- func (o *GetFeaturedTagsNotFound) IsClientError() bool
- func (o *GetFeaturedTagsNotFound) IsCode(code int) bool
- func (o *GetFeaturedTagsNotFound) IsRedirect() bool
- func (o *GetFeaturedTagsNotFound) IsServerError() bool
- func (o *GetFeaturedTagsNotFound) IsSuccess() bool
- func (o *GetFeaturedTagsNotFound) String() string
- type GetFeaturedTagsOK
- func (o *GetFeaturedTagsOK) Code() int
- func (o *GetFeaturedTagsOK) Error() string
- func (o *GetFeaturedTagsOK) GetPayload() []interface{}
- func (o *GetFeaturedTagsOK) IsClientError() bool
- func (o *GetFeaturedTagsOK) IsCode(code int) bool
- func (o *GetFeaturedTagsOK) IsRedirect() bool
- func (o *GetFeaturedTagsOK) IsServerError() bool
- func (o *GetFeaturedTagsOK) IsSuccess() bool
- func (o *GetFeaturedTagsOK) String() string
- type GetFeaturedTagsParams
- func NewGetFeaturedTagsParams() *GetFeaturedTagsParams
- func NewGetFeaturedTagsParamsWithContext(ctx context.Context) *GetFeaturedTagsParams
- func NewGetFeaturedTagsParamsWithHTTPClient(client *http.Client) *GetFeaturedTagsParams
- func NewGetFeaturedTagsParamsWithTimeout(timeout time.Duration) *GetFeaturedTagsParams
- func (o *GetFeaturedTagsParams) SetContext(ctx context.Context)
- func (o *GetFeaturedTagsParams) SetDefaults()
- func (o *GetFeaturedTagsParams) SetHTTPClient(client *http.Client)
- func (o *GetFeaturedTagsParams) SetTimeout(timeout time.Duration)
- func (o *GetFeaturedTagsParams) WithContext(ctx context.Context) *GetFeaturedTagsParams
- func (o *GetFeaturedTagsParams) WithDefaults() *GetFeaturedTagsParams
- func (o *GetFeaturedTagsParams) WithHTTPClient(client *http.Client) *GetFeaturedTagsParams
- func (o *GetFeaturedTagsParams) WithTimeout(timeout time.Duration) *GetFeaturedTagsParams
- func (o *GetFeaturedTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFeaturedTagsReader
- type GetFeaturedTagsUnauthorized
- func (o *GetFeaturedTagsUnauthorized) Code() int
- func (o *GetFeaturedTagsUnauthorized) Error() string
- func (o *GetFeaturedTagsUnauthorized) IsClientError() bool
- func (o *GetFeaturedTagsUnauthorized) IsCode(code int) bool
- func (o *GetFeaturedTagsUnauthorized) IsRedirect() bool
- func (o *GetFeaturedTagsUnauthorized) IsServerError() bool
- func (o *GetFeaturedTagsUnauthorized) IsSuccess() bool
- func (o *GetFeaturedTagsUnauthorized) String() string
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 ¶
func (o *GetFeaturedTagsInternalServerError) Code() int
Code gets the status code for the get featured tags internal server error response
func (*GetFeaturedTagsInternalServerError) Error ¶
func (o *GetFeaturedTagsInternalServerError) Error() string
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 ¶
func (o *GetFeaturedTagsInternalServerError) IsCode(code int) bool
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 ¶
func (o *GetFeaturedTagsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get featured tags internal server error response has a 2xx status code
func (*GetFeaturedTagsInternalServerError) String ¶
func (o *GetFeaturedTagsInternalServerError) String() 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 ¶
func (o *GetFeaturedTagsNotAcceptable) Code() int
Code gets the status code for the get featured tags not acceptable response
func (*GetFeaturedTagsNotAcceptable) Error ¶
func (o *GetFeaturedTagsNotAcceptable) Error() string
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 ¶
func (o *GetFeaturedTagsNotAcceptable) String() 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 ¶
func (o *GetFeaturedTagsParams) WithContext(ctx context.Context) *GetFeaturedTagsParams
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 (o *GetFeaturedTagsUnauthorized) Error() string
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