Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleImageApi ¶
type GoogleImageApi struct { Mutex *sync.Mutex Website Website Data Data // contains filtered or unexported fields }
func NewGoogleImageApi ¶
func NewGoogleImageApi(websiteName string, size ImageSize) *GoogleImageApi
func (*GoogleImageApi) DownloadImage ¶
func (i *GoogleImageApi) DownloadImage(url string, at, fname string)
func (*GoogleImageApi) DownloadImages ¶
func (i *GoogleImageApi) DownloadImages(urls []string, at, fname string)
func (*GoogleImageApi) DownloadUrls ¶
func (i *GoogleImageApi) DownloadUrls(fileName string)
func (*GoogleImageApi) Search ¶
func (i *GoogleImageApi) Search(q string) []ImageData
type ImageData ¶
type ImageData struct { Context Context `json:"context"` Images []Image `json:"images"` RelatedInterests RelatedInterests `json:"seo_related_interests"` }
type RelatedInterests ¶
type RelatedInterests struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.