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.
37 lines
1.4 KiB
37 lines
1.4 KiB
syntax = "proto3";
|
|
|
|
package examples;
|
|
import "google/protobuf/empty.proto";
|
|
|
|
option go_package = "github.com/yedf/dtm/examples";
|
|
|
|
// DtmRequest request sent to dtm server
|
|
message BusiReq {
|
|
int64 Amount = 1;
|
|
string TransOutResult = 2;
|
|
string TransInResult = 3;
|
|
}
|
|
|
|
// The dtm service definition.
|
|
service Busi {
|
|
rpc CanSubmit(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransIn(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOut(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransInRevert(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutRevert(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransInConfirm(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutConfirm(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc XaNotify(google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
|
|
|
rpc TransInXa(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutXa(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransInTcc(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutTcc(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransInTccNested(BusiReq) returns (google.protobuf.Empty) {}
|
|
|
|
rpc TransInBSaga(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutBSaga(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransInRevertBSaga(BusiReq) returns (google.protobuf.Empty) {}
|
|
rpc TransOutRevertBSaga(BusiReq) returns (google.protobuf.Empty) {}
|
|
}
|
|
|
|
|