MCPcopy
hub / github.com/fagongzi/manba / LoadBalance

Interface LoadBalance

pkg/lb/lb.go:23–25  ·  view source on GitHub ↗

LoadBalance loadBalance interface returns selected server's id

Source from the content-addressed store, hash-verified

21
22// LoadBalance loadBalance interface returns selected server's id
23type LoadBalance interface {
24 Select(req *fasthttp.Request, servers *list.List) uint64
25}
26
27// GetSupportLBS return supported loadBalances
28func GetSupportLBS() []metapb.LoadBalance {

Callers 1

selectServerMethod · 0.65

Implementers 2

WeightRobinpkg/lb/weightrobin.go
RoundRobinpkg/lb/roundrobin.go

Calls

no outgoing calls

Tested by

no test coverage detected