Documentation ¶
Index ¶
- type Downloader
- func (that *Downloader) File(fPath string)
- func (that *Downloader) Get() (body []byte)
- func (that *Downloader) GetFileWithBar(fpath string, force ...bool)
- func (that *Downloader) SetHeader(key, value string)
- func (that *Downloader) SetTimeout(timeout time.Duration)
- func (that *Downloader) UseProxy(proxy ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(url string) *Downloader
func (*Downloader) File ¶
func (that *Downloader) File(fPath string)
func (*Downloader) Get ¶
func (that *Downloader) Get() (body []byte)
func (*Downloader) GetFileWithBar ¶
func (that *Downloader) GetFileWithBar(fpath string, force ...bool)
func (*Downloader) SetHeader ¶
func (that *Downloader) SetHeader(key, value string)
func (*Downloader) SetTimeout ¶
func (that *Downloader) SetTimeout(timeout time.Duration)
func (*Downloader) UseProxy ¶
func (that *Downloader) UseProxy(proxy ...string)
Click to show internal directories.
Click to hide internal directories.