Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImdbMovieCrawler ¶
type ImdbMovieCrawler struct {
// contains filtered or unexported fields
}
@InfrastructureService @Adapter
func NewImdbMovieCrawler ¶
func NewImdbMovieCrawler(scrapper *ImdbWebScrapper) *ImdbMovieCrawler
func (ImdbMovieCrawler) Crawl ¶
func (i ImdbMovieCrawler) Crawl(_ context.Context, url movie.CrawlUrl) (*movie.CrawledMovie, error)
type ImdbWebScrapper ¶
type ImdbWebScrapper struct {
// contains filtered or unexported fields
}
func NewImdbWebScrapper ¶
func NewImdbWebScrapper(collector *colly.Collector) *ImdbWebScrapper
func (ImdbWebScrapper) Scrap ¶
func (s ImdbWebScrapper) Scrap(scrapUrl string) (crawledMovie *movie.CrawledMovie, err error)
type OmdbMovieCrawler ¶
type OmdbMovieCrawler struct {
// contains filtered or unexported fields
}
@InfrastructureService @Adapter
func NewOmdbMovieCrawler ¶
func NewOmdbMovieCrawler(api *gomdb.OmdbApi) *OmdbMovieCrawler
func (OmdbMovieCrawler) Crawl ¶
func (i OmdbMovieCrawler) Crawl(_ context.Context, url movie.CrawlUrl) (*movie.CrawledMovie, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.