Documentation ¶
Index ¶
- func CancelDownloads(s *server.Server) gin.HandlerFunc
- func DeleteFinishedTasks(s *server.Server) gin.HandlerFunc
- func GetChapters(s *server.Server) gin.HandlerFunc
- func NewService(api *server.RouterGroup)
- func PauseDownloads(s *server.Server) gin.HandlerFunc
- func ResumeDownloads(s *server.Server) gin.HandlerFunc
- func RetryFailedTasks(s *server.Server) gin.HandlerFunc
- func ViewManager(s *server.Server) gin.HandlerFunc
- type ChaptersReply
- type ChaptersRequest
- type ManagerChangeReply
- type ManagerStatusReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelDownloads ¶
func CancelDownloads(s *server.Server) gin.HandlerFunc
func DeleteFinishedTasks ¶
func DeleteFinishedTasks(s *server.Server) gin.HandlerFunc
func GetChapters ¶
func GetChapters(s *server.Server) gin.HandlerFunc
func NewService ¶
func NewService(api *server.RouterGroup)
func PauseDownloads ¶
func PauseDownloads(s *server.Server) gin.HandlerFunc
func ResumeDownloads ¶
func ResumeDownloads(s *server.Server) gin.HandlerFunc
func RetryFailedTasks ¶
func RetryFailedTasks(s *server.Server) gin.HandlerFunc
func ViewManager ¶
func ViewManager(s *server.Server) gin.HandlerFunc
Types ¶
type ChaptersReply ¶
type ChaptersReply struct {
Success bool `json:"success"`
}
ChaptersReply defines the replies from /api/download/chapters
type ChaptersRequest ¶
type ChaptersRequest struct { Title string `json:"title"` Chapters mangadex.Chapters `json:"chapters"` }
ChaptersRequest defines the request to /api/download/chapters
type ManagerChangeReply ¶
type ManagerChangeReply struct {
Success bool `json:"success"`
}
ManagerChangeReply for when the user tries to change the manager state
type ManagerStatusReply ¶
type ManagerStatusReply struct { Downloads []*api.Download `json:"downloads"` Paused bool `json:"paused"` }
ManagerStatusReply represents the current manager state
Click to show internal directories.
Click to hide internal directories.