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
type UnsplashAPI ¶
type UnsplashAPI struct {
// contains filtered or unexported fields
}
UnsplashAPI implementation
func NewUnsplashAPI ¶
func NewUnsplashAPI(idGetter idGetter) *UnsplashAPI
func (*UnsplashAPI) GetRandomImage ¶ added in v1.0.8
func (u *UnsplashAPI) GetRandomImage() (*UnsplashRandomImageResponse, error)
type UnsplashAuthorizer ¶
type UnsplashAuthorizer struct {
// contains filtered or unexported fields
}
func NewUnsplashAuthorizer ¶
func NewUnsplashAuthorizer(clientID, clientSecret string, tokenStore tokenStore) *UnsplashAuthorizer
func (*UnsplashAuthorizer) GetToken ¶
func (a *UnsplashAuthorizer) GetToken() (string, error)
type UnsplashRandomImage ¶ added in v1.0.8
type UnsplashRandomImageResponse ¶ added in v1.0.8
type UnsplashRandomImageResponse struct { Data UnsplashRandomImage RateLimitRemaining int }
Click to show internal directories.
Click to hide internal directories.