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 ¶
func NewWeightedResponseTime() servicediscovery.Strategy
Types ¶
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func (*RoundRobin) Next ¶
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.