task

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `计划任务`,
	Action:  `task`,
	Icon:    `clock-o`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `任务管理`,
			Action:  `index`,
		},
		{
			Display: true,
			Name:    `新建任务`,
			Action:  `add`,
			Icon:    `plus`,
		},
		{
			Display: true,
			Name:    `分组管理`,
			Action:  `group`,
		},
		{
			Display: true,
			Name:    `添加分组`,
			Action:  `group_add`,
			Icon:    `plus`,
		},
		{
			Display: true,
			Name:    `测试邮件`,
			Action:  `email_test`,
		},
		{
			Display: false,
			Name:    `修改任务`,
			Action:  `edit`,
		},
		{
			Display: false,
			Name:    `删除任务`,
			Action:  `delete`,
		},
		{
			Display: false,
			Name:    `启动任务`,
			Action:  `start`,
		},
		{
			Display: false,
			Name:    `暂停任务`,
			Action:  `pause`,
		},
		{
			Display: false,
			Name:    `立即执行任务`,
			Action:  `run`,
		},
		{
			Display: false,
			Name:    `退出任务`,
			Action:  `exit`,
		},
		{
			Display: false,
			Name:    `启动历史任务`,
			Action:  `start_history`,
		},
		{
			Display: false,
			Name:    `修改分组`,
			Action:  `group_edit`,
		},
		{
			Display: false,
			Name:    `删除分组`,
			Action:  `group_delete`,
		},
		{
			Display: false,
			Name:    `日志列表`,
			Action:  `log`,
		},
		{
			Display: false,
			Name:    `日志详情`,
			Action:  `log_view/:id`,
		},
		{
			Display: false,
			Name:    `删除日志`,
			Action:  `log_delete`,
		},
	},
}

Functions

func Add

func Add(ctx echo.Context) error

func Delete

func Delete(ctx echo.Context) error

func Edit

func Edit(ctx echo.Context) error

func EmailTest

func EmailTest(ctx echo.Context) error

EmailTest 测试邮件发送是否正常

func Exit

func Exit(ctx echo.Context) error

Exit 关闭所有任务

func Group

func Group(ctx echo.Context) error

func GroupAdd

func GroupAdd(ctx echo.Context) error

func GroupDelete

func GroupDelete(ctx echo.Context) error

func GroupEdit

func GroupEdit(ctx echo.Context) error

func Index

func Index(ctx echo.Context) error

func Log

func Log(ctx echo.Context) error

func LogDelete

func LogDelete(ctx echo.Context) error

func LogView

func LogView(ctx echo.Context) error

func Pause

func Pause(ctx echo.Context) error

Pause 暂停任务

func Run

func Run(ctx echo.Context) error

Run 立即执行

func Start

func Start(ctx echo.Context) error

Start 启动任务

func StartHistory

func StartHistory(ctx echo.Context) error

StartHistory 继续历史任务

Types

This section is empty.

Jump to

Keyboard shortcuts

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