Skip to content

Commit bab9704

Browse files
committed
implement ttl
1 parent c9f6cc5 commit bab9704

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+10973
-293
lines changed

proto/autoid.proto

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
syntax = "proto3";
2+
package autoid;
3+
4+
import "gogoproto/gogo.proto";
5+
import "rustproto.proto";
6+
7+
option (gogoproto.sizer_all) = true;
8+
option (gogoproto.marshaler_all) = true;
9+
option (gogoproto.unmarshaler_all) = true;
10+
option (rustproto.lite_runtime_all) = true;
11+
12+
option java_package = "org.tikv.kvproto";
13+
14+
message AutoIDRequest {
15+
int64 dbID = 1;
16+
int64 tblID = 2;
17+
bool isUnsigned = 3;
18+
uint64 n = 4;
19+
int64 increment = 5;
20+
int64 offset = 6;
21+
uint32 keyspaceID = 7;
22+
}
23+
24+
message AutoIDResponse {
25+
int64 min = 1;
26+
int64 max = 2;
27+
28+
bytes errmsg = 3;
29+
}
30+
31+
message RebaseRequest {
32+
int64 dbID = 1;
33+
int64 tblID = 2;
34+
bool isUnsigned = 3;
35+
int64 base = 4;
36+
bool force = 5;
37+
}
38+
39+
message RebaseResponse {
40+
bytes errmsg = 1;
41+
}
42+
43+
service AutoIDAlloc {
44+
rpc AllocAutoID(AutoIDRequest) returns (AutoIDResponse) {}
45+
rpc Rebase(RebaseRequest) returns (RebaseResponse) {}
46+
}
47+

0 commit comments

Comments
 (0)