download

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL