The Wayback Machine - https://web.archive.org/web/20210906231502/https://github.com/topics/caucho
Skip to content
#

caucho

Here is 1 public repository matching this topic...

champly
champly commented May 15, 2020

背景

service mesh环境下,需要在 sidecar 中解析dubboattachment,并根据需求添加一些自定义的参数进去,就像SetHeader一样,然后重新构建 dubbo

问题

如果使用hessian.NewDecoder,传递的参数没有对象是可以的,如果参数中有对象会报错,参考 #163 的解决办法,使用 hessian.NewDecoderWithSkip可以解决,但是重新构建的时候arg类型是interface{},值是nil

解决

能否多提供一个Decode方法,直接返回[]byte内容,重新构建的时候直接encode.Append(arg)就可以重新构建dubbo

Improve this page

Add a description, image, and links to the caucho topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the caucho topic, visit your repo's landing page and select "manage topics."

Learn more