Documentation ¶
Index ¶
Constants ¶
View Source
const WeightRobinName = "watermelon_weight_round_robin"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeightRobinBalancer ¶
type WeightRobinBalancer[T interface { Weight() int32 Service() string Methods() []string }] struct { }
func (*WeightRobinBalancer[T]) Build ¶
func (b *WeightRobinBalancer[T]) Build(info base.PickerBuildInfo) balancer.Picker
func (*WeightRobinBalancer[T]) Parser ¶
func (w *WeightRobinBalancer[T]) Parser(meta string) T
Click to show internal directories.
Click to hide internal directories.