balancerspawnvoter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByAvgDuration

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

func NewByAvgDuration

func NewByAvgDuration(cfg *config.Config, collector statservice.Collector) *ByAvgDuration

func (*ByAvgDuration) Vote

func (s *ByAvgDuration) Vote() (weight enum.Weight, sleep time.Duration)

type ByInterval

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

func NewByInterval

func NewByInterval(cfg *config.Config, collector statservice.Collector) *ByInterval

func (*ByInterval) Vote

func (s *ByInterval) Vote() (weight enum.Weight, sleep time.Duration)

type ByMinWorkers

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

func NewByMinWorkers

func NewByMinWorkers(cfg *config.Config, collector statservice.Collector) *ByMinWorkers

func (*ByMinWorkers) Vote

func (s *ByMinWorkers) Vote() (weight enum.Weight, sleep time.Duration)

type ByRPS

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

func NewByRPS

func NewByRPS(cfg *config.Config, collector statservice.Collector) *ByRPS

func (*ByRPS) Vote

func (s *ByRPS) Vote() (weight enum.Weight, sleep time.Duration)

Jump to

Keyboard shortcuts

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