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

Method GetServer

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

GetServer 获取下一个服务器

(key string)

Source from the content-addressed store, hash-verified

24 RemoveServer(address string)
25 // GetServer 获取下一个服务器
26 GetServer(key string) *Server
27}
28
29// BaseLoadBalancer 基础负载均衡器结构

Callers

nothing calls this directly

Implementers 2

MaglevHashLoadBalancerloadbalancer/consistent_hash.go
LeastConnectionsLoadBalancerloadbalancer/least_connections.go

Calls

no outgoing calls

Tested by

no test coverage detected