handler

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    echo.T(`离线下载`),
	Action:  `download`,
	Icon:    `download`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    echo.T(`下载管理`),
			Action:  `index.html`,
		},
		{
			Display: true,
			Name:    echo.T(`文件管理`),
			Action:  `file`,
		},
		{
			Display: false,
			Name:    echo.T(`总进度信息`),
			Action:  `progress.json`,
		},
		{
			Display: false,
			Name:    echo.T(`添加任务`),
			Action:  `add_task`,
		},
		{
			Display: false,
			Name:    echo.T(`删除任务`),
			Action:  `remove_task`,
		},
		{
			Display: false,
			Name:    echo.T(`启动任务`),
			Action:  `start_task`,
		},
		{
			Display: false,
			Name:    echo.T(`停止任务`),
			Action:  `stop_task`,
		},
		{
			Display: false,
			Name:    echo.T(`重启任务`),
			Action:  `restart_task`,
		},
		{
			Display: false,
			Name:    echo.T(`启动所有任务`),
			Action:  `start_all_task`,
		},
		{
			Display: false,
			Name:    echo.T(`停止所有任务`),
			Action:  `stop_all_task`,
		},
		{
			Display: false,
			Name:    echo.T(`单个文件进度信息`),
			Action:  `progress/*`,
		},
	},
}
View Source
var Server = &service.DServ{}

Functions

func File

func File(ctx echo.Context) error

func RegisterRoute

func RegisterRoute(r module.Router)

Types

This section is empty.

Jump to

Keyboard shortcuts

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