Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/aceld/zinx
/ main
Function
main
examples/zinx_dynamic_bind/server/server.go:49–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
47
}
48
49
func
main() {
50
s := znet.NewServer()
51
52
s.SetOnConnStart(OnConnectionAdd)
53
s.SetOnConnStop(OnConnectionLost)
54
55
s.AddRouter(1, &blockRouter{})
56
57
s.Serve()
58
}
Callers
nothing calls this directly
Calls
5
SetOnConnStart
Method · 0.95
SetOnConnStop
Method · 0.95
AddRouter
Method · 0.95
Serve
Method · 0.95
NewServer
Function · 0.92
Tested by
no test coverage detected