16 lines
431 B
Protocol Buffer
16 lines
431 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
option go_package = "./;protobuf";
|
||
|
package protobuf;
|
||
|
|
||
|
message SegmentMessage {
|
||
|
// hash of the entire original message
|
||
|
bytes entire_message_hash = 1;
|
||
|
// Index of this segment within the entire original message
|
||
|
uint32 index = 2;
|
||
|
// Total number of segments the entire original message is divided into
|
||
|
uint32 segments_count = 3;
|
||
|
// The payload data for this particular segment
|
||
|
bytes payload = 4;
|
||
|
}
|