forked from tikv/client-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rustin-patch-fix
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
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
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,33 @@ | ||
syntax = "proto3"; | ||
package coprocessor_v2; | ||
|
||
import "errorpb.proto"; | ||
import "kvrpcpb.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "rustproto.proto"; | ||
|
||
option (gogoproto.marshaler_all) = true; | ||
option (gogoproto.sizer_all) = true; | ||
option (gogoproto.unmarshaler_all) = true; | ||
option (rustproto.lite_runtime_all) = true; | ||
|
||
option java_package = "org.tikv.kvproto"; | ||
|
||
message RawCoprocessorRequest { | ||
kvrpcpb.Context context = 1; | ||
|
||
string copr_name = 2; | ||
string copr_version_constraint = 3; | ||
|
||
bytes data = 4; | ||
} | ||
|
||
message RawCoprocessorResponse { | ||
bytes data = 1; | ||
|
||
errorpb.Error region_error = 2; | ||
|
||
// Error message for cases like if no coprocessor with a matching name is found | ||
// or on a version mismatch between plugin_api and the coprocessor. | ||
string other_error = 4; | ||
} |
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