Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RandomBalancer ¶
type RandomBalancer struct { }
func (*RandomBalancer) Clone ¶
func (s *RandomBalancer) Clone() balance2.Balancer
func (*RandomBalancer) Name ¶
func (s *RandomBalancer) Name() string
func (*RandomBalancer) Pick ¶
func (s *RandomBalancer) Pick(peers []*balance2.ServicePeer) (picked *balance2.ServicePeer, err error)
func (*RandomBalancer) UpdateScales ¶
func (s *RandomBalancer) UpdateScales(scales map[string]int) (b balance2.Balancer)
Click to show internal directories.
Click to hide internal directories.