Documentation
¶
Index ¶
- Variables
- func AddCron(id int)
- func DeleteCron(id int)
- func HandleTask(ctx *gin.Context)
- func HandleTaskLog(ctx *gin.Context)
- func HandleTaskRunOne(ctx *gin.Context)
- func HandleTaskUpdate(ctx *gin.Context)
- func HandleTasks(ctx *gin.Context)
- func HandleTasksAdd(ctx *gin.Context)
- func HandleTasksCount(ctx *gin.Context)
- func HandleTasksDelete(ctx *gin.Context)
- func LoadTasks(tasksInfo []byte)
- func PlanningTasks()
- func ReadTaskLog(id int) (data string, success bool)
- func ReloadTasksInfo()
- func RunTask(id int)
- func SaveTaskInfo(id int, task TaskData) bool
- func SaveTasks() bool
- func UpdateCron(id int, task TaskData, file *multipart.FileHeader, change bool, ...)
- type Task
- type TaskData
- type TaskInfoData
- type TaskResponse
- type TasksList
- type TasksListInfo
- type TasksResponse
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeleteCron ¶
func DeleteCron(id int)
func HandleTask ¶
func HandleTaskLog ¶ added in v0.0.2
func HandleTaskRunOne ¶ added in v0.0.2
func HandleTaskUpdate ¶
func HandleTasks ¶
func HandleTasksAdd ¶
func HandleTasksCount ¶ added in v0.0.2
func HandleTasksDelete ¶
func PlanningTasks ¶
func PlanningTasks()
func ReadTaskLog ¶ added in v0.0.2
func ReloadTasksInfo ¶
func ReloadTasksInfo()
func UpdateCron ¶
Types ¶
type TaskData ¶
type TaskData struct {
Name string `json:"name"`
Info string `json:"info"`
Diy bool `json:"diy"`
Cycle string `json:"cycle"`
Command string `json:"command"`
File string `json:"file"`
Lastime int64 `json:"lastime"`
}
func ReadTaskInfo ¶
type TaskInfoData ¶
type TaskResponse ¶
type TaskResponse struct {
Code int `json:"code"` // 返回代码
Success bool `json:"success"` // 验证成功
Message string `json:"message"` // 消息
Data TaskInfoData `json:"data"`
}
回复信息
func AddTaskResponse ¶
func AddTaskResponse(code int, success bool, message string, id int) TaskResponse
type TasksList ¶
type TasksList struct {
Total int `json:"total"`
Content []TasksListInfo `json:"content"`
}
type TasksListInfo ¶
type TasksResponse ¶
type TasksResponse struct {
Code int `json:"code"` // 返回代码
Success bool `json:"success"` // 验证成功
Message string `json:"message"` // 消息
Data TasksList `json:"data"`
}
func AddTasksResponse ¶
func AddTasksResponse(code int, success bool, message string, tasksList []TasksListInfo) TasksResponse
Click to show internal directories.
Click to hide internal directories.