instance

package
v0.0.0-...-1394f87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WokerSetting *util.ConcurrencyConfig
	HttpClient   *http.Client
}

func NewDefaultConfig

func NewDefaultConfig() *Config

Setup crawler config based on default values defined in utl

type CrawlerIManager

type CrawlerIManager interface {
	Process()
	GetLinks() []string
	GetErrors() []error
	// ✋🏻 For Testing Only!
	ExtractTestCall(resp *http.Response, url string)
}

Interface bound to the crawler object, exposes public functions

func NewCrawler

func NewCrawler(
	initlUrl string,
	config Config,
) (CrawlerIManager, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL