Versions in this module Expand all Collapse all v0 v0.1.0 Oct 1, 2022 Changes in this version + const Timeout + func CloseBody(ctx context.Context, resp *http.Response) + func ReadBody(body io.ReadCloser) ([]byte, error) + func ReadBodyJSON(body io.ReadCloser, v interface{}) error + type Downloader interface + Download func(ctx context.Context, url string) ([]byte, error) + func NewDownloader(userAgent string) Downloader + type MockDownloader struct + func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader + func (m *MockDownloader) Download(ctx context.Context, url string) ([]byte, error) + func (m *MockDownloader) EXPECT() *MockDownloaderMockRecorder + type MockDownloaderMockRecorder struct + func (mr *MockDownloaderMockRecorder) Download(ctx, url interface{}) *gomock.Call + type UserAgents interface + GetLatest func(ctx context.Context) ([]string, error) + GetRandom func(ctx context.Context) (string, error) + func NewLatestUserAgents(client *http.Client) UserAgents