protoc-gen-go-micro/vendor/github.com/go-kit/kit/sd/lb/balancer.go
2017-03-31 18:01:58 +02:00

16 lines
327 B
Go

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")