Documentation ¶
Overview ¶
Package fetch provides an API for fetching information about urls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMention = errors.New("No mention")
ErrNoMention is used when not mention was found
Functions ¶
Types ¶
type Fetcher ¶
type Fetcher interface { Fetch(url string) (*http.Response, error) FetchWithContext(ctx context.Context, url string) (*http.Response, error) }
Fetcher fetches urls
type FetcherFunc ¶
FetcherFunc is a function that fetches an url
func (FetcherFunc) Fetch ¶
func (ff FetcherFunc) Fetch(url string) (*http.Response, error)
Fetch fetches an url and returns a response or error
func (FetcherFunc) FetchWithContext ¶
FetchWithContext fetches an url and returns a response or error
Click to show internal directories.
Click to hide internal directories.