Documentation ¶
Index ¶
Constants ¶
View Source
const ( STATUS_START = 1 STATUS_STOP = 2 RESULT_FAIL = 1 RESULT_SUCC = 2 )
Variables ¶
This section is empty.
Functions ¶
func DeleteTask ¶
func UpdateTaskByResponse ¶ added in v0.1.1
func UpdateTaskByResult ¶ added in v0.1.1
func UpdateTaskByStatus ¶ added in v0.1.1
Types ¶
type Task ¶
type Task struct { Id int `sql:"AUTO_INCREMENT"` Status int `sql:"type:tinyint":"DEFAULT:1"` Result int `sql:"type:tinyint"` Request string `sql:"type:varchar(2048)"` Response string `sql:"type:varchar(2048)"` CreatedAt time.Time `sql:"timestamp"` UpdatedAt time.Time `sql:"timestamp"` }
func CreateTask ¶
func SearchTask ¶
Click to show internal directories.
Click to hide internal directories.