Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/appleboy/loadbalancer-algorithms
/ server
Struct
server
_example/weighted/main.go:10–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
)
9
10
type
server
struct
{
11
url *url.URL
12
weight int
13
}
14
15
func
main() {
16
servers := []*server{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected