Documentation
¶
Index ¶
- type DownloadProgress
- type Downloader
- func (d *Downloader) DownloadAlbum(albumURL string) error
- func (d *Downloader) DownloadAlbumWithCallback(albumURL string, cb func(DownloadProgress)) error
- func (d *Downloader) DownloadSong(song client.Song, albumTitle string) error
- func (d *Downloader) DownloadSongWithCallback(song client.Song, albumTitle string, cb func(DownloadProgress)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadProgress ¶
type Downloader ¶
type Downloader struct {
Client *client.Client
Config config.Config
ProgressCB func(DownloadProgress)
}
func NewDownloader ¶
func NewDownloader(c *client.Client, cfg config.Config) *Downloader
func (*Downloader) DownloadAlbum ¶
func (d *Downloader) DownloadAlbum(albumURL string) error
func (*Downloader) DownloadAlbumWithCallback ¶
func (d *Downloader) DownloadAlbumWithCallback(albumURL string, cb func(DownloadProgress)) error
func (*Downloader) DownloadSong ¶
func (d *Downloader) DownloadSong(song client.Song, albumTitle string) error
func (*Downloader) DownloadSongWithCallback ¶
func (d *Downloader) DownloadSongWithCallback(song client.Song, albumTitle string, cb func(DownloadProgress)) error
Click to show internal directories.
Click to hide internal directories.