Versions in this module Expand all Collapse all v0 v0.0.2 Sep 6, 2025 Changes in this version + type Balancer interface + Add func(server T) + Remove func(name string) + Select func() T + type SmoothWeightedRoundRobin struct + func NewSmoothWeightedRoundRobin[T WeightedServer[T]](servers []T) *SmoothWeightedRoundRobin[T] + func (s *SmoothWeightedRoundRobin[T]) Add(server T) + func (s *SmoothWeightedRoundRobin[T]) Remove(name string) + func (s *SmoothWeightedRoundRobin[T]) Select() T + type WeightedServer interface + GetCurrentWeight func() int + GetName func() string + GetWeight func() int + SetCurrentWeight func(weight int)