MCPcopy Create free account
hub / github.com/Cyinx/einx / RegisterRpcHandler

Method RegisterRpcHandler

module/worker_pool.go:75–79  ·  view source on GitHub ↗
(name string, f RpcHandler)

Source from the content-addressed store, hash-verified

73}
74
75func (this *ModuleWorkerPool) RegisterRpcHandler(name string, f RpcHandler) {
76 for _, v := range this.modules {
77 v.(ModuleRouter).RegisterRpcHandler(name, f)
78 }
79}
80
81func (this *ModuleWorkerPool) RegisterHandler(type_id ProtoTypeID, f MsgHandler) {
82 for _, v := range this.modules {

Callers

nothing calls this directly

Calls 1

RegisterRpcHandlerMethod · 0.65

Tested by

no test coverage detected