Skip to content
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

Feature add methods to bridge dubbo-hessian2 and kitex-hessian #33

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

Lvnszn
Copy link
Collaborator

@Lvnszn Lvnszn commented Aug 19, 2023

What type of PR is this?

add methods to bridge dubbo-hessian2 and kitex-hessian

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

type TestServiceEchoIntArgs struct {
Req int32 `json:"req"`
}
func (p *EchoRequest) Encode(e codec.Encoder) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Encode and Decode functions are not used?


func init() {
hessian.RegisterPOJO(&EchoRequest{})
hessian.RegisterPOJO(&EchoResponse{})
register(objects)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以直接调用 hessian2.Register,不用 register 函数了

}
svcInfo := &kitex.ServiceInfo{
ServiceName: serviceName,
HandlerType: handlerType,
Methods: methods,
KiteXGenVersion: "v0.6.1",
PayloadCodec: kitex.Thrift,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Hessian2 here?

@bytedance-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: felix021, jasondeng1997, Lvnszn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jasondeng1997
Copy link
Collaborator

LGTM

@jasondeng1997 jasondeng1997 merged commit 6ca264d into kitex-contrib:main Aug 21, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants