Versions in this module Expand all Collapse all v1 v1.0.2 Nov 7, 2016 Changes in this version + const TASK_ERROR + const TASK_SUCCESS + const TASK_TIMEOUT + func Init() + func TableName(name string) string + func TaskLogAdd(tlog *TaskLog) (int64, error) + func TaskLogDelByTaskId(taskId int) (int64, error) + func UpdateTask(id int, t *Task) error + type Task struct + Command string + Concurrent int + CreateTime int64 + CronSpec string + Description string + ExecuteTimes int + GroupId int + Id int + Notify int + NotifyEmail string + Pid int + PrevTime int64 + RunServer string + ServerId int + Status int + TaskName string + TaskType int + Timeout int + UpdatedAt int64 + UserId int + func GetTaskById(id int) (*Task, error) + func GetTaskByPid(pid int) (*Task, error) + func (t *Task) TableName() string + type TaskLog struct + CreateTime int64 + Error string + Id int + Output string + ProcessTime int + Server string + Status int + TaskId int + func (tlog *TaskLog) TableName() string