Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catwithtudou/load-balancer-algorithm
/ AddServer
Method
AddServer
loadbalancer/load_balancer.go:22–22 ·
view source on GitHub ↗
AddServer 添加服务器
(server *Server)
Source
from the content-addressed store, hash-verified
20
type
LoadBalancer
interface
{
21
// AddServer 添加服务器
22
AddServer(server *Server)
23
// RemoveServer 移除服务器
24
RemoveServer(address string)
25
// GetServer 获取下一个服务器
Callers
2
main
Function · 0.65
AddServer
Method · 0.65
Implementers
2
MaglevHashLoadBalancer
loadbalancer/consistent_hash.go
LeastConnectionsLoadBalancer
loadbalancer/least_connections.go
Calls
no outgoing calls
Tested by
no test coverage detected