Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoBackends = errors.New("no backends available")
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type WeightedRR ¶
type WeightedRR struct {
// contains filtered or unexported fields
}
func NewWeightedRR ¶
func NewWeightedRR(backends []*backend.Backend) *WeightedRR
func (*WeightedRR) Backends ¶
func (rr *WeightedRR) Backends() []*backend.Backend
func (*WeightedRR) OnClose ¶
func (rr *WeightedRR) OnClose(addr string)
func (*WeightedRR) OnConnect ¶
func (rr *WeightedRR) OnConnect(addr string)
Click to show internal directories.
Click to hide internal directories.