Documentation ¶
Index ¶
Constants ¶
View Source
const MaxAttempts = 3
View Source
const MaxFetchBytes = 4096
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
Types ¶
type FetchHelper ¶
type FetchHelper struct { }
func (FetchHelper) Try ¶
func (hlp FetchHelper) Try(fetcher *Fetcher, url string, attempts uint) (*pkg.UrlScraped, uint, error)
type FetcherIntf ¶
type RedisPublisher ¶
type RedisPublisher struct {
// contains filtered or unexported fields
}
func NewRedisPublisher ¶
func NewRedisPublisher() *RedisPublisher
type RedisSubscriber ¶
func NewRedisSubscriber ¶
func NewRedisSubscriber(queue string) *RedisSubscriber
func (*RedisSubscriber) Close ¶
func (s *RedisSubscriber) Close() error
func (*RedisSubscriber) Consume ¶
func (s *RedisSubscriber) Consume(out chan string)
Consume messages.
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.