Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandom ¶
func NewRandom(seed int64) servicediscovery.Strategy
NewRandom returns a load balancer that selects services randomly.
func NewRound ¶
func NewRound() servicediscovery.Strategy
NewRandom returns a load balancer that selects services randomly.
Types ¶
type WeightedResponseTime ¶
type WeightedResponseTime struct { }
func (*WeightedResponseTime) Next ¶
func (w *WeightedResponseTime) Next(instanceList []servicediscovery.ServiceInstance) (servicediscovery.ServiceInstance, error)
Click to show internal directories.
Click to hide internal directories.