#
dubbogo
Here are 3 public repositories matching this topic...
Improve this page
Add a description, image, and links to the dubbogo topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the dubbogo topic, visit your repo's landing page and select "manage topics."

背景
在
service mesh环境下,需要在sidecar中解析dubbo的attachment,并根据需求添加一些自定义的参数进去,就像SetHeader一样,然后重新构建dubbo包问题
如果使用
hessian.NewDecoder,传递的参数没有对象是可以的,如果参数中有对象会报错,参考 #163 的解决办法,使用hessian.NewDecoderWithSkip可以解决,但是重新构建的时候arg类型是interface{},值是nil解决
能否多提供一个
Decode方法,直接返回[]byte内容,重新构建的时候直接encode.Append(arg)就可以重新构建dubbo包