Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBrokenImage = fmt.Errorf("broken image")
Functions ¶
This section is empty.
Types ¶
type DownloadResult ¶ added in v0.3.1
type ImageDownloader ¶
type ImageDownloader interface {
Download(c *card.Card, lang string, afterDownload func(result *ImageResult) error) (*DownloadResult, error)
}
type ImageResult ¶
type Images ¶
type Images interface {
Import(PageConfig) (*Report, error)
}
func NewImporter ¶
func NewImporter(cardDao *card.PostgresCardDao, storage storage.Storage, downloader ImageDownloader) Images
type PageConfig ¶
Click to show internal directories.
Click to hide internal directories.