MCPcopy 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

20type LoadBalancer interface {
21 // AddServer 添加服务器
22 AddServer(server *Server)
23 // RemoveServer 移除服务器
24 RemoveServer(address string)
25 // GetServer 获取下一个服务器

Callers 2

mainFunction · 0.65
AddServerMethod · 0.65

Implementers 2

MaglevHashLoadBalancerloadbalancer/consistent_hash.go
LeastConnectionsLoadBalancerloadbalancer/least_connections.go

Calls

no outgoing calls

Tested by

no test coverage detected