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.
46 lines
1.1 KiB
46 lines
1.1 KiB
syntax = "proto3";
|
|
|
|
option go_package = "./dtmgimp";
|
|
import "google/protobuf/empty.proto";
|
|
|
|
package dtmgimp;
|
|
|
|
// The dtm service definition.
|
|
service Dtm {
|
|
rpc NewGid(google.protobuf.Empty) returns (DtmGidReply) {}
|
|
rpc Submit(DtmRequest) returns (google.protobuf.Empty) {}
|
|
rpc Prepare(DtmRequest) returns (google.protobuf.Empty) {}
|
|
rpc Abort(DtmRequest) returns (google.protobuf.Empty) {}
|
|
rpc RegisterBranch(DtmBranchRequest) returns (google.protobuf.Empty) {}
|
|
}
|
|
|
|
message DtmTransOptions {
|
|
bool WaitResult = 1;
|
|
int64 TimeoutToFail = 2;
|
|
int64 RetryInterval = 3;
|
|
}
|
|
|
|
// DtmRequest request sent to dtm server
|
|
message DtmRequest {
|
|
string Gid = 1;
|
|
string TransType = 2;
|
|
DtmTransOptions TransOptions = 3;
|
|
string CustomedData = 4;
|
|
repeated bytes BinPayloads = 5; // for MSG/SAGA branch payloads
|
|
string QueryPrepared = 6; // for MSG
|
|
string Steps = 7;
|
|
}
|
|
|
|
message DtmGidReply {
|
|
string Gid = 1;
|
|
}
|
|
|
|
message DtmBranchRequest {
|
|
string Gid = 1;
|
|
string TransType = 2;
|
|
string BranchID = 3;
|
|
string Op = 4;
|
|
map<string, string> Data = 5;
|
|
bytes BusiPayload = 6;
|
|
}
|
|
|
|
|