package pb
Get desktop application:
View/edit binary Protocol Buffers messages
int32 term = 1
int32 leader_id = 2
int32 prev_log_index = 3
int32 prev_log_term = 4
repeated KVCommand log_entries = 5
int32 leader_commit = 6
int32 term = 1
bool success = 2
int32 term = 1
int32 candidate_id = 2
int32 last_log_index = 3
int32 last_log_term = 4
int32 term = 1
bool vote_granted = 2
Used in: KVCommand
Used as request type in: RaftKV.Get
Used as field type in: KVCommand
optional Session session = 1
string key = 2
Used in: AppendEntriesReq
oneof command
int32 term = 5
int32 index = 6
int64 timestamp = 7
Used as request type in: RaftKV.Put
Used as field type in: KVCommand
optional Session session = 1
string key = 2
string value = 3
Follower = 0
Candidate = 1
Leader = 2
Used in: GetReq, OpenSessionReq, PutReq
int64 client_id = 1
int64 sn = 2
string log_id = 3
Used in: GetRes, PutRes
OK = 0
Timeout = 1
NoSuchKey = 2
NotLeader = 3
NoSession = 4