mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-24 08:41:25 +08:00
* add coprocessor support Signed-off-by: Connor1996 <zbk602423539@gmail.com> Co-authored-by: Yiding Cui <winoros@gmail.com>
35 lines
636 B
Protocol Buffer
35 lines
636 B
Protocol Buffer
syntax = "proto3";
|
|
package coprocessor;
|
|
|
|
import "errorpb.proto";
|
|
import "kvrpcpb.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.marshaler_all) = true;
|
|
option (gogoproto.sizer_all) = true;
|
|
option (gogoproto.unmarshaler_all) = true;
|
|
|
|
|
|
// [start, end)
|
|
message KeyRange {
|
|
bytes start = 1;
|
|
bytes end = 2;
|
|
}
|
|
|
|
message Request {
|
|
kvrpcpb.Context context = 1;
|
|
int64 tp = 2;
|
|
bytes data = 3;
|
|
uint64 start_ts = 7;
|
|
repeated KeyRange ranges = 4;
|
|
}
|
|
|
|
message Response {
|
|
bytes data = 1;
|
|
errorpb.Error region_error = 2;
|
|
kvrpcpb.LockInfo locked = 3;
|
|
string other_error = 4;
|
|
KeyRange range = 5;
|
|
}
|
|
|