Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DownloadStatuses = []DownloadStatus{ DownloadQueued, DownloadStarted, DownloadFinished, DownloadCancelled, DownloadExists, DownloadFailed, }
Functions ¶
Types ¶
type Chapter ¶
type Chapter struct { ID string `json:"id"` SeriesID string `json:"series_id"` Title string `json:"title"` ScanlationGroup string `json:"scanlation_group"` PublishedAt dbutil.Time `json:"published_at"` Pages int `json:"pages"` VolumeNo string `json:"volume_no"` ChapterNo string `json:"chapter_no"` }
func NewChapters ¶
func (Chapter) CreateDownload ¶
type Download ¶
type Download struct { MangaTitle string `json:"manga_title" db:"manga_title"` Chapter Chapter `json:"chapter" db:"chapter"` Status DownloadStatus `json:"status" db:"status"` CurrentPage int `json:"current_page" db:"current_page"` TotalPages int `json:"total_pages" db:"total_pages"` TimeTaken string `json:"time_taken" db:"time_taken"` Subscribe bool `json:"subscribe"` // contains filtered or unexported fields }
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" )
Click to show internal directories.
Click to hide internal directories.