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 ¶ added in v1.5.7
type WeightedResponseTime struct {
// contains filtered or unexported fields
}
func (*WeightedResponseTime) Next ¶ added in v1.5.7
func (w *WeightedResponseTime) Next(serviceName string) (ServiceDiscovery.ServiceInstance, error)
Click to show internal directories.
Click to hide internal directories.