Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// Create 创建任务
// @Tags API.cron
// @Router /api/cron [post]
Create() core.HandlerFunc
// Modify 编辑任务
// @Tags API.cron
// @Router /api/cron/{id} [post]
Modify() core.HandlerFunc
// List 任务列表
// @Tags API.cron
// @Router /api/cron [get]
List() core.HandlerFunc
// UpdateUsed 更新任务为启用/禁用
// @Tags API.cron
// @Router /api/cron/used [patch]
UpdateUsed() core.HandlerFunc
// Detail 获取单条任务详情
// @Tags API.cron
// @Router /api/cron/:id [get]
Detail() core.HandlerFunc
// Execute 手动执行任务
// @Tags API.cron
// @Router /api/cron/:id [patch]
Execute() core.HandlerFunc
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.