github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/proto/rsync/messages.go (about) 1 package rsync 2 3 // The GetBlocks() protocol is fully streamed. 4 // The client sends a GetBlocksRequest to the server. 5 // The server sends a stream of Block messages. 6 7 type GetBlocksRequest struct { 8 BlockOrder uint8 // Valid values: 9-32. 9 NumBlocks uint64 // If zero: send a single block for the whole volume. 10 } // lib/hash.Hash messages are streamed afterwards. 11 12 type Block struct { 13 Error string 14 Index uint64 15 Size uint64 // If zero: no more blocks coming. 16 } // Block data are streamed afterwards.