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

Struct RoundRobinLoadBalancer

loadbalancer/round_robin.go:8–12  ·  view source on GitHub ↗

RoundRobinLoadBalancer 轮询负载均衡器

Source from the content-addressed store, hash-verified

6
7// RoundRobinLoadBalancer 轮询负载均衡器
8type RoundRobinLoadBalancer struct {
9 *BaseLoadBalancer
10 currentIndex int64
11 weighted bool
12}
13
14// NewRoundRobinLoadBalancer 创建轮询负载均衡器
15func NewRoundRobinLoadBalancer(weighted bool) *RoundRobinLoadBalancer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected