OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-kit / kit / sd / lb / balancer.go
1 package lb
2
3 import (
4         "errors"
5
6         "github.com/go-kit/kit/endpoint"
7 )
8
9 // Balancer yields endpoints according to some heuristic.
10 type Balancer interface {
11         Endpoint() (endpoint.Endpoint, error)
12 }
13
14 // ErrNoEndpoints is returned when no qualifying endpoints are available.
15 var ErrNoEndpoints = errors.New("no endpoints available")