Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardBodyAndClose ¶
Types ¶
type Client ¶
type Client interface { Get(url string, header map[string]string) (statusCode int, content []byte, err error) }
Client represents a customized http client
type ClientConfig ¶
type ClientConfig struct {
UseLocalSocks bool
}
ClientConfig defines configurations of client.
type DownloadOption ¶
type DownloadOption func(*DownloadOptions)
type DownloadOptions ¶
type DownloadOptions struct{}
type DownloadRequest ¶
type DownloadRequest struct { }
type Downloader ¶
type Downloader interface {
Download(DownloadRequest) error
}
func NewDownloader ¶
func NewDownloader(opts ...DownloadOption) Downloader
Click to show internal directories.
Click to hide internal directories.