Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ROUNDROBIN round robin
ROUNDROBIN = "ROUNDROBIN"
)
Variables ¶
View Source
var ( // LBS map loadBalance name and process function LBS = map[string]func() LoadBalance{ ROUNDROBIN: NewRoundRobin, } )
Functions ¶
Types ¶
type LoadBalance ¶
LoadBalance loadBalance interface
func NewLoadBalance ¶
func NewLoadBalance(name string) 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.