Versions in this module Expand all Collapse all v4 v4.1.0 Feb 23, 2023 Changes in this version + type Client struct + func NewClient(apiKey string, options ...ClientOption) *Client + func (c *Client) Compress(ctx context.Context, src io.Reader) (*Compressed, error) + func (c *Client) SetAPIKey(key string) + func (c *Client) UsedQuota(ctx context.Context) (uint64, error) + type ClientOption func(*Client) + func WithHTTPClient(httpClient httpClient) ClientOption + type Compressed struct + func (c Compressed) Dimensions() (width, height uint32) + func (c Compressed) Download(ctx context.Context, to io.Writer) error + func (c Compressed) Size() uint64 + func (c Compressed) Type() string + func (c Compressed) URL() string + func (c Compressed) UsedQuota() uint64 + type Error uint8 + const ErrBadRequest + const ErrTooManyRequests + const ErrUnauthorized + func (err Error) Error() string