Documentation ¶
Index ¶
- type DownloadList
- type Manager
- func (m *Manager) Cancel()
- func (m *Manager) DeleteFinishedTasks() error
- func (m *Manager) Downloads() ([]*api.Download, func())
- func (m *Manager) Pause()
- func (m *Manager) Paused() bool
- func (m *Manager) Resume()
- func (m *Manager) RetryFailedTasks()
- func (m *Manager) StartDownload(manga string, ch *mangadex.Chapter)
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadList ¶
type DownloadList struct {
// contains filtered or unexported fields
}
DownloadList keeps track of the queued and active downloads in the download manager
func NewDownloadList ¶
func NewDownloadList() *DownloadList
func (*DownloadList) Add ¶
func (dl *DownloadList) Add(d *api.Download)
Add adds a download to the list
func (*DownloadList) Cancel ¶
func (dl *DownloadList) Cancel()
Cancel cancels all currently running downloads and removes them from the list
func (*DownloadList) Has ¶
func (dl *DownloadList) Has(d *api.Download) bool
Has returns whether the list has a given download
func (*DownloadList) List ¶
func (dl *DownloadList) List() []*api.Download
List returns a slice copy of the list
func (*DownloadList) Remove ¶
func (dl *DownloadList) Remove(d *api.Download)
Remove removes a download from the list
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager which synchronises downloads from Mangadex
func NewManager ¶
func (*Manager) DeleteFinishedTasks ¶
func (*Manager) RetryFailedTasks ¶
func (m *Manager) RetryFailedTasks()
Click to show internal directories.
Click to hide internal directories.