aria2

package
v0.0.0-...-746aa3e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddURLService

type AddURLService struct {
	URL string `json:"url" binding:"required"`
	Dst string `json:"dst" binding:"required,min=1"`
}

AddURLService 添加URL离线下载服务

func (*AddURLService) Add

func (service *AddURLService) Add(c *gin.Context, taskType int) serializer.Response

Add 创建新的链接离线下载任务

type DownloadListService

type DownloadListService struct {
	Page uint `form:"page"`
}

DownloadListService 下载列表服务

func (*DownloadListService) Downloading

func (service *DownloadListService) Downloading(c *gin.Context, user *model.User) serializer.Response

Downloading 获取正在下载中的任务

func (*DownloadListService) Finished

func (service *DownloadListService) Finished(c *gin.Context, user *model.User) serializer.Response

Finished 获取已完成的任务

type DownloadTaskService

type DownloadTaskService struct {
	GID string `uri:"gid" binding:"required"`
}

DownloadTaskService 下载任务管理服务

func (*DownloadTaskService) Delete

func (service *DownloadTaskService) Delete(c *gin.Context) serializer.Response

Delete 取消下载任务

type SelectFileService

type SelectFileService struct {
	Indexes []int `json:"indexes" binding:"required"`
}

SelectFileService 选择要下载的文件服务

func (*SelectFileService) Select

func (service *SelectFileService) Select(c *gin.Context) serializer.Response

Select 选取要下载的文件

Jump to

Keyboard shortcuts

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