Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Cihangir SAVAS 27380cc193 rpc: fix lint issues under rpcplus 2015-01-02 20:22:11 -08:00
Anthony Yeh 04f9e79bbc Rewrite imports for golang subrepositories.
As per this announcement:
https://groups.google.com/forum/m/#!msg/golang-announce/eD8dh3T9yyA/HDOEU_ZSmvAJ
2014-12-14 12:48:10 -08:00
Anthony Yeh b09ca93ea3 Add tracing in rpcplus and other places downstream from tabletmanager.
The goal is to start getting useful traces out of tabletmanager.
To start, we trace outgoing RPC calls on the client side.
Certain high-level TopoServer operations are also traced at this point.

To facilitate tracing, I've begun plumbing Context through tabletmanager
and all its users. At this time, it is simply a few regexes adding the
parameter so it can be used by tracing; no timeouts or cancellation are
using Context yet. Those use cases will require more careful
consideration.

Other than tabletmanager, most callers use context.TODO() since they
aren't plumbed yet.
2014-11-11 22:56:57 -08:00
Sugu Sougoumarane 064d69300d go vet cleanup 2013-12-24 15:24:45 -08:00
Ric Szopa f4024cdfa5 RPC methods take a context argument.
* * *
The context object is passed around.
* * *
the context is passed as interface{}
* * *
Bring back old function signatures.
* * *
Context-taking RPC method can declare their arguments using the real context type.
* * *
Use inteface{} for context in rpcplus.
2012-10-24 12:49:59 -07:00
Alain Jobart e0a113f69c New version of the streaming RPC code. We simplified the protocol
to use the same message structure, not have a sub-sequence id,
and use an extra message to signal end-of-stream.
2012-08-27 14:06:09 -07:00
Alain Jobart 2c49b0e04b Initial set of changes on rpcplus to add streaming RPC support.
The code was forked because the changes are minimal and seem right,
and because of the backward compatibility.

The protocal is backward compatible on the wire (old clients and servers
will still work with this new library, provided they don't use
the streaming RPC feature).

On the server side, a new interface type is recognized:
func (t *T) method(args T1, sendNonFinalReply func(reply interface{}) error, finalReply *T2) error
so the server implementation can send as many responses as it wants.

On the client side, the implementation uses a channel to read
the responses (and the for : range construct, most likely).
2012-08-16 15:01:35 -07:00
Alain Jobart 7f62e42a4f Initial fork from go/net/rpc. We want to add streaming RPC support to this package.
Note it won't compile as is, as the paths are not correct.
2012-08-16 14:54:07 -07:00
Alain Jobart 986447753c Removing initial rpcplus import.
(we want the history to start wih the original files from go/net/rpc).
2012-08-16 14:51:46 -07:00
Alain Jobart ec1430962e Adding a working version of rpcplus (contains the original go rpc package,
modified to support streaming RPCs).
2012-08-16 11:05:14 -07:00