Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct { AppVersion string `json:"app_version"` Arch string `json:"arch"` OS string `json:"os"` Build string `json:"build"` DailyImages []string `json:"daily_images"` RandomImages []string `json:"random_images"` }
AppInfo is shared wallpaperize info type
type BingAPI ¶
type BingAPI struct{}
BingAPI DailyImageGetter implementation
func (BingAPI) GetDailyImage ¶
GetDailyImage implementation
func (BingAPI) GetImageReader ¶
func (b BingAPI) GetImageReader() (result io.ReadCloser, err error)
GetImageReader implementation
type ImageGetter ¶
ImageGetter fetch image
type UnsplashAPI ¶
type UnsplashAPI struct{}
UnsplashAPI implementation
func (UnsplashAPI) GetImage ¶
func (u UnsplashAPI) GetImage() (result []byte, err error)
GetImage implementation
func (UnsplashAPI) GetImageReader ¶
func (u UnsplashAPI) GetImageReader() (result io.ReadCloser, err error)
GetImageReader returns an Reader with image entity
func (UnsplashAPI) GetRandomImage ¶
func (u UnsplashAPI) GetRandomImage() (result []byte, err error)
GetRandomImage implementation
Click to show internal directories.
Click to hide internal directories.