Documentation ¶
Overview ¶
Internal package. Package realizes the IManager interface.
Internal package. Package realizes the IWorker interface.
Index ¶
- func NewManager(name faces.Name, typ faces.ManagerType, lengthChannel, minCount, maxCount int, ...) faces.IManager
- func NewWorker(id string, name faces.Name, in, out, errCh faces.IChan, ...) (faces.IWorker, error)
- type Manager
- func (m *Manager) GetNextManager() faces.IManager
- func (m *Manager) GetPrevManager() faces.IManager
- func (m *Manager) IsLast() bool
- func (m *Manager) MetricPeriod(duration time.Duration) faces.IManager
- func (m *Manager) SetChanErr(errCh faces.IChan) faces.IManager
- func (m *Manager) SetChanIn(in faces.IChan) faces.IManager
- func (m *Manager) SetChanOut(out faces.IChan) faces.IManager
- func (m *Manager) SetHandler(handler faces.GiveBirth) faces.IManager
- func (m *Manager) SetIsLast(isLast bool) faces.IManager
- func (m *Manager) SetNextManager(next faces.IManager) faces.IManager
- func (m *Manager) SetPrevManager(previous faces.IManager) faces.IManager
- func (m *Manager) SetWaitGroup(wg *sync.WaitGroup) faces.IManager
- func (m *Manager) SetWorkersCounter(wc faces.IWorkersCounter) faces.IManager
- func (m *Manager) Start(ctx context.Context) error
- func (m *Manager) Statistic() *nodes.ManagerData
- func (m *Manager) Stop()
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
Types ¶
type Manager ¶
func (*Manager) GetNextManager ¶
func (*Manager) GetPrevManager ¶
func (*Manager) MetricPeriod ¶
The period between metric evaluations. By default 10 second
func (*Manager) SetNextManager ¶
func (*Manager) SetPrevManager ¶
func (*Manager) SetWorkersCounter ¶
func (m *Manager) SetWorkersCounter(wc faces.IWorkersCounter) faces.IManager
func (*Manager) Statistic ¶
func (m *Manager) Statistic() *nodes.ManagerData
type Worker ¶
func (*Worker) SetBorderCond ¶
func (w *Worker) SetBorderCond(typ faces.ManagerType, isLast bool)
Click to show internal directories.
Click to hide internal directories.