github.com/ethersphere/bee/v2@v2.2.0/pkg/pullsync/pb/pullsync.proto (about) 1 // Copyright 2020 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package pullsync; 8 9 option go_package = "pb"; 10 11 message Syn {} 12 13 message Ack { 14 repeated uint64 Cursors = 1; 15 uint64 Epoch = 2; 16 } 17 18 message Get { 19 int32 Bin = 1; 20 uint64 Start = 2; 21 } 22 23 message Chunk { 24 bytes Address = 1; 25 bytes BatchID = 2; 26 bytes StampHash = 3; 27 } 28 29 message Offer { 30 uint64 Topmost = 1; 31 repeated Chunk Chunks = 2; 32 } 33 34 35 message Want { 36 bytes BitVector = 1; 37 } 38 39 message Delivery { 40 bytes Address = 1; 41 bytes Data = 2; 42 bytes Stamp = 3; 43 }