Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelayJobDeliveryHandler ¶
DelayJobDeliveryHandler 异步任务投递
@Summary 异步任务(非周期)投递 @Description 异步任务(非周期)投递 @Tags 任务投递 @Accept application/json @Produce application/json @Param RequestBody body models.AsyncJob true "异步任务投递请求体" @Success 200 {object} web.Response @Router /api/async/v0/job/async [post]
func DeleteJobHandler ¶
DeleteJobHandler 删除任务
@Summary 删除任务 @Description 删除任务 @Tags 任务删除 @Accept application/json @Produce application/json @Param job path string true "任务id" @Success 200 {object} web.Response @Router /api/async/v0/job/{job} [delete]
func GetJobInfoHandler ¶
GetJobInfoHandler 查询任务信息
@Summary 查询任务信息 @Description 查询任务信息 @Tags 任务查询 @Accept application/json @Produce application/json @Param job path string true "任务id" @Success 200 {object} web.Response{data=models.JobInfo} @Router /api/async/v0/job/{job} [get]
func HealthCheckHandler ¶
HealthCheckHandler 健康检查
@Summary 健康检查 @Description 健康检查 @Tags 检查 @Accept application/json @Produce application/json @Success 200 {object} web.Response @Router /api/async/v0/health [get]
func PeriodicJobDeliveryHandler ¶
PeriodicJobDeliveryHandler 周期任务投递
@Summary 周期任务投递,支持cron语法 @Description 周期任务投递,支持cron语法 @Tags 任务投递 @Accept application/json @Produce application/json @Param RequestBody body models.PeriodicJob true "周期任务投递请求体" @Success 200 {object} web.Response @Router /api/async/v0/job/periodic [post]
func RecoveryJobHandler ¶
RecoveryJobHandler 恢复任务
@Summary 恢复任务 @Description 恢复任务 @Tags 任务恢复 @Accept application/json @Produce application/json @Param job path string true "任务id" @Success 200 {object} web.Response @Router /api/async/v0/job/{job}/recovery [patch]
func TerminateJobHandler ¶
TerminateJobHandler 终止任务
@Summary 终止任务 @Description 终止任务 @Tags 任务终止 @Accept application/json @Produce application/json @Param job path string true "任务id" @Success 200 {object} web.Response @Router /api/async/v0/job/{job}/terminate [patch]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.