Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CustomEmojisGetInternalServerError
- func (o *CustomEmojisGetInternalServerError) Code() int
- func (o *CustomEmojisGetInternalServerError) Error() string
- func (o *CustomEmojisGetInternalServerError) IsClientError() bool
- func (o *CustomEmojisGetInternalServerError) IsCode(code int) bool
- func (o *CustomEmojisGetInternalServerError) IsRedirect() bool
- func (o *CustomEmojisGetInternalServerError) IsServerError() bool
- func (o *CustomEmojisGetInternalServerError) IsSuccess() bool
- func (o *CustomEmojisGetInternalServerError) String() string
- type CustomEmojisGetNotAcceptable
- func (o *CustomEmojisGetNotAcceptable) Code() int
- func (o *CustomEmojisGetNotAcceptable) Error() string
- func (o *CustomEmojisGetNotAcceptable) IsClientError() bool
- func (o *CustomEmojisGetNotAcceptable) IsCode(code int) bool
- func (o *CustomEmojisGetNotAcceptable) IsRedirect() bool
- func (o *CustomEmojisGetNotAcceptable) IsServerError() bool
- func (o *CustomEmojisGetNotAcceptable) IsSuccess() bool
- func (o *CustomEmojisGetNotAcceptable) String() string
- type CustomEmojisGetOK
- func (o *CustomEmojisGetOK) Code() int
- func (o *CustomEmojisGetOK) Error() string
- func (o *CustomEmojisGetOK) GetPayload() []*models.Emoji
- func (o *CustomEmojisGetOK) IsClientError() bool
- func (o *CustomEmojisGetOK) IsCode(code int) bool
- func (o *CustomEmojisGetOK) IsRedirect() bool
- func (o *CustomEmojisGetOK) IsServerError() bool
- func (o *CustomEmojisGetOK) IsSuccess() bool
- func (o *CustomEmojisGetOK) String() string
- type CustomEmojisGetParams
- func NewCustomEmojisGetParams() *CustomEmojisGetParams
- func NewCustomEmojisGetParamsWithContext(ctx context.Context) *CustomEmojisGetParams
- func NewCustomEmojisGetParamsWithHTTPClient(client *http.Client) *CustomEmojisGetParams
- func NewCustomEmojisGetParamsWithTimeout(timeout time.Duration) *CustomEmojisGetParams
- func (o *CustomEmojisGetParams) SetContext(ctx context.Context)
- func (o *CustomEmojisGetParams) SetDefaults()
- func (o *CustomEmojisGetParams) SetHTTPClient(client *http.Client)
- func (o *CustomEmojisGetParams) SetTimeout(timeout time.Duration)
- func (o *CustomEmojisGetParams) WithContext(ctx context.Context) *CustomEmojisGetParams
- func (o *CustomEmojisGetParams) WithDefaults() *CustomEmojisGetParams
- func (o *CustomEmojisGetParams) WithHTTPClient(client *http.Client) *CustomEmojisGetParams
- func (o *CustomEmojisGetParams) WithTimeout(timeout time.Duration) *CustomEmojisGetParams
- func (o *CustomEmojisGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomEmojisGetReader
- type CustomEmojisGetUnauthorized
- func (o *CustomEmojisGetUnauthorized) Code() int
- func (o *CustomEmojisGetUnauthorized) Error() string
- func (o *CustomEmojisGetUnauthorized) IsClientError() bool
- func (o *CustomEmojisGetUnauthorized) IsCode(code int) bool
- func (o *CustomEmojisGetUnauthorized) IsRedirect() bool
- func (o *CustomEmojisGetUnauthorized) IsServerError() bool
- func (o *CustomEmojisGetUnauthorized) IsSuccess() bool
- func (o *CustomEmojisGetUnauthorized) 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 custom emojis API
func (*Client) CustomEmojisGet ¶
func (a *Client) CustomEmojisGet(params *CustomEmojisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomEmojisGetOK, error)
CustomEmojisGet gets an array of custom emojis available on the instance
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 is the option for Client methods
type ClientService ¶
type ClientService interface { CustomEmojisGet(params *CustomEmojisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomEmojisGetOK, 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 custom emojis API client.
type CustomEmojisGetInternalServerError ¶
type CustomEmojisGetInternalServerError struct { }
CustomEmojisGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewCustomEmojisGetInternalServerError ¶
func NewCustomEmojisGetInternalServerError() *CustomEmojisGetInternalServerError
NewCustomEmojisGetInternalServerError creates a CustomEmojisGetInternalServerError with default headers values
func (*CustomEmojisGetInternalServerError) Code ¶
func (o *CustomEmojisGetInternalServerError) Code() int
Code gets the status code for the custom emojis get internal server error response
func (*CustomEmojisGetInternalServerError) Error ¶
func (o *CustomEmojisGetInternalServerError) Error() string
func (*CustomEmojisGetInternalServerError) IsClientError ¶
func (o *CustomEmojisGetInternalServerError) IsClientError() bool
IsClientError returns true when this custom emojis get internal server error response has a 4xx status code
func (*CustomEmojisGetInternalServerError) IsCode ¶
func (o *CustomEmojisGetInternalServerError) IsCode(code int) bool
IsCode returns true when this custom emojis get internal server error response a status code equal to that given
func (*CustomEmojisGetInternalServerError) IsRedirect ¶
func (o *CustomEmojisGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom emojis get internal server error response has a 3xx status code
func (*CustomEmojisGetInternalServerError) IsServerError ¶
func (o *CustomEmojisGetInternalServerError) IsServerError() bool
IsServerError returns true when this custom emojis get internal server error response has a 5xx status code
func (*CustomEmojisGetInternalServerError) IsSuccess ¶
func (o *CustomEmojisGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom emojis get internal server error response has a 2xx status code
func (*CustomEmojisGetInternalServerError) String ¶
func (o *CustomEmojisGetInternalServerError) String() string
type CustomEmojisGetNotAcceptable ¶
type CustomEmojisGetNotAcceptable struct { }
CustomEmojisGetNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewCustomEmojisGetNotAcceptable ¶
func NewCustomEmojisGetNotAcceptable() *CustomEmojisGetNotAcceptable
NewCustomEmojisGetNotAcceptable creates a CustomEmojisGetNotAcceptable with default headers values
func (*CustomEmojisGetNotAcceptable) Code ¶
func (o *CustomEmojisGetNotAcceptable) Code() int
Code gets the status code for the custom emojis get not acceptable response
func (*CustomEmojisGetNotAcceptable) Error ¶
func (o *CustomEmojisGetNotAcceptable) Error() string
func (*CustomEmojisGetNotAcceptable) IsClientError ¶
func (o *CustomEmojisGetNotAcceptable) IsClientError() bool
IsClientError returns true when this custom emojis get not acceptable response has a 4xx status code
func (*CustomEmojisGetNotAcceptable) IsCode ¶
func (o *CustomEmojisGetNotAcceptable) IsCode(code int) bool
IsCode returns true when this custom emojis get not acceptable response a status code equal to that given
func (*CustomEmojisGetNotAcceptable) IsRedirect ¶
func (o *CustomEmojisGetNotAcceptable) IsRedirect() bool
IsRedirect returns true when this custom emojis get not acceptable response has a 3xx status code
func (*CustomEmojisGetNotAcceptable) IsServerError ¶
func (o *CustomEmojisGetNotAcceptable) IsServerError() bool
IsServerError returns true when this custom emojis get not acceptable response has a 5xx status code
func (*CustomEmojisGetNotAcceptable) IsSuccess ¶
func (o *CustomEmojisGetNotAcceptable) IsSuccess() bool
IsSuccess returns true when this custom emojis get not acceptable response has a 2xx status code
func (*CustomEmojisGetNotAcceptable) String ¶
func (o *CustomEmojisGetNotAcceptable) String() string
type CustomEmojisGetOK ¶
CustomEmojisGetOK describes a response with status code 200, with default header values.
Array of custom emojis.
func NewCustomEmojisGetOK ¶
func NewCustomEmojisGetOK() *CustomEmojisGetOK
NewCustomEmojisGetOK creates a CustomEmojisGetOK with default headers values
func (*CustomEmojisGetOK) Code ¶
func (o *CustomEmojisGetOK) Code() int
Code gets the status code for the custom emojis get o k response
func (*CustomEmojisGetOK) Error ¶
func (o *CustomEmojisGetOK) Error() string
func (*CustomEmojisGetOK) GetPayload ¶
func (o *CustomEmojisGetOK) GetPayload() []*models.Emoji
func (*CustomEmojisGetOK) IsClientError ¶
func (o *CustomEmojisGetOK) IsClientError() bool
IsClientError returns true when this custom emojis get o k response has a 4xx status code
func (*CustomEmojisGetOK) IsCode ¶
func (o *CustomEmojisGetOK) IsCode(code int) bool
IsCode returns true when this custom emojis get o k response a status code equal to that given
func (*CustomEmojisGetOK) IsRedirect ¶
func (o *CustomEmojisGetOK) IsRedirect() bool
IsRedirect returns true when this custom emojis get o k response has a 3xx status code
func (*CustomEmojisGetOK) IsServerError ¶
func (o *CustomEmojisGetOK) IsServerError() bool
IsServerError returns true when this custom emojis get o k response has a 5xx status code
func (*CustomEmojisGetOK) IsSuccess ¶
func (o *CustomEmojisGetOK) IsSuccess() bool
IsSuccess returns true when this custom emojis get o k response has a 2xx status code
func (*CustomEmojisGetOK) String ¶
func (o *CustomEmojisGetOK) String() string
type CustomEmojisGetParams ¶
type CustomEmojisGetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CustomEmojisGetParams contains all the parameters to send to the API endpoint
for the custom emojis get operation. Typically these are written to a http.Request.
func NewCustomEmojisGetParams ¶
func NewCustomEmojisGetParams() *CustomEmojisGetParams
NewCustomEmojisGetParams creates a new CustomEmojisGetParams 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 NewCustomEmojisGetParamsWithContext ¶
func NewCustomEmojisGetParamsWithContext(ctx context.Context) *CustomEmojisGetParams
NewCustomEmojisGetParamsWithContext creates a new CustomEmojisGetParams object with the ability to set a context for a request.
func NewCustomEmojisGetParamsWithHTTPClient ¶
func NewCustomEmojisGetParamsWithHTTPClient(client *http.Client) *CustomEmojisGetParams
NewCustomEmojisGetParamsWithHTTPClient creates a new CustomEmojisGetParams object with the ability to set a custom HTTPClient for a request.
func NewCustomEmojisGetParamsWithTimeout ¶
func NewCustomEmojisGetParamsWithTimeout(timeout time.Duration) *CustomEmojisGetParams
NewCustomEmojisGetParamsWithTimeout creates a new CustomEmojisGetParams object with the ability to set a timeout on a request.
func (*CustomEmojisGetParams) SetContext ¶
func (o *CustomEmojisGetParams) SetContext(ctx context.Context)
SetContext adds the context to the custom emojis get params
func (*CustomEmojisGetParams) SetDefaults ¶
func (o *CustomEmojisGetParams) SetDefaults()
SetDefaults hydrates default values in the custom emojis get params (not the query body).
All values with no default are reset to their zero value.
func (*CustomEmojisGetParams) SetHTTPClient ¶
func (o *CustomEmojisGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the custom emojis get params
func (*CustomEmojisGetParams) SetTimeout ¶
func (o *CustomEmojisGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the custom emojis get params
func (*CustomEmojisGetParams) WithContext ¶
func (o *CustomEmojisGetParams) WithContext(ctx context.Context) *CustomEmojisGetParams
WithContext adds the context to the custom emojis get params
func (*CustomEmojisGetParams) WithDefaults ¶
func (o *CustomEmojisGetParams) WithDefaults() *CustomEmojisGetParams
WithDefaults hydrates default values in the custom emojis get params (not the query body).
All values with no default are reset to their zero value.
func (*CustomEmojisGetParams) WithHTTPClient ¶
func (o *CustomEmojisGetParams) WithHTTPClient(client *http.Client) *CustomEmojisGetParams
WithHTTPClient adds the HTTPClient to the custom emojis get params
func (*CustomEmojisGetParams) WithTimeout ¶
func (o *CustomEmojisGetParams) WithTimeout(timeout time.Duration) *CustomEmojisGetParams
WithTimeout adds the timeout to the custom emojis get params
func (*CustomEmojisGetParams) WriteToRequest ¶
func (o *CustomEmojisGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CustomEmojisGetReader ¶
type CustomEmojisGetReader struct {
// contains filtered or unexported fields
}
CustomEmojisGetReader is a Reader for the CustomEmojisGet structure.
func (*CustomEmojisGetReader) ReadResponse ¶
func (o *CustomEmojisGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CustomEmojisGetUnauthorized ¶
type CustomEmojisGetUnauthorized struct { }
CustomEmojisGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewCustomEmojisGetUnauthorized ¶
func NewCustomEmojisGetUnauthorized() *CustomEmojisGetUnauthorized
NewCustomEmojisGetUnauthorized creates a CustomEmojisGetUnauthorized with default headers values
func (*CustomEmojisGetUnauthorized) Code ¶
func (o *CustomEmojisGetUnauthorized) Code() int
Code gets the status code for the custom emojis get unauthorized response
func (*CustomEmojisGetUnauthorized) Error ¶
func (o *CustomEmojisGetUnauthorized) Error() string
func (*CustomEmojisGetUnauthorized) IsClientError ¶
func (o *CustomEmojisGetUnauthorized) IsClientError() bool
IsClientError returns true when this custom emojis get unauthorized response has a 4xx status code
func (*CustomEmojisGetUnauthorized) IsCode ¶
func (o *CustomEmojisGetUnauthorized) IsCode(code int) bool
IsCode returns true when this custom emojis get unauthorized response a status code equal to that given
func (*CustomEmojisGetUnauthorized) IsRedirect ¶
func (o *CustomEmojisGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this custom emojis get unauthorized response has a 3xx status code
func (*CustomEmojisGetUnauthorized) IsServerError ¶
func (o *CustomEmojisGetUnauthorized) IsServerError() bool
IsServerError returns true when this custom emojis get unauthorized response has a 5xx status code
func (*CustomEmojisGetUnauthorized) IsSuccess ¶
func (o *CustomEmojisGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this custom emojis get unauthorized response has a 2xx status code
func (*CustomEmojisGetUnauthorized) String ¶
func (o *CustomEmojisGetUnauthorized) String() string