Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (15 sloc) 326 Bytes
package liblb
import "errors"
type Balancer interface {
New(hosts ...string)
Add(host string)
Remove(host string)
Balance() (string, error)
}
type KeyedBalancer interface {
New(hosts ...string)
Add(host string)
Remove(host string)
Balance(key string) (string, error)
}
var ErrNoHost = errors.New("host not found")
You can’t perform that action at this time.