Documentation
¶
Overview ¶
Package search is the agent on the open web: finding pages (Searcher) and reading them (Fetcher).
A search returns only pages the provider actually cites (never a URL a model made up), and the fetcher reads only https pages on public addresses, with size and time limits. What it reads is untrusted material, never instructions; the abilities fence it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNothing = errors.New("nothing to read")
Functions ¶
This section is empty.
Types ¶
type HTTPFetcher ¶
type HTTPFetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher() *HTTPFetcher
NewFetcher returns a fetcher that only connects to public addresses: no localhost, private networks or link-local (cloud metadata) addresses, even through a redirect or a name that resolves to one.