...

Source file src/github.com/go-kit/kit/sd/lb/balancer.go

Documentation: github.com/go-kit/kit/sd/lb

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

View as plain text