Moved to google.golang.org/genproto/googleapis/api/annotations
Fixes #52
This commit is contained in:
15
vendor/github.com/go-kit/kit/sd/lb/balancer.go
generated
vendored
Normal file
15
vendor/github.com/go-kit/kit/sd/lb/balancer.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package lb
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/go-kit/kit/endpoint"
|
||||
)
|
||||
|
||||
// Balancer yields endpoints according to some heuristic.
|
||||
type Balancer interface {
|
||||
Endpoint() (endpoint.Endpoint, error)
|
||||
}
|
||||
|
||||
// ErrNoEndpoints is returned when no qualifying endpoints are available.
|
||||
var ErrNoEndpoints = errors.New("no endpoints available")
|
||||
Reference in New Issue
Block a user