Documentation ¶
Index ¶
- func Download(url, outputPath, socks5Url string, readBody ReadBodyFunc, ...) error
- func DownloadAsync(url, outputPath, socks5Url string, chunkSize int64) error
- func DownloadAsyncResume(httpClient *http.Client, status chan utils.Info, infos map[string]utils.Info, ...) error
- func DownloadAsyncResumeWork(httpClient *http.Client, status chan utils.Info, info utils.Info, ...) error
- func DownloadRange(url, outputPath, socks5Url, Range string, ...) error
- func DownloadStatus(status chan utils.Info, outputPath string)
- func GenHttpClient(socks5Url string) (*http.Client, error)
- func LoadInfos(statusFilename string) (map[string]utils.Info, error)
- func NewInfos(url, outputPath string, size, chunkSize int64, status chan utils.Info) (map[string]utils.Info, error)
- func ReadBody(resp *http.Response, out *os.File, processFb, successFb, errorFb FBFunc) error
- type ErrorFunc
- type FBFunc
- type ReadBodyFunc
- type SuccessFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(url, outputPath, socks5Url string, readBody ReadBodyFunc, processFb, successFb, errorFb FBFunc) error
func DownloadAsync ¶
func DownloadAsyncResume ¶
func DownloadAsyncResumeWork ¶
func DownloadRange ¶
func DownloadStatus ¶
Types ¶
type ReadBodyFunc ¶
type SuccessFunc ¶
Click to show internal directories.
Click to hide internal directories.