Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { Debugger bool DispatcherId string // 流水线ID MaxWorkers int // 流水线上的Worker最大数量 Workers []*Worker // 流水线上所有Worker对象集合 Closed chan bool // 流水线工作状态通道 EndDispatch chan int // 流水线停止工作信号 GJobQueue chan Job // 流水线上的所有待加工Job队列通道 GWorkbenchQueue chan chan Job // 流水线上的所有操作台队列通道 }
Dispatcher 调度器
type GoWorker ¶
type GoWorker struct {
// contains filtered or unexported fields
}
GoWorker GoWorker
func NewGoWorker ¶
NewGoWorker 初始化一个调度器, 并指定Worker和Job的最大数量
func (*GoWorker) WaitGoWorkerClose ¶
func (wf *GoWorker) WaitGoWorkerClose()
WaitGoWorkerClose 等待工作流结果
type SimpleJob ¶
type SimpleJob struct { ID string Args interface{} // contains filtered or unexported fields }
SimpleJob 简单工作负载
func NewSimpleJob ¶
NewSimpleJob 初始化一个调度器, 并指定Worker和Job的最大数量
func (*SimpleJob) AddPayload ¶
AddPayload 添加负载
Click to show internal directories.
Click to hide internal directories.