Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoImagesFound = errors.New("no images found") ErrCouldNotDownloadAnyImage = errors.New("could not download any image") )
Functions ¶
This section is empty.
Types ¶
type CleanupService ¶
type CleanupService interface {
Cleanup() error
}
type GoogleImage ¶
type GoogleImage struct { Link string `json:"link"` Mime string `json:"mime"` Image struct { ContextLink string `json:"contextLink"` } `json:"image"` }
func (GoogleImage) ContextLink ¶
func (gi GoogleImage) ContextLink() string
func (GoogleImage) ImageLink ¶
func (gi GoogleImage) ImageLink() string
func (GoogleImage) IsGIF ¶
func (gi GoogleImage) IsGIF() bool
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func New ¶
func New(credentialService model.CredentialService, googleImagesService Service, cleanupService CleanupService) *Plugin
type Response ¶
type Response struct {
Items []GoogleImage `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.