Documentation
¶
Index ¶
Constants ¶
View Source
const ( PUT = 1 // 新增或更新事件 DEL = 2 // 删除事件 KILL = 3 // 强行终止进程事件 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scheduler ¶
type Scheduler struct { EventsChan chan *Event // 事件通道 ResultChan chan *models.Result // 执行结果通道 Plan map[string]*models.Pipeline // 调度计划 Running map[string]*models.Pipeline // 正在运行的流水线 }
var Instance *Scheduler
func (*Scheduler) DispatchEvent ¶ added in v0.4.0
DispatchEvent 加入队列
Click to show internal directories.
Click to hide internal directories.