Documentation ¶
Index ¶
- func NewServiceWorkerPool(limit int) *serviceWorkerPool
- type Scheduler
- func (s *Scheduler) CleanupRemainingServices() map[string]service.ServiceStatus
- func (s *Scheduler) GetAvailableWorkerChannel() chan *service.Service
- func (s *Scheduler) GetAvailableWorkerChannelList() []chan *service.Service
- func (s *Scheduler) GetWorkersCount() int
- func (s *Scheduler) NotifyServiceUpdate() <-chan *service.UpdateService
- func (s *Scheduler) PushService(reqCh chan *service.Service, serv *service.Service)
- func (s *Scheduler) PushServices(reqChs []chan *service.Service, servs []*service.Service)
- func (s *Scheduler) RecvNotifyServiceStatus()
- func (s *Scheduler) Start() error
- func (s *Scheduler) UpdateServiceStatus(update *service.UpdateService)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceWorkerPool ¶
func NewServiceWorkerPool(limit int) *serviceWorkerPool
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (*Scheduler) CleanupRemainingServices ¶
func (s *Scheduler) CleanupRemainingServices() map[string]service.ServiceStatus
func (*Scheduler) GetAvailableWorkerChannel ¶
func (*Scheduler) GetAvailableWorkerChannelList ¶
func (*Scheduler) GetWorkersCount ¶
func (*Scheduler) NotifyServiceUpdate ¶
func (s *Scheduler) NotifyServiceUpdate() <-chan *service.UpdateService
func (*Scheduler) PushService ¶
func (*Scheduler) PushServices ¶
func (*Scheduler) RecvNotifyServiceStatus ¶
func (s *Scheduler) RecvNotifyServiceStatus()
func (*Scheduler) UpdateServiceStatus ¶
func (s *Scheduler) UpdateServiceStatus(update *service.UpdateService)
Click to show internal directories.
Click to hide internal directories.