Documentation
¶
Overview ¶
Package site reads a page from its site's own public API when the page is a bot wall or leaves content out. Every request goes through the caller's getter, so through refetch's clients and their public-only dialer.
Index ¶
Constants ¶
const Client = "site_api"
Client is the attempt client name of a read through a site's API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct {
Name string // the API, as the result names it: "Stack Exchange API"
Read func(ctx context.Context, get Getter) (markdown string, err error)
}
Route reads one page through its site's API.