Documentation ¶
Index ¶
- Variables
- type Downloader
- func (d *Downloader) Add(ctx context.Context, link, storePath string) error
- func (d *Downloader) Delete(ctx context.Context, id string) error
- func (d *Downloader) List(ctx context.Context) ([]*DownloaderTaskInfo, error)
- func (d *Downloader) Pause(ctx context.Context, id string) error
- func (d *Downloader) Resume(ctx context.Context, id string) error
- type DownloaderRepo
- type DownloaderTaskInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var BizProviderSet = wire.NewSet(NewDownloader)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(repo DownloaderRepo, logger log.Logger) *Downloader
func (*Downloader) Add ¶
func (d *Downloader) Add(ctx context.Context, link, storePath string) error
func (*Downloader) List ¶
func (d *Downloader) List(ctx context.Context) ([]*DownloaderTaskInfo, error)
type DownloaderRepo ¶
Click to show internal directories.
Click to hide internal directories.