Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PuerkitoBio/gocrawl
/ types & classes
Types & classes
27 in github.com/PuerkitoBio/gocrawl
⨍
Functions
119
◇
Types & classes
27
↓ 13 callers
TypeAlias
f
Type f is a simple syntax helper to create test cases' extension functions.
tbldef_test.go:23
↓ 1 callers
TypeAlias
S
S is a convenience type definition, it is a map[string]interface{} that can be used to enqueue URLs (the string) with state information.
urlcontext.go:21
↓ 1 callers
TypeAlias
U
U is a convenience type definition, it is a map[*url.URL]interface{} that can be used to enqueue URLs with state information.
urlcontext.go:17
Struct
BaseTagExtender
basetag_test.go:20
Struct
CrawlError
CrawlError contains information about the crawling error.
errors.go:56
TypeAlias
CrawlErrorKind
CrawlErrorKind indicated the kind of crawling error.
errors.go:23
Struct
Crawler
Crawler is the web crawler that processes URLs and manages the workers.
crawler.go:20
Struct
DefaultExtender
DefaultExtender is a default working implementation of an extender. It is possible to nest such a value in a custom struct so that only the Extender m
ext.go:83
Struct
DelayInfo
DelayInfo contains the delay configuration: the Options delay, the Robots.txt delay, and the last delay used.
ext.go:14
Struct
ExampleExtender
Create the Extender implementation, based on the gocrawl-provided DefaultExtender, because we don't want/need to override all methods.
examples_test.go:17
Struct
Ext
cmd/example/main.go:14
Interface
Extender
Extender defines the extension methods required by the crawler.
ext.go:31
Struct
FetchInfo
FetchInfo contains the fetch information: the duration of the fetch, the returned status code, whether or not it was a HEAD request, and whether or no
ext.go:23
TypeAlias
LogFlags
LogFlags is a set of flags that control the logging of the Crawler.
logger.go:8
Struct
MyExt
complex_test.go:136
Struct
Options
Options contains the configuration for a Crawler to customize the crawling process.
options.go:22
Struct
ShadowExt
complex_test.go:154
Struct
URLContext
URLContext contains all information related to an URL to process.
urlcontext.go:24
TypeAlias
a
Type a is a simple syntax helper to create test cases' asserts.
tbldef_test.go:20
TypeAlias
extensionMethodKey
Extension method enum
spyext_test.go:14
Struct
fileFetcherExtender
The file fetcher, that loads URLs from files in the testdata/ directory.
fileext_test.go:15
TypeAlias
ignoredCalledWithArg
Type and unique value to identify a called-with argument position to ignore.
spyext_test.go:52
TypeAlias
popChannel
The pop channel is a stacked channel used by workers to pop the next URL(s) to process.
popchannel.go:5
Struct
spyExtender
The spy extender adds counting the number of calls for each extender method, and tracks the log so that it can be asserted.
spyext_test.go:62
Struct
testCase
Test case structure.
tbldef_test.go:26
Struct
worker
The worker is dedicated to fetching and visiting a given host, respecting this host's robots.txt crawling policies.
worker.go:23
Struct
workerResponse
Communication from worker to the master crawler, about the crawling of a URL
crawler.go:11