Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
Src string `json:"src"`
Dest string `json:"dest"`
SrcSize int `json:"src_size"`
DestSize int `json:"dest_size"`
Percent int `json:"percent"`
Output string `json:"output"`
Expires string `json:"expires"`
Generator string `json:"generator"`
Error int `json:"error"`
ErrorLong string `json:"error_long"`
}
type Option ¶
type Option func(r *reSmushClient) error
Option configures reSmush.
func WithHTTPClient ¶
func WithHTTPClient(httpClient HTTPClient) Option
WithHTTPClient returns an option that set the http client.
Click to show internal directories.
Click to hide internal directories.