mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
新增对rpc参数数据类型自动识别(同时支持json与protobuf方式序列化与反序列化)
This commit is contained in:
@@ -81,6 +81,12 @@ func (slf *JsonProcessor) ReleaseRpcRespose(rpcRequestData IRpcResponseData){
|
||||
rpcJsonResponeDataPool.Put(rpcRequestData)
|
||||
}
|
||||
|
||||
func (slf *JsonProcessor) IsParse(param interface{}) bool {
|
||||
_,err := json.Marshal(param)
|
||||
return err==nil
|
||||
}
|
||||
|
||||
|
||||
func (slf *JsonRpcRequestData) IsNoReply() bool{
|
||||
return slf.NoReply
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user