49 lines
869 B
Protocol Buffer
49 lines
869 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option objc_class_prefix = "HLW";
|
|
|
|
package vrrpc;
|
|
|
|
service vrsrvrpc {
|
|
rpc prepare (prepare_req) returns (empty_resp) {}
|
|
rpc prepare_ok (prepare_ok_req) returns (empty_resp) {}
|
|
rpc commit (commit_req) returns (empty_resp) {}
|
|
rpc get_state(get_state_req) returns (empty_resp) {}
|
|
rpc new_state(new_state_req) returns (empty_resp) {}
|
|
}
|
|
|
|
message get_state_req {
|
|
uint32 view_id = 1;
|
|
uint32 op_num = 2;
|
|
uint32 srv_id = 3;
|
|
}
|
|
|
|
message new_state_req {
|
|
uint32 view_id = 1;
|
|
bytes log_data = 2;
|
|
uint32 op_num = 3;
|
|
uint32 commit_num = 4;
|
|
}
|
|
|
|
message prepare_req {
|
|
uint32 view_id = 1;
|
|
bytes data = 2;
|
|
uint32 op_num = 3;
|
|
uint32 commit_num = 4;
|
|
}
|
|
|
|
message prepare_ok_req {
|
|
uint32 view_id = 1;
|
|
uint32 op_num = 2;
|
|
uint32 srv_id = 3;
|
|
}
|
|
|
|
message commit_req {
|
|
uint32 view_id = 1;
|
|
uint32 commit_num = 2;
|
|
}
|
|
|
|
message empty_resp {
|
|
|
|
}
|