18 lines
388 B
Protocol Buffer
18 lines
388 B
Protocol Buffer
package protobuf;
|
|
|
|
message ProtoAppendEntriesRequest {
|
|
required uint64 Term=1;
|
|
required uint64 PrevLogIndex=2;
|
|
required uint64 PrevLogTerm=3;
|
|
required uint64 CommitIndex=4;
|
|
required string LeaderName=5;
|
|
|
|
message ProtoLogEntry {
|
|
required uint64 Index=1;
|
|
required uint64 Term=2;
|
|
required string CommandName=3;
|
|
optional bytes Command=4;
|
|
}
|
|
|
|
repeated ProtoLogEntry Entries=6;
|
|
} |