Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { DispatcherId string //流水线ID MaxWorkers int //流水线上的员工(Worker)最大数量 Workers []*Worker //流水线上所有员工(Worker)对象集合 Closed chan bool //流水线工作状态通道 EndDispatch chan os.Signal //流水线停止工作信号 GJobQueue chan Job //流水线上的所有代加工产品(Job)队列通道 GWorkbenchQueue chan chan Job //流水线上的所有操作台队列通道 }
func NewDispatcher ¶
func NewDispatcher(maxWorkers, maxQueue int) *Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch()
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
type WorkFlow ¶
type WorkFlow struct {
GDispatch *Dispatcher
}
func (*WorkFlow) CloseWorkFlow ¶
func (wf *WorkFlow) CloseWorkFlow()
func (*WorkFlow) StartWorkFlow ¶
Click to show internal directories.
Click to hide internal directories.