示例#1
0
func RegistStringHandler(skeleton *module.Skeleton, name string, handler interface{}) {
	skeleton.RegisterChanRPC(name, handler)
}
示例#2
0
func RegistMsgHandler(skeleton *module.Skeleton, msg interface{}, handler interface{}) {
	skeleton.RegisterChanRPC(reflect.TypeOf(msg), handler)
}