Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandom ¶
func NewRandom(sd servicediscovery.IServiceDiscovery, seed int64) servicediscovery.Balancer
NewRandom returns a load balancer that selects services randomly.
func NewRound ¶
func NewRound(sd servicediscovery.IServiceDiscovery) servicediscovery.Balancer
NewRandom returns a load balancer that selects services randomly.
Types ¶
type WeightedResponseTime ¶
type WeightedResponseTime struct {
// contains filtered or unexported fields
}
func (*WeightedResponseTime) Next ¶
func (w *WeightedResponseTime) Next(serviceName string) (servicediscovery.ServiceInstance, error)
Click to show internal directories.
Click to hide internal directories.