Codebase list golang-github-go-kit-kit / lintian-fixes/main sd / lb / balancer.go
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

balancer.go @lintian-fixes/mainraw · history · blame

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