Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrawlerConfig ¶
type ExapleModel ¶
type ICrawler ¶
func NewCrawler ¶
func NewCrawler[T any]( cache cache.ICache, createAnalyzer NewAnalyzer[T], pageLoader page_loader.IPageLoader, logger *gotils.Logger, baseUrl string, config CrawlerConfig, ) ICrawler[T]
type MockAnalyzer ¶
type MockAnalyzer struct { GetUrls_ func() []string GetModel_ func() *ExapleModel }
func (*MockAnalyzer) GetModel ¶
func (m *MockAnalyzer) GetModel() *ExapleModel
func (*MockAnalyzer) GetUrls ¶
func (m *MockAnalyzer) GetUrls() []string
type MockCrawler ¶
type MockCrawler[T any] struct { Crawl_ func(startingUrl string) <-chan *T Stop_ func() WaitStopped_ func() }
func (MockCrawler[T]) Crawl ¶
func (c MockCrawler[T]) Crawl(startingUrl string) <-chan *T
func (MockCrawler[T]) Stop ¶
func (c MockCrawler[T]) Stop()
func (MockCrawler[T]) WaitStopped ¶
func (c MockCrawler[T]) WaitStopped()
Click to show internal directories.
Click to hide internal directories.