Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDownloadCancelled = errors.New("download cancelled")
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct { Manga string `json:"manga"` Chapter *mangadex.Chapter `json:"chapter"` Status DownloadStatus `json:"status"` CurrentPage int `json:"current_page"` TotalPages int `json:"total_pages"` StartTime time.Time `json:"-"` TimeTaken string `json:"time_taken"` }
func UnmarshalDownload ¶
func (*Download) FinishCancelled ¶
func (d *Download) FinishCancelled()
func (*Download) FinishExists ¶
func (d *Download) FinishExists()
func (*Download) FinishFailed ¶
func (d *Download) FinishFailed()
func (*Download) IsFinished ¶
type DownloadStatus ¶
type DownloadStatus string
const ( DownloadQueued DownloadStatus = "Queued" DownloadStarted DownloadStatus = "Started" DownloadFinished DownloadStatus = "Finished" DownloadCancelled DownloadStatus = "Cancelled" DownloadExists DownloadStatus = "Already Downloaded" DownloadFailed DownloadStatus = "Failed" )
func (DownloadStatus) Finished ¶
func (ds DownloadStatus) Finished() bool
type MissingItem ¶
type MissingItems ¶
type MissingItems []*MissingItem
Click to show internal directories.
Click to hide internal directories.