Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IExportStrategy ¶
type IExportStrategy interface {
Export(metadata book.Metadata, path string, chapters []book.Chapter) string
}
IExportStrategy interface to provide document export functionality
type IScrapingStrategy ¶
type IScrapingStrategy interface { // ScrapeChapter scrapes a chapter with given url ScrapeChapter(chapterURL string, chapterNumber int) book.Chapter //GetAvailableChapters returns an array with all possible chapters GetAvailableChapters(url string) []book.Volume }
IScrapingStrategy defines an interface to scrape from an arbitrary website
type IYoinkerFactory ¶
type IYoinkerFactory interface {
GetYoinker() IYoinkerManager
}
IYoinkerFactory defines an interface to crate a yoinker factory
func NewYoinkerFactory ¶
func NewYoinkerFactory(scraper IScrapingStrategy, exporter IExportStrategy) IYoinkerFactory
NewYoinkerFactory creates a new factory instance
Source Files ¶
Click to show internal directories.
Click to hide internal directories.