mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
666 B
27 lines
666 B
syntax = "proto3";
|
|
|
|
package examples;
|
|
|
|
option go_package = "github.com/yedf/dtm/examples";
|
|
import "dtmcli/dtmcli.proto";
|
|
|
|
// The dtm service definition.
|
|
service Busi {
|
|
rpc TransIn(BusiRequest) returns (BusiReply) {}
|
|
rpc TransOut(BusiRequest) returns (BusiReply) {}
|
|
rpc TransInRevert(BusiRequest) returns (BusiReply) {}
|
|
rpc TransOutRevert(BusiRequest) returns (BusiReply) {}
|
|
}
|
|
|
|
// The request message containing the user's name.
|
|
message BusiRequest {
|
|
dtmcli.DtmTransInfo info = 1;
|
|
map<string, string> Extra = 2;
|
|
bytes AppData = 3;
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
message BusiReply {
|
|
string DtmResult = 1;
|
|
string DtmMessage = 2;
|
|
}
|