Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Issue 1605363002: common/prpc, tools/cmd/cproto: prpc client (Closed)

Created:
4 years, 11 months ago by nodir
Modified:
4 years, 10 months ago
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

common/prpc, tools/cmd/cproto: prpc client * common/prpc package implements a pRPC Client * tools/cmd/cproto: generate NewXxxPRPCClient functions * move gRPC code <-> HTTP status code mapping from server/prpc to common/prpc R=dnj@chromium.org, vadimsh@chromium.org BUG=

Patch Set 1 : #

Patch Set 2 : use text template for ast generation #

Total comments: 54

Patch Set 3 : addressed comments #

Total comments: 18

Patch Set 4 : #

Total comments: 1

Patch Set 5 : rebased and addressed comments #

Patch Set 6 : rebased and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1279 lines, -319 lines) Patch
M common/errors/transient.go View 1 chunk +7 lines, -0 lines 0 comments Download
A common/errors/wrap.go View 1 chunk +33 lines, -0 lines 0 comments Download
M common/logging/fields.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A common/prpc/client.go View 1 2 3 4 5 1 chunk +223 lines, -0 lines 0 comments Download
A common/prpc/client_test.go View 1 2 3 4 1 chunk +200 lines, -0 lines 0 comments Download
A common/prpc/codes.go View 1 chunk +84 lines, -0 lines 0 comments Download
M common/prpc/doc.go View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
A + common/prpc/generate.go View 1 chunk +0 lines, -1 line 0 comments Download
A + common/prpc/helloworld_test.proto View 1 chunk +1 line, -7 lines 0 comments Download
A common/prpc/helloworld_test.pb_test.go View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A common/prpc/options.go View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M common/retry/limited.go View 2 chunks +3 lines, -3 lines 0 comments Download
M common/retry/transient.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M server/prpc/auth.go View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M server/prpc/decoding.go View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M server/prpc/decoding_test.go View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M server/prpc/encoding.go View 1 2 3 4 7 chunks +50 lines, -100 lines 0 comments Download
M server/prpc/encoding_test.go View 1 2 3 4 3 chunks +10 lines, -48 lines 0 comments Download
M server/prpc/error.go View 1 2 3 4 1 chunk +14 lines, -26 lines 0 comments Download
M server/prpc/error_test.go View 1 2 3 4 1 chunk +0 lines, -34 lines 0 comments Download
M server/prpc/method.go View 1 2 3 4 2 chunks +27 lines, -54 lines 0 comments Download
A server/prpc/response.go View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
A server/prpc/response_test.go View 1 2 3 4 1 chunk +92 lines, -0 lines 0 comments Download
M server/prpc/server.go View 1 2 3 4 7 chunks +45 lines, -9 lines 0 comments Download
M server/prpc/server_test.go View 1 2 3 4 4 chunks +24 lines, -1 line 0 comments Download
M server/prpc/service.go View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M tools/cmd/cproto/testdata/helloworld/test.pb.golden View 1 2 chunks +17 lines, -0 lines 0 comments Download
M tools/cmd/cproto/testdata/importGoogle/test.pb.golden View 1 2 chunks +26 lines, -0 lines 0 comments Download
M tools/cmd/cproto/testdata/retrain.sh View 1 1 chunk +3 lines, -1 line 0 comments Download
M tools/cmd/cproto/testdata/twoFiles/1.pb.golden View 1 2 chunks +17 lines, -0 lines 0 comments Download
M tools/cmd/cproto/testdata/twoFiles/2.pb.golden View 1 2 chunks +8 lines, -0 lines 0 comments Download
M tools/cmd/cproto/transform.go View 1 4 chunks +161 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
nodir
PTAL
4 years, 11 months ago (2016-01-20 14:14:09 UTC) #1
nodir
Switched from manual AST construction to a text template for client code generation.
4 years, 11 months ago (2016-01-20 22:57:37 UTC) #5
nodir
+more people
4 years, 11 months ago (2016-01-21 05:03:41 UTC) #7
dnj
Looks pretty good in general. Handful of comments. https://chromiumcodereview.appspot.com/1605363002/diff/80001/common/prpc/client.go File common/prpc/client.go (right): https://chromiumcodereview.appspot.com/1605363002/diff/80001/common/prpc/client.go#newcode36 common/prpc/client.go:36: func ...
4 years, 11 months ago (2016-01-21 07:44:28 UTC) #8
nodir
https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go File common/prpc/client.go (right): https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go#newcode36 common/prpc/client.go:36: func NewClient(host string) *Client { On 2016/01/21 07:44:27, dnj ...
4 years, 11 months ago (2016-01-22 00:47:24 UTC) #9
dnj
https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go File common/prpc/client.go (right): https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go#newcode68 common/prpc/client.go:68: fields := logging.Fields{ On 2016/01/22 00:47:23, nodir wrote: > ...
4 years, 11 months ago (2016-01-22 01:16:27 UTC) #10
nodir
https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go File common/prpc/client.go (right): https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go#newcode68 common/prpc/client.go:68: fields := logging.Fields{ On 2016/01/22 01:16:27, dnj wrote: > ...
4 years, 11 months ago (2016-01-22 02:57:50 UTC) #11
dnj (Google)
https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go File common/prpc/client.go (right): https://codereview.chromium.org/1605363002/diff/80001/common/prpc/client.go#newcode68 common/prpc/client.go:68: fields := logging.Fields{ On 2016/01/22 02:57:50, nodir wrote: > ...
4 years, 11 months ago (2016-01-22 04:06:24 UTC) #13
dnj
4 years, 11 months ago (2016-01-27 00:14:11 UTC) #14

Powered by Google App Engine
This is Rietveld 408576698