新增接口

This commit is contained in:
duanhf2012
2020-04-02 16:07:03 +08:00
parent 1313b2f7b3
commit 649b9bee64

View File

@@ -34,6 +34,14 @@ type PBPackInfo struct {
msg proto.Message
}
func (slf *PBPackInfo) GetPackType() uint16 {
return slf.typ
}
func (slf *PBPackInfo) GetMsg() proto.Message {
return slf.msg
}
// must goroutine safe
func (slf *PBProcessor ) Route(msg interface{},userdata interface{}) error{
pPackInfo := msg.(*PBPackInfo)