Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Message string `json:"message"` FileName string `json:"file_name"` OriginalSize int `json:"original_size"` KrakedSize int `json:"kraked_size"` SavedBytes int `json:"saved_bytes"` KrakedURL string `json:"kraked_url"` OriginalWidth int `json:"original_width"` OriginalHeight int `json:"original_height"` KrakedWidth int `json:"kraked_width"` KrakedHeight int `json:"kraked_height"` Success bool `json:"success"` }
type Option ¶
type Option func(k *krakenClient) error
Option configures Kraken.
func WithAPIKey ¶
WithAPIKey returns an option that set the api key.
func WithAPISecret ¶
WithAPISecret returns an option that set the api secret.
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.