Documentation ¶
Index ¶
- type Fetcher
- func NewFile(path string) Fetcher
- func NewFileRoundRobin(paths []string, timeout time.Duration, userAgent string) Fetcher
- func NewHTTP(url string, timeout time.Duration, userAgent string) Fetcher
- func NewHTTPRoundRobin(hosts []string, path string, timeout time.Duration, userAgent string) Fetcher
- func NewRoundRobin(fetchers []Fetcher) Fetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
Fetcher is the interface that wraps the Fetch method. A Fetcher should return the same resource with every fetch, and `Fetch` should only return different data when the resource changes.
Fetch returns bytes fetched from some source, and any error.
func NewFileRoundRobin ¶
func NewHTTPRoundRobin ¶
func NewRoundRobin ¶
Click to show internal directories.
Click to hide internal directories.