4 import "gogoproto/gogo.proto";
6 option (gogoproto.marshaler_all) = true;
7 option (gogoproto.sizer_all) = true;
8 option (gogoproto.unmarshaler_all) = true;
9 option (gogoproto.goproto_getters_all) = false;
10 option (gogoproto.goproto_enum_prefix_all) = false;
18 optional uint64 Term = 2 [(gogoproto.nullable) = false]; // must be 64-bit aligned for atomic operations
19 optional uint64 Index = 3 [(gogoproto.nullable) = false]; // must be 64-bit aligned for atomic operations
20 optional EntryType Type = 1 [(gogoproto.nullable) = false];
21 optional bytes Data = 4;
24 message SnapshotMetadata {
25 optional ConfState conf_state = 1 [(gogoproto.nullable) = false];
26 optional uint64 index = 2 [(gogoproto.nullable) = false];
27 optional uint64 term = 3 [(gogoproto.nullable) = false];
31 optional bytes data = 1;
32 optional SnapshotMetadata metadata = 2 [(gogoproto.nullable) = false];
49 MsgTransferLeader = 13;
52 MsgReadIndexResp = 16;
58 optional MessageType type = 1 [(gogoproto.nullable) = false];
59 optional uint64 to = 2 [(gogoproto.nullable) = false];
60 optional uint64 from = 3 [(gogoproto.nullable) = false];
61 optional uint64 term = 4 [(gogoproto.nullable) = false];
62 optional uint64 logTerm = 5 [(gogoproto.nullable) = false];
63 optional uint64 index = 6 [(gogoproto.nullable) = false];
64 repeated Entry entries = 7 [(gogoproto.nullable) = false];
65 optional uint64 commit = 8 [(gogoproto.nullable) = false];
66 optional Snapshot snapshot = 9 [(gogoproto.nullable) = false];
67 optional bool reject = 10 [(gogoproto.nullable) = false];
68 optional uint64 rejectHint = 11 [(gogoproto.nullable) = false];
69 optional bytes context = 12;
73 optional uint64 term = 1 [(gogoproto.nullable) = false];
74 optional uint64 vote = 2 [(gogoproto.nullable) = false];
75 optional uint64 commit = 3 [(gogoproto.nullable) = false];
79 repeated uint64 nodes = 1;
83 ConfChangeAddNode = 0;
84 ConfChangeRemoveNode = 1;
85 ConfChangeUpdateNode = 2;
89 optional uint64 ID = 1 [(gogoproto.nullable) = false];
90 optional ConfChangeType Type = 2 [(gogoproto.nullable) = false];
91 optional uint64 NodeID = 3 [(gogoproto.nullable) = false];
92 optional bytes Context = 4;