Documentation ¶
Index ¶
- type API
- func (i *API) AddAlbumToFolder(folderId int, albumId string) (err error)
- func (i *API) Authorise(tokenFile string) error
- func (i *API) CreateAlbum(title, description string, privacy Privacy, images []Image) (album Album, err error)
- func (i *API) CreateImage(name, title, description string, albumId string, imgBytes []byte) (image Image, err error)
- func (i *API) DeleteImage(imageId string) (err error)
- func (i *API) DownloadImage(imageLink string) (data []byte, err error)
- func (i *API) GetAlbumImages(albumId string) (images []Image, err error)
- func (i *API) GetAlbums() (albums []Album, err error)
- func (i *API) GetFavourites(folderOwner string) (data []ImageOrAlbum, err error)
- func (i *API) GetFolderImages(folderOwner string, folderId int) (images []Image, err error)
- func (i *API) GetFolders(folderOwner string) (folders []Folder, err error)
- type APIResponse
- type Album
- type AlbumContentResponse
- type AlbumPostResponse
- type AlbumsResponse
- type BasicItem
- type Folder
- type FolderContentResponse
- type FoldersResponse
- type Image
- type ImageOrAlbum
- type ImagePostResponse
- type Item
- type Privacy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) AddAlbumToFolder ¶
func (*API) CreateAlbum ¶
func (*API) CreateImage ¶
func (*API) DeleteImage ¶
func (*API) GetAlbumImages ¶
func (*API) GetFavourites ¶
func (i *API) GetFavourites(folderOwner string) (data []ImageOrAlbum, err error)
func (*API) GetFolderImages ¶
type APIResponse ¶
type AlbumContentResponse ¶
type AlbumContentResponse struct { APIResponse Data []Image `json:"data"` }
type AlbumPostResponse ¶
type AlbumPostResponse struct { APIResponse Data Album `json:"data"` }
type AlbumsResponse ¶
type AlbumsResponse struct { APIResponse Data []Album `json:"data"` }
type FolderContentResponse ¶
type FolderContentResponse struct { APIResponse Data []ImageOrAlbum `json:"data"` }
type FoldersResponse ¶
type FoldersResponse struct { APIResponse Data []Folder `json:"data"` }
type Image ¶
type ImageOrAlbum ¶
Convention seen on https://medium.com/random-go-tips/dynamic-json-schemas-part-1-8f7d103ace71
type ImagePostResponse ¶
type ImagePostResponse struct { APIResponse Data Image `json:"data"` }
type Item ¶
type Item struct { BasicItem CommentCount int `json:"comment_count"` Datetime int `json:"datetime"` Description string `json:"description"` Downs int `json:"downs"` Favorite bool `json:"favorite"` InGallery bool `json:"in_gallery"` InMostViral bool `json:"in_most_viral"` IsAd bool `json:"is_ad"` IsAlbum bool `json:"is_album"` Nsfw bool `json:"nsfw"` Points int `json:"points"` Section string `json:"section"` Tags []string `json:"tags"` Title string `json:"title"` Ups int `json:"ups"` Views int `json:"views"` Vote string `json:"vote"` }
Click to show internal directories.
Click to hide internal directories.