aria2

package
v3.0.0-...-3edb00a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

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

func SlaveCancel

func SlaveCancel(c *gin.Context, service *serializer.SlaveAria2Call) serializer.Response

SlaveCancel 取消从机离线下载任务

func SlaveDeleteTemp

func SlaveDeleteTemp(c *gin.Context, service *serializer.SlaveAria2Call) serializer.Response

SlaveSelect 从机选取离线下载任务文件

func SlaveSelect

func SlaveSelect(c *gin.Context, service *serializer.SlaveAria2Call) serializer.Response

SlaveSelect 从机选取离线下载任务文件

func SlaveStatus

func SlaveStatus(c *gin.Context, service *serializer.SlaveAria2Call) serializer.Response

SlaveStatus 从机查询离线任务状态

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, fs *filesystem.FileSystem, taskType int) serializer.Response

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

type BatchAddURLService

type BatchAddURLService struct {
	URLs []string `json:"url" binding:"required"`
	Dst  string   `json:"dst" binding:"required,min=1"`
}

AddURLService 添加URL离线下载服务

func (*BatchAddURLService) Add

func (service *BatchAddURLService) 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