-
Notifications
You must be signed in to change notification settings - Fork 931
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
Conversation
common/extension/serialization.go
Outdated
nameMaps = make(map[byte]string) | ||
) | ||
|
||
func init() { |
There was a problem hiding this comment.
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.
|
||
// 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 { |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" | ||
) | ||
|
||
/* |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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: 需要移动到 业务的实现 |
There was a problem hiding this comment.
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 分开 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: 需要移动到 业务的实现 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split
"github.com/opentracing/opentracing-go" | ||
"github.com/opentracing/opentracing-go/mocktracer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split
No description provided.