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

Method RegisterHandler

module/worker_pool.go:81–85  ·  view source on GitHub ↗
(type_id ProtoTypeID, f MsgHandler)

Source from the content-addressed store, hash-verified

79}
80
81func (this *ModuleWorkerPool) RegisterHandler(type_id ProtoTypeID, f MsgHandler) {
82 for _, v := range this.modules {
83 v.(ModuleRouter).RegisterHandler(type_id, f)
84 }
85}
86
87func (this *ModuleWorkerPool) RpcCall(name string, args ...interface{}) {
88 var hashkey uint32 = 0

Callers

nothing calls this directly

Calls 1

RegisterHandlerMethod · 0.65

Tested by

no test coverage detected