scheduler

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewScheduler(optWorkersCount int) *Scheduler

func (*Scheduler) CleanupRemainingServices

func (s *Scheduler) CleanupRemainingServices() map[string]service.ServiceStatus

func (*Scheduler) GetAvailableWorkerChannel

func (s *Scheduler) GetAvailableWorkerChannel() chan *service.Service

func (*Scheduler) GetAvailableWorkerChannelList

func (s *Scheduler) GetAvailableWorkerChannelList() []chan *service.Service

func (*Scheduler) GetWorkersCount

func (s *Scheduler) GetWorkersCount() int

func (*Scheduler) NotifyServiceUpdate

func (s *Scheduler) NotifyServiceUpdate() <-chan *service.UpdateService

func (*Scheduler) PushService

func (s *Scheduler) PushService(reqCh chan *service.Service, serv *service.Service)

func (*Scheduler) PushServices

func (s *Scheduler) PushServices(reqChs []chan *service.Service, servs []*service.Service)

func (*Scheduler) RecvNotifyServiceStatus

func (s *Scheduler) RecvNotifyServiceStatus()

func (*Scheduler) Start

func (s *Scheduler) Start() error

func (*Scheduler) UpdateServiceStatus

func (s *Scheduler) UpdateServiceStatus(update *service.UpdateService)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL