Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadWithContext ¶
func DownloadWithContext(ctx context.Context, dl *DownloadTask) (err error)
Types ¶
type DownloadTask ¶ added in v1.0.7
func NewDownload ¶ added in v1.0.7
func NewDownload(ref, path string) *DownloadTask
type Downloads ¶ added in v1.0.7
type Downloads struct {
List []*DownloadTask
}
func NewDownloads ¶ added in v1.0.7
func NewDownloads() *Downloads
type Get ¶ added in v1.0.7
type Get struct {
OnEachStart func(t *DownloadTask)
OnEachStop func(t *DownloadTask)
Header map[string]string
Client http.Client
}
func (*Get) Download ¶ added in v1.0.7
func (g *Get) Download(dl *DownloadTask, timeout time.Duration) (err error)
func (*Get) DownloadWithContext ¶ added in v1.0.7
func (g *Get) DownloadWithContext(ctx context.Context, d *DownloadTask) (err error)
Click to show internal directories.
Click to hide internal directories.