zrepl/rpc
Christian Schwarz 35dcfc234e Implement push support.
Pushing is achieved by inverting the roles on the established
connection, i.e. the client tells the server what data it should pull
from the client (PullMeRequest).

Role inversion is achieved by moving the server loop to the serverLoop
function of ByteStreamRPC, which can be called from both the Listen()
function (server-side) and the PullMeRequest() client-side function.

A donwside of this PullMe approach is that the replication policies
become part of the rpc, because the puller must follow the policy.
2017-05-20 18:17:08 +02:00
..
rpc_test.go rpc: chunk JSON parts of communication + refactoring 2017-05-13 15:33:46 +02:00
rpc.go Implement push support. 2017-05-20 18:17:08 +02:00
structs.go Implement push support. 2017-05-20 18:17:08 +02:00