Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LBS map loadBalance name and process function LBS = map[metapb.LoadBalance]func() LoadBalance{ metapb.RoundRobin: NewRoundRobin, } )
Functions ¶
func GetSupportLBS ¶
func GetSupportLBS() []metapb.LoadBalance
GetSupportLBS return supported loadBalances
Types ¶
type LoadBalance ¶
LoadBalance loadBalance interface
func NewLoadBalance ¶
func NewLoadBalance(name metapb.LoadBalance) LoadBalance
NewLoadBalance create a LoadBalance
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
RoundRobin round robin loadBalance impl
Click to show internal directories.
Click to hide internal directories.