Documentation ¶
Overview ¶
Package weightroundrobin provides weight round robin utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server records the node status.
type WeightRoundRobin ¶
type WeightRoundRobin struct {
// contains filtered or unexported fields
}
WeightRoundRobin is a smooth weighted roundrobin algorithm.
func NewWeightRoundRobin ¶
func NewWeightRoundRobin(interval time.Duration) *WeightRoundRobin
NewWeightRoundRobin creates a new WeightRoundRobin.
Click to show internal directories.
Click to hide internal directories.