Documentation ¶
Index ¶
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 is an imgbb api client.
type Data ¶
type Data struct { ID string `json:"id"` Title string `json:"title"` URLViewer string `json:"url_viewer"` URL string `json:"url"` DisplayURL string `json:"display_url"` Width int `json:"width"` Height int `json:"height"` Size int `json:"size"` Time int64 `json:"time"` TTL int64 `json:"expiration"` Image Info `json:"image"` Thumb Info `json:"thumb"` Medium Info `json:"medium"` DeleteURL string `json:"delete_url"` }
Data is an information about uploaded file.
type Error ¶
type Error struct { StatusCode int `json:"status_code"` StatusText string `json:"status_txt"` Info ErrorInfo `json:"error"` }
Error is an upload error response.
type ErrorInfo ¶
type ErrorInfo struct { Message string `json:"message"` Code int `json:"code"` Context string `json:"context"` }
ErrorInfo is an upload error info response.
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image is a struct with image data to upload.
Click to show internal directories.
Click to hide internal directories.