Documentation ¶
Index ¶
Constants ¶
View Source
const (
LBRandom = iota
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadBalance ¶
func NewLoadBalance ¶
func NewLoadBalance(lbType int) LoadBalance
type LoadBalanceRandom ¶
type LoadBalanceRandom struct { }
func (LoadBalanceRandom) Select ¶
func (s LoadBalanceRandom) Select(nodes []string) string
Click to show internal directories.
Click to hide internal directories.