Documentation ¶
Index ¶
- Constants
- func SendNotification(task taskModel.Task, taskResult TaskResult)
- type ConcurrencyQueue
- type HTTPHandler
- type Handler
- type Instance
- type RPCHandler
- type Task
- func (task Task) Add(taskModels taskModel.Task)
- func (task Task) BatchAdd(tasks []taskModel.Task)
- func (task Task) Initialize()
- func (task Task) NextRunTime(taskModels taskModel.Task) string
- func (task Task) Remove(taskId int)
- func (task Task) RemoveAndAdd(taskModel taskModel.Task)
- func (task Task) RemoveAndStop(taskId int)
- func (task Task) Run(taskModel taskModel.Task)
- func (task Task) Stop(ip string, port int, id int64)
- func (task Task) StopJob()
- func (task Task) WaitAndExit()
- type TaskCount
- type TaskResult
Constants ¶
View Source
const HttpExecTimeout = 300
http任务执行时间不超过300秒
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConcurrencyQueue ¶
type ConcurrencyQueue struct {
// contains filtered or unexported fields
}
并发队列
func (*ConcurrencyQueue) Add ¶
func (cq *ConcurrencyQueue) Add()
func (*ConcurrencyQueue) Done ¶
func (cq *ConcurrencyQueue) Done()
type TaskResult ¶
Click to show internal directories.
Click to hide internal directories.