scheduler

package
v0.0.0-...-47efce2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlatformStorageManager

type PlatformStorageManager interface {
	GetCodeURI(funcName string) (string, error)
	GetImage(funcName string) (string, error)
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler has serveral roles: dispatch tasks to workers maintain metrics alloc and release workers

func New

New returns a scheduler

func (*Scheduler) DeleteFunction

func (s *Scheduler) DeleteFunction(funcName string) error

DeleteFunction is invoked when the user deletes a function

func (*Scheduler) GetWorker

func (s *Scheduler) GetWorker(funcName string, resCh chan *worker.Worker)

func (*Scheduler) GetWorkerMust

func (s *Scheduler) GetWorkerMust(funcName string, resCh chan *worker.Worker)

func (*Scheduler) RegisterWorker

func (s *Scheduler) RegisterWorker(workerID string, workerAddr string)

RegisterWorker

func (*Scheduler) Work

func (s *Scheduler) Work()

Jump to

Keyboard shortcuts

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