handler.go 200 B

12345678910111213
  1. package internal
  2. import (
  3. "reflect"
  4. )
  5. func handleMsg(m interface{}, h interface{}) {
  6. skeleton.RegisterChanRPC(reflect.TypeOf(m), h)
  7. }
  8. func init() {
  9. // handleMsg(&msg.ReqLogin{}, loginHandler)
  10. }