v1

package
v0.0.0-...-60360ff Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendServer iface.Backend
View Source
var SenderServer *machinery.Server

Functions

func AddTask

func AddTask(c *gin.Context)

func DeleteTask

func DeleteTask(c *gin.Context)

func GetTask

func GetTask(c *gin.Context)

获取单个task

func GetTasks

func GetTasks(c *gin.Context)

获取多个task

func UpdateTask

func UpdateTask(c *gin.Context)

Types

type AddTaskJson

type AddTaskJson struct {
	TaskName string `json:"task_name"`
	Content  string `json:"content"`
}

type UpdateTaskJson

type UpdateTaskJson struct {
	State   string `json:"state"`
	TaskLog string `json:"task_log"`
}

type UpdateTaskUUID

type UpdateTaskUUID struct {
	TaskUUID string `json:"task_uuid"`
}

Jump to

Keyboard shortcuts

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