Documentation
¶
Index ¶
- type ElectRequest
- type Op
- type OpAction
- type Scheduler
- func (this *Scheduler) Backends() []core.Backend
- func (this *Scheduler) DecrementConnection(backend core.Backend)
- func (this *Scheduler) HandleBackendElect(req ElectRequest)
- func (this *Scheduler) HandleBackendLiveChange(target core.Target, live bool)
- func (this *Scheduler) HandleBackendStatsChange(target core.Target, bs *counters.BandwidthStats)
- func (this *Scheduler) HandleBackendsUpdate(backends []core.Backend)
- func (this *Scheduler) HandleOp(op Op)
- func (this *Scheduler) IncrementConnection(backend core.Backend)
- func (this *Scheduler) IncrementRefused(backend core.Backend)
- func (this *Scheduler) IncrementRx(backend core.Backend, c uint)
- func (this *Scheduler) IncrementTx(backend core.Backend, c uint)
- func (this *Scheduler) Start()
- func (this *Scheduler) Stop()
- func (this *Scheduler) TakeBackend(context core.Context) (*core.Backend, error)
- func (this *Scheduler) Targets() []core.Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct { /* Balancer impl */ Balancer core.Balancer /* Discovery impl */ Discovery *discovery.Discovery /* Healthcheck impl */ Healthcheck *healthcheck.Healthcheck /* Stats */ StatsHandler *stats.Handler // contains filtered or unexported fields }
*
- Scheduler
func (*Scheduler) HandleBackendElect ¶
func (this *Scheduler) HandleBackendElect(req ElectRequest)
*
- Perform backend election
func (*Scheduler) HandleBackendStatsChange ¶
func (this *Scheduler) HandleBackendStatsChange(target core.Target, bs *counters.BandwidthStats)
*
- Updated backend stats
Click to show internal directories.
Click to hide internal directories.