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

[WIP] feature: support protobuf #439

Closed
wants to merge 21 commits into from

Conversation

xujianhai666
Copy link
Member

No description provided.

@xujianhai666 xujianhai666 changed the title feature: support protobuf [WIP] feature: support protobuf Mar 21, 2020
@xujianhai666 xujianhai666 changed the base branch from master to feature/protocol March 23, 2020 01:50
nameMaps = make(map[byte]string)
)

func init() {
Copy link
Contributor

Choose a reason for hiding this comment

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

don't init here, refer to other extension.

common/extension/serialization.go Outdated Show resolved Hide resolved
common/extension/serialization.go Outdated Show resolved Hide resolved

// doesn't encode url reserve character, url.QueryEscape will do this work
// reference: https://github.com/golang/go.git, src/net/url/url.go, Encode method
func ParamsUnescapeEncode(params url.Values) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

please see Url.tostring, and then decide to keep this method or not.

@@ -20,6 +20,7 @@ package config
import (
"context"
"fmt"
"github.com/apache/dubbo-go/protocol/dubbo/impl/remoting"
Copy link
Contributor

Choose a reason for hiding this comment

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

the config dir should not referent impl.

@@ -63,4 +64,6 @@ require (
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a // indirect
)

replace github.com/apache/dubbo-go-hessian2 => /Users/jianhaixu/secrect/opensource/dubbo-go-hessian2
Copy link
Member

Choose a reason for hiding this comment

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

should delete this replace block?

"github.com/pkg/errors"
)

/*
Copy link
Member

Choose a reason for hiding this comment

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

move lisence to top of file

"reflect"
"regexp"

"github.com/pkg/errors"
Copy link
Member

Choose a reason for hiding this comment

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

split

errClientReadTimeout = perrors.New("client read timeout")
)

// TODO: 需要移动到 业务的实现
Copy link
Member

Choose a reason for hiding this comment

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

replace by english?

* limitations under the License.
*/

// TODO: zero.xu readwrite 中将client/server handler 分开
Copy link
Member

Choose a reason for hiding this comment

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

replace by english

* See the License for the specific language governing permissions and
* limitations under the License.
*/
package remoting
Copy link
Member

Choose a reason for hiding this comment

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

maybe add blank line between lisence and package name

gxsync "github.com/dubbogo/gost/sync"
)

// TODO: 需要移动到 业务的实现
Copy link
Member

Choose a reason for hiding this comment

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

english

import (
"fmt"

"github.com/apache/dubbo-go/common/constant"
Copy link
Member

Choose a reason for hiding this comment

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

split

"github.com/apache/dubbo-go/protocol/dubbo/impl"
"github.com/apache/dubbo-go/protocol/dubbo/impl/remoting"
"github.com/apache/dubbo-go/protocol/invocation"
"github.com/dubbogo/getty"
Copy link
Member

Choose a reason for hiding this comment

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

split

Comment on lines +31 to +32
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/mocktracer"
Copy link
Member

Choose a reason for hiding this comment

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

split

@AlexStocks AlexStocks closed this May 28, 2020
@flycash flycash linked an issue Jun 11, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align with Dubbo: protobuf support
5 participants