-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab7b5d1
commit c757078
Showing
59 changed files
with
10,819 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
syntax = "proto3"; | ||
package autoid; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "rustproto.proto"; | ||
|
||
option (gogoproto.sizer_all) = true; | ||
option (gogoproto.marshaler_all) = true; | ||
option (gogoproto.unmarshaler_all) = true; | ||
option (rustproto.lite_runtime_all) = true; | ||
|
||
option java_package = "org.tikv.kvproto"; | ||
|
||
message AutoIDRequest { | ||
int64 dbID = 1; | ||
int64 tblID = 2; | ||
bool isUnsigned = 3; | ||
uint64 n = 4; | ||
int64 increment = 5; | ||
int64 offset = 6; | ||
uint32 keyspaceID = 7; | ||
} | ||
|
||
message AutoIDResponse { | ||
int64 min = 1; | ||
int64 max = 2; | ||
|
||
bytes errmsg = 3; | ||
} | ||
|
||
message RebaseRequest { | ||
int64 dbID = 1; | ||
int64 tblID = 2; | ||
bool isUnsigned = 3; | ||
int64 base = 4; | ||
bool force = 5; | ||
} | ||
|
||
message RebaseResponse { | ||
bytes errmsg = 1; | ||
} | ||
|
||
service AutoIDAlloc { | ||
rpc AllocAutoID(AutoIDRequest) returns (AutoIDResponse) {} | ||
rpc Rebase(RebaseRequest) returns (RebaseResponse) {} | ||
} | ||
|
Oops, something went wrong.