MCPcopy Create free account
hub / github.com/catwithtudou/load-balancer-algorithm / RandomLoadBalancer

Struct RandomLoadBalancer

loadbalancer/random.go:8–11  ·  view source on GitHub ↗

RandomLoadBalancer 随机选择负载均衡器

Source from the content-addressed store, hash-verified

6
7// RandomLoadBalancer 随机选择负载均衡器
8type RandomLoadBalancer struct {
9 *BaseLoadBalancer
10 rng *rand.Rand
11}
12
13// NewRandomLoadBalancer 创建随机选择负载均衡器
14func NewRandomLoadBalancer() *RandomLoadBalancer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected