Documentation
¶
Index ¶
- type Client
- func (client *Client) DeleteImageAuthed(id string) (*ImageInfoWithoutData, int, error)
- func (client *Client) DeleteImageUnAuthed(hash string) (*ImageInfoWithoutData, int, error)
- func (client *Client) UploadImage(img string, dtype string, album string) (*ImageInfoData, int, error)
- func (client *Client) UploadImageFromFile(path string, album string) (*ImageInfoData, int, error)
- func (client *Client) UploadImageFromURL(imgUrl string, album string) (*ImageInfoData, int, error)
- type ImageInfo
- type ImageInfoData
- type ImageInfoWithoutData
- type Imgur
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DeleteImageAuthed ¶
func (client *Client) DeleteImageAuthed(id string) (*ImageInfoWithoutData, int, error)
func (*Client) DeleteImageUnAuthed ¶
func (client *Client) DeleteImageUnAuthed(hash string) (*ImageInfoWithoutData, int, error)
func (*Client) UploadImage ¶
func (*Client) UploadImageFromFile ¶
func (*Client) UploadImageFromURL ¶
type ImageInfo ¶
type ImageInfo struct {
ID string `json:"id"`
IDExt string
Title string `json:"title"`
Description string `json:"description"`
Datetime int `json:"datetime"`
MimeType string `json:"type"`
Animated bool `json:"animated"`
Width int `json:"width"`
Height int `json:"height"`
Size int `json:"size"`
Views int `json:"views"`
Bandwidth int `json:"bandwidth"`
Deletehash string `json:"deletehash,omitempty"`
Name string `json:"name,omitempty"`
Section string `json:"section"`
Link string `json:"link"`
Gifv string `json:"gifv,omitempty"`
Mp4 string `json:"mp4,omitempty"`
Mp4Size int `json:"mp4_size,omitempty"`
Looping bool `json:"looping,omitempty"`
Favorite bool `json:"favorite"`
Nsfw bool `json:"nsfw"`
Vote string `json:"vote"`
InGallery bool `json:"in_gallery"`
}
type ImageInfoData ¶
type ImageInfoWithoutData ¶
Click to show internal directories.
Click to hide internal directories.