generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[P2] The support of Extension type Enumeration #88
Comments
s5364733
changed the title
[P2] Support Enumeration
[P2] The support of Extension type Enumeration
Mar 26, 2024
嗯,#64 跟这个应该是一个事情。尽量基于 thrift 的 enum 去实现。 |
需要参照 thrift 的 enum,让它的生成内容向 dubbo-go-hessian2 已经支持的范围靠拢。并且我们最好不要修改 thriftgo,应该可以参照 cloudwego/kitex#1076, 拿到 thriftgo 解析好的 AST 后,再生成 hessian2 独有的代码 |
梳理一下流程1. 定义thrift 原语法如下:
2. 使用kitex cmd thrfit go 插件解析到thrift ast
|
有几个问题还得确认
|
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 11, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 11, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 11, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 15, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 15, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 15, 2024
3 tasks
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 16, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 16, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 16, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 17, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 17, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 17, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 25, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 25, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 25, 2024
s5364733
added a commit
to s5364733/codec-dubbo
that referenced
this issue
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that enumeration is not supported now, but Hessian-dubbo already has support for int enumeration.
The writing method when using the hessian2 protocol conversion type normally is as follows:
Because Codec-dubbo calls hessian-dubbo for serialization at the bottom level, the purpose can be achieved as long as the type can be guaranteed to be serialized by hessian-dubbo. For specific real-time solutions, you can refer to the implementation of extended thrift.
具体实现参考:
dubbo-go-hessian2
IDL-REF
The text was updated successfully, but these errors were encountered: