ipfs-cluster/consensus/raft
Hector Sanjuan 0d73d33ef5 Pintracker: streaming methods
This commit continues the work of taking advantage of the streaming
capabilities in go-libp2p-gorpc by improving the ipfsconnector and pintracker
components.

StatusAll and RecoverAll methods are now streaming methods, with the REST API
output changing accordingly to produce a stream of GlobalPinInfos rather than
a json array.

pin/ls request to the ipfs daemon now use ?stream=true and avoid having to
load the full pinset map on memory. StatusAllLocal and RecoverAllLocal
requests to the pin tracker stream all the way and no longer store the full
pinset, and the full PinInfo status slice before sending it out.

We have additionally switched to a pattern where streaming methods receive the
channel as an argument, allowing the caller to decide on whether to launch a
goroutine, do buffering etc.
2022-03-22 15:38:01 +01:00
..
config_test.go Add ApplyEnvVars test to raft config 2019-02-18 17:43:54 +02:00
config.go Fix #937: Print full working configuration at startup 2020-05-15 01:33:04 +02:00
consensus_test.go Pintracker: streaming methods 2022-03-22 15:38:01 +01:00
consensus.go Pinset streaming and method type revamp 2022-03-19 03:02:55 +01:00
data_helper_test.go Feat: emancipate Consensus from the Cluster component 2018-05-07 07:39:41 +02:00
data_helper.go Feat: emancipate Consensus from the Cluster component 2018-05-07 07:39:41 +02:00
log_op_test.go Pintracker: streaming methods 2022-03-22 15:38:01 +01:00
log_op.go Pinset streaming and method type revamp 2022-03-19 03:02:55 +01:00
logging.go Dependency ugprade: changes needed 2020-03-22 14:50:25 +01:00
raft.go staticcheck: fix all staticcheck warnings in the project 2020-04-14 20:16:10 +02:00