Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRepository ¶
type FileSystemRepository ¶
type FileSystemRepository struct{}
func NewFileSystemRepository ¶
func NewFileSystemRepository() *FileSystemRepository
func (*FileSystemRepository) Exists ¶
func (f *FileSystemRepository) Exists(path string) bool
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(cfg *Config) *HTTPClient
type ParseResult ¶
type ParseResult struct {
URLs []string
}
type Parser ¶
type Parser interface {
Parse(contents string) (*ParseResult, error)
}
type SimpleParser ¶
type SimpleParser struct{}
func NewParser ¶
func NewParser() *SimpleParser
func (*SimpleParser) Parse ¶
func (p *SimpleParser) Parse(contents string) (*ParseResult, error)
type UnboundedQueue ¶
type UnboundedQueue[T any] struct { // contains filtered or unexported fields }
func NewUnboundedQueue ¶
func NewUnboundedQueue[T any]() *UnboundedQueue[T]
func (*UnboundedQueue[T]) Close ¶
func (q *UnboundedQueue[T]) Close()
func (*UnboundedQueue[T]) Get ¶
func (q *UnboundedQueue[T]) Get() T
func (*UnboundedQueue[T]) Out ¶
func (q *UnboundedQueue[T]) Out() <-chan T
func (*UnboundedQueue[T]) Put ¶
func (q *UnboundedQueue[T]) Put(item T)
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool( cfg *Config, queue Queue[string], parser Parser, contentRepository ContentRepository, client Client, ) *WorkerPool
func (*WorkerPool) WaitOn ¶
func (w *WorkerPool) WaitOn()
Click to show internal directories.
Click to hide internal directories.