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

Struct BaseLoadBalancer

loadbalancer/load_balancer.go:30–33  ·  view source on GitHub ↗

BaseLoadBalancer 基础负载均衡器结构

Source from the content-addressed store, hash-verified

28
29// BaseLoadBalancer 基础负载均衡器结构
30type BaseLoadBalancer struct {
31 Servers []*Server
32 mu sync.RWMutex
33}
34
35// NewBaseLoadBalancer 创建基础负载均衡器
36func NewBaseLoadBalancer() *BaseLoadBalancer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected