Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Balancer ¶ added in v0.10.0
type Balancer struct {
// contains filtered or unexported fields
}
Balancer implements a weighted random load balancing algorithm.
func NewBalancer ¶
NewBalancer creates a new WeightedBalancer instance. It calculates the total weight and ensures it doesn't exceed MaxInt32.
Click to show internal directories.
Click to hide internal directories.