MCPcopy
hub / github.com/aceld/zinx / AddRouter

Method AddRouter

znet/server.go:480–485  ·  view source on GitHub ↗
(msgID uint32, router ziface.IRouter)

Source from the content-addressed store, hash-verified

478}
479
480func (s *Server) AddRouter(msgID uint32, router ziface.IRouter) {
481 if s.RouterSlicesMode {
482 panic("Server RouterSlicesMode is true ")
483 }
484 s.msgHandler.AddRouter(msgID, router)
485}
486
487func (s *Server) AddRouterSlices(msgID uint32, router ...ziface.RouterHandler) ziface.IRouterSlices {
488 if !s.RouterSlicesMode {

Callers 15

mainFunction · 0.95
StartHeartBeatMethod · 0.95
TestServerFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 1

AddRouterMethod · 0.65

Tested by 2

TestServerFunction · 0.76