Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandom ¶
func NewRandom() 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.
func NewWeightedResponseTime ¶ added in v1.6.7
func NewWeightedResponseTime() servicediscovery.Strategy
Types ¶
type RoundRobin ¶ added in v1.6.7
type RoundRobin struct {
// contains filtered or unexported fields
}
func (*RoundRobin) Next ¶ added in v1.6.7
func (r *RoundRobin) Next(instanceList []servicediscovery.ServiceInstance) (servicediscovery.ServiceInstance, error)
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.