mirror of https://github.com/dtm-labs/dtm.git
committed by
GitHub
140 changed files with 1697 additions and 1413 deletions
@ -0,0 +1,31 @@ |
|||||
|
# Go Client for DTM |
||||
|
|
||||
|
There are there packages: |
||||
|
|
||||
|
## workflow |
||||
|
Workflow is a new client for DTM. It support the mixed usage of patterns saga, tcc, xa. And it also support the mixed usage of http, grpc and local transactions. |
||||
|
|
||||
|
This pattern offers maximum flexibility and can handle a wide range of scenarios. This pattern is highly recommended for transactions that need to be rolled back |
||||
|
|
||||
|
Quick start for workflow using http can be found here: [https://github.com/dtm-labs/quick-start-sample/tree/main/workflow-http](https://github.com/dtm-labs/quick-start-sample/tree/main/workflow-http) |
||||
|
|
||||
|
Quick start for workflow using grpc can be found here: [https://github.com/dtm-labs/quick-start-sample/tree/main/workflow-grpc](https://github.com/dtm-labs/quick-start-sample/tree/main/workflow-grpc) |
||||
|
|
||||
|
Detailed examples can be found here: [https://github.com/dtm-labs/dtm-examples](https://github.com/dtm-labs/dtm-examples) |
||||
|
|
||||
|
|
||||
|
## dtmcli |
||||
|
dtmcli is the http client for patterns: saga, tcc, msg, xa |
||||
|
|
||||
|
Quick start for dtmcli can be found here: [https://github.com/dtm-labs/quick-start-sample/tree/main/dtmcli-qs](https://github.com/dtm-labs/quick-start-sample/tree/main/dtmcli-qs) |
||||
|
|
||||
|
Detailed examples can be found here: [https://github.com/dtm-labs/dtm-examples](https://github.com/dtm-labs/dtm-examples) |
||||
|
|
||||
|
## dtmgrpc |
||||
|
dtmcli is the grpc client for patterns: saga, tcc, msg, xa |
||||
|
|
||||
|
Quick start for dtmgrpc can be found here: [https://github.com/dtm-labs/quick-start-sample/tree/main/dtmgrpc-qs](https://github.com/dtm-labs/quick-start-sample/tree/main/dtmgrpc-qs) |
||||
|
|
||||
|
Detailed examples can be found here: [https://github.com/dtm-labs/dtm-examples](https://github.com/dtm-labs/dtm-examples) |
||||
|
|
||||
|
|
||||
@ -0,0 +1,74 @@ |
|||||
|
package dtmcli |
||||
|
|
||||
|
import ( |
||||
|
"errors" |
||||
|
"fmt" |
||||
|
"net/http" |
||||
|
"strings" |
||||
|
|
||||
|
"github.com/dtm-labs/dtm/client/dtmcli/dtmimp" |
||||
|
"github.com/go-resty/resty/v2" |
||||
|
) |
||||
|
|
||||
|
// MustGenGid generate a new gid
|
||||
|
func MustGenGid(server string) string { |
||||
|
res := map[string]string{} |
||||
|
resp, err := dtmimp.RestyClient.R().SetResult(&res).Get(server + "/newGid") |
||||
|
if err != nil || res["gid"] == "" { |
||||
|
panic(fmt.Errorf("newGid error: %v, resp: %s", err, resp)) |
||||
|
} |
||||
|
return res["gid"] |
||||
|
} |
||||
|
|
||||
|
// ErrorMessage2Error return an error fmt.Errorf("%s %w", errMsg, err) but trim out duplicate wrap
|
||||
|
// eg. ErrorMessage2Error("an error. FAILURE", ErrFailure) return an error with message: "an error. FAILURE",
|
||||
|
// no additional " FAILURE" added
|
||||
|
func ErrorMessage2Error(errMsg string, err error) error { |
||||
|
errMsg = strings.TrimSuffix(errMsg, " "+err.Error()) |
||||
|
return fmt.Errorf("%s %w", errMsg, err) |
||||
|
} |
||||
|
|
||||
|
// HTTPResp2DtmError translate a resty response to error
|
||||
|
// compatible with version < v1.10
|
||||
|
func HTTPResp2DtmError(resp *resty.Response) error { |
||||
|
code := resp.StatusCode() |
||||
|
str := resp.String() |
||||
|
if code == http.StatusTooEarly || strings.Contains(str, ResultOngoing) { |
||||
|
return ErrorMessage2Error(str, ErrOngoing) |
||||
|
} else if code == http.StatusConflict || strings.Contains(str, ResultFailure) { |
||||
|
return ErrorMessage2Error(str, ErrFailure) |
||||
|
} else if code != http.StatusOK { |
||||
|
return errors.New(str) |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
// Result2HttpJSON return the http code and json result
|
||||
|
// if result is error, the return proper code, else return StatusOK
|
||||
|
func Result2HttpJSON(result interface{}) (code int, res interface{}) { |
||||
|
err, _ := result.(error) |
||||
|
if err == nil { |
||||
|
code = http.StatusOK |
||||
|
res = result |
||||
|
} else { |
||||
|
res = map[string]string{ |
||||
|
"error": err.Error(), |
||||
|
} |
||||
|
if errors.Is(err, ErrFailure) { |
||||
|
code = http.StatusConflict |
||||
|
} else if errors.Is(err, ErrOngoing) { |
||||
|
code = http.StatusTooEarly |
||||
|
} else if err != nil { |
||||
|
code = http.StatusInternalServerError |
||||
|
} |
||||
|
} |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
func requestBranch(t *dtmimp.TransBase, method string, body interface{}, branchID string, op string, url string) (*resty.Response, error) { |
||||
|
resp, err := dtmimp.TransRequestBranch(t, method, body, branchID, op, url) |
||||
|
if err == nil { |
||||
|
err = HTTPResp2DtmError(resp) |
||||
|
} |
||||
|
return resp, err |
||||
|
} |
||||
@ -0,0 +1,831 @@ |
|||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
|
// versions:
|
||||
|
// protoc-gen-go v1.28.0
|
||||
|
// protoc v3.17.3
|
||||
|
// source: client/dtmgrpc/dtmgpb/dtmgimp.proto
|
||||
|
|
||||
|
package dtmgpb |
||||
|
|
||||
|
import ( |
||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb" |
||||
|
reflect "reflect" |
||||
|
sync "sync" |
||||
|
) |
||||
|
|
||||
|
const ( |
||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
|
) |
||||
|
|
||||
|
type DtmTransOptions struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
WaitResult bool `protobuf:"varint,1,opt,name=WaitResult,proto3" json:"WaitResult,omitempty"` |
||||
|
TimeoutToFail int64 `protobuf:"varint,2,opt,name=TimeoutToFail,proto3" json:"TimeoutToFail,omitempty"` |
||||
|
RetryInterval int64 `protobuf:"varint,3,opt,name=RetryInterval,proto3" json:"RetryInterval,omitempty"` |
||||
|
PassthroughHeaders []string `protobuf:"bytes,4,rep,name=PassthroughHeaders,proto3" json:"PassthroughHeaders,omitempty"` |
||||
|
BranchHeaders map[string]string `protobuf:"bytes,5,rep,name=BranchHeaders,proto3" json:"BranchHeaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
||||
|
RequestTimeout int64 `protobuf:"varint,6,opt,name=RequestTimeout,proto3" json:"RequestTimeout,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) Reset() { |
||||
|
*x = DtmTransOptions{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmTransOptions) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmTransOptions) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmTransOptions.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmTransOptions) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{0} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetWaitResult() bool { |
||||
|
if x != nil { |
||||
|
return x.WaitResult |
||||
|
} |
||||
|
return false |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetTimeoutToFail() int64 { |
||||
|
if x != nil { |
||||
|
return x.TimeoutToFail |
||||
|
} |
||||
|
return 0 |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetRetryInterval() int64 { |
||||
|
if x != nil { |
||||
|
return x.RetryInterval |
||||
|
} |
||||
|
return 0 |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetPassthroughHeaders() []string { |
||||
|
if x != nil { |
||||
|
return x.PassthroughHeaders |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetBranchHeaders() map[string]string { |
||||
|
if x != nil { |
||||
|
return x.BranchHeaders |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransOptions) GetRequestTimeout() int64 { |
||||
|
if x != nil { |
||||
|
return x.RequestTimeout |
||||
|
} |
||||
|
return 0 |
||||
|
} |
||||
|
|
||||
|
// DtmRequest request sent to dtm server
|
||||
|
type DtmRequest struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
||||
|
TransType string `protobuf:"bytes,2,opt,name=TransType,proto3" json:"TransType,omitempty"` |
||||
|
TransOptions *DtmTransOptions `protobuf:"bytes,3,opt,name=TransOptions,proto3" json:"TransOptions,omitempty"` |
||||
|
CustomedData string `protobuf:"bytes,4,opt,name=CustomedData,proto3" json:"CustomedData,omitempty"` |
||||
|
BinPayloads [][]byte `protobuf:"bytes,5,rep,name=BinPayloads,proto3" json:"BinPayloads,omitempty"` // for Msg/Saga/Workflow branch payloads
|
||||
|
QueryPrepared string `protobuf:"bytes,6,opt,name=QueryPrepared,proto3" json:"QueryPrepared,omitempty"` // for Msg
|
||||
|
Steps string `protobuf:"bytes,7,opt,name=Steps,proto3" json:"Steps,omitempty"` |
||||
|
ReqExtra map[string]string `protobuf:"bytes,8,rep,name=ReqExtra,proto3" json:"ReqExtra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
||||
|
RollbackReason string `protobuf:"bytes,9,opt,name=RollbackReason,proto3" json:"RollbackReason,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) Reset() { |
||||
|
*x = DtmRequest{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmRequest) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmRequest) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmRequest.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmRequest) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{1} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetGid() string { |
||||
|
if x != nil { |
||||
|
return x.Gid |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetTransType() string { |
||||
|
if x != nil { |
||||
|
return x.TransType |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetTransOptions() *DtmTransOptions { |
||||
|
if x != nil { |
||||
|
return x.TransOptions |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetCustomedData() string { |
||||
|
if x != nil { |
||||
|
return x.CustomedData |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetBinPayloads() [][]byte { |
||||
|
if x != nil { |
||||
|
return x.BinPayloads |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetQueryPrepared() string { |
||||
|
if x != nil { |
||||
|
return x.QueryPrepared |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetSteps() string { |
||||
|
if x != nil { |
||||
|
return x.Steps |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetReqExtra() map[string]string { |
||||
|
if x != nil { |
||||
|
return x.ReqExtra |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmRequest) GetRollbackReason() string { |
||||
|
if x != nil { |
||||
|
return x.RollbackReason |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
type DtmGidReply struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmGidReply) Reset() { |
||||
|
*x = DtmGidReply{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmGidReply) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmGidReply) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmGidReply) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmGidReply.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmGidReply) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{2} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmGidReply) GetGid() string { |
||||
|
if x != nil { |
||||
|
return x.Gid |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
type DtmBranchRequest struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
||||
|
TransType string `protobuf:"bytes,2,opt,name=TransType,proto3" json:"TransType,omitempty"` |
||||
|
BranchID string `protobuf:"bytes,3,opt,name=BranchID,proto3" json:"BranchID,omitempty"` |
||||
|
Op string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"` |
||||
|
Data map[string]string `protobuf:"bytes,5,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
||||
|
BusiPayload []byte `protobuf:"bytes,6,opt,name=BusiPayload,proto3" json:"BusiPayload,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) Reset() { |
||||
|
*x = DtmBranchRequest{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmBranchRequest) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmBranchRequest) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmBranchRequest.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmBranchRequest) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{3} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetGid() string { |
||||
|
if x != nil { |
||||
|
return x.Gid |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetTransType() string { |
||||
|
if x != nil { |
||||
|
return x.TransType |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetBranchID() string { |
||||
|
if x != nil { |
||||
|
return x.BranchID |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetOp() string { |
||||
|
if x != nil { |
||||
|
return x.Op |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetData() map[string]string { |
||||
|
if x != nil { |
||||
|
return x.Data |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmBranchRequest) GetBusiPayload() []byte { |
||||
|
if x != nil { |
||||
|
return x.BusiPayload |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
type DtmProgressesReply struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Transaction *DtmTransaction `protobuf:"bytes,1,opt,name=Transaction,proto3" json:"Transaction,omitempty"` |
||||
|
Progresses []*DtmProgress `protobuf:"bytes,2,rep,name=Progresses,proto3" json:"Progresses,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgressesReply) Reset() { |
||||
|
*x = DtmProgressesReply{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgressesReply) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmProgressesReply) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmProgressesReply) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmProgressesReply.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmProgressesReply) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{4} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgressesReply) GetTransaction() *DtmTransaction { |
||||
|
if x != nil { |
||||
|
return x.Transaction |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgressesReply) GetProgresses() []*DtmProgress { |
||||
|
if x != nil { |
||||
|
return x.Progresses |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
type DtmTransaction struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
||||
|
Status string `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"` |
||||
|
RollbackReason string `protobuf:"bytes,3,opt,name=RollbackReason,proto3" json:"RollbackReason,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransaction) Reset() { |
||||
|
*x = DtmTransaction{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransaction) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmTransaction) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmTransaction) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmTransaction.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmTransaction) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{5} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransaction) GetGid() string { |
||||
|
if x != nil { |
||||
|
return x.Gid |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransaction) GetStatus() string { |
||||
|
if x != nil { |
||||
|
return x.Status |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmTransaction) GetRollbackReason() string { |
||||
|
if x != nil { |
||||
|
return x.RollbackReason |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
type DtmProgress struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"` |
||||
|
BinData []byte `protobuf:"bytes,2,opt,name=BinData,proto3" json:"BinData,omitempty"` |
||||
|
BranchID string `protobuf:"bytes,3,opt,name=BranchID,proto3" json:"BranchID,omitempty"` |
||||
|
Op string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) Reset() { |
||||
|
*x = DtmProgress{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[6] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*DtmProgress) ProtoMessage() {} |
||||
|
|
||||
|
func (x *DtmProgress) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[6] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use DtmProgress.ProtoReflect.Descriptor instead.
|
||||
|
func (*DtmProgress) Descriptor() ([]byte, []int) { |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{6} |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) GetStatus() string { |
||||
|
if x != nil { |
||||
|
return x.Status |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) GetBinData() []byte { |
||||
|
if x != nil { |
||||
|
return x.BinData |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) GetBranchID() string { |
||||
|
if x != nil { |
||||
|
return x.BranchID |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
func (x *DtmProgress) GetOp() string { |
||||
|
if x != nil { |
||||
|
return x.Op |
||||
|
} |
||||
|
return "" |
||||
|
} |
||||
|
|
||||
|
var File_client_dtmgrpc_dtmgpb_dtmgimp_proto protoreflect.FileDescriptor |
||||
|
|
||||
|
var file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc = []byte{ |
||||
|
0x0a, 0x23, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x64, 0x74, 0x6d, 0x67, 0x72, 0x70, 0x63, |
||||
|
0x2f, 0x64, 0x74, 0x6d, 0x67, 0x70, 0x62, 0x2f, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, |
||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x1a, 0x1b, |
||||
|
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, |
||||
|
0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x02, 0x0a, 0x0f, |
||||
|
0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, |
||||
|
0x1e, 0x0a, 0x0a, 0x57, 0x61, 0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, |
||||
|
0x01, 0x28, 0x08, 0x52, 0x0a, 0x57, 0x61, 0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, |
||||
|
0x24, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x6f, 0x46, 0x61, 0x69, 0x6c, |
||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, |
||||
|
0x6f, 0x46, 0x61, 0x69, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, |
||||
|
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x52, 0x65, |
||||
|
0x74, 0x72, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x12, 0x50, |
||||
|
0x61, 0x73, 0x73, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, |
||||
|
0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x50, 0x61, 0x73, 0x73, 0x74, 0x68, 0x72, |
||||
|
0x6f, 0x75, 0x67, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x0d, 0x42, |
||||
|
0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, |
||||
|
0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, |
||||
|
0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x42, 0x72, 0x61, |
||||
|
0x6e, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, |
||||
|
0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x26, |
||||
|
0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, |
||||
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, |
||||
|
0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, 0x40, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, |
||||
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, |
||||
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, |
||||
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, |
||||
|
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa0, 0x03, 0x0a, 0x0a, 0x44, 0x74, 0x6d, |
||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, 0x64, 0x18, 0x01, |
||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x47, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x72, 0x61, |
||||
|
0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x54, 0x72, |
||||
|
0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, |
||||
|
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, |
||||
|
0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, |
||||
|
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, |
||||
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, |
||||
|
0x64, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x43, 0x75, 0x73, |
||||
|
0x74, 0x6f, 0x6d, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x69, 0x6e, |
||||
|
0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, |
||||
|
0x42, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x51, |
||||
|
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, |
||||
|
0x28, 0x09, 0x52, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, |
||||
|
0x64, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x65, 0x70, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, |
||||
|
0x52, 0x05, 0x53, 0x74, 0x65, 0x70, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x45, 0x78, |
||||
|
0x74, 0x72, 0x61, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x74, 0x6d, 0x67, |
||||
|
0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, |
||||
|
0x65, 0x71, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x52, 0x65, |
||||
|
0x71, 0x45, 0x78, 0x74, 0x72, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, |
||||
|
0x63, 0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, |
||||
|
0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x1a, 0x3b, |
||||
|
0x0a, 0x0d, 0x52, 0x65, 0x71, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
||||
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
||||
|
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, |
||||
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1f, 0x0a, 0x0b, 0x44, |
||||
|
0x74, 0x6d, 0x47, 0x69, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, |
||||
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x47, 0x69, 0x64, 0x22, 0x82, 0x02, 0x0a, |
||||
|
0x10, 0x44, 0x74, 0x6d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
||||
|
0x74, 0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, |
||||
|
0x47, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, |
||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, |
||||
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x18, 0x03, 0x20, |
||||
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x12, 0x0e, 0x0a, |
||||
|
0x02, 0x4f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x4f, 0x70, 0x12, 0x37, 0x0a, |
||||
|
0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x74, |
||||
|
0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, |
||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, |
||||
|
0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x50, 0x61, |
||||
|
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x42, 0x75, 0x73, |
||||
|
0x69, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, |
||||
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
||||
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
||||
|
0x01, 0x22, 0x85, 0x01, 0x0a, 0x12, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, |
||||
|
0x73, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x39, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, |
||||
|
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, |
||||
|
0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, |
||||
|
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, |
||||
|
0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x65, |
||||
|
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, |
||||
|
0x70, 0x2e, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0a, 0x50, |
||||
|
0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x0e, 0x44, 0x74, 0x6d, |
||||
|
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x47, |
||||
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x47, 0x69, 0x64, 0x12, 0x16, 0x0a, |
||||
|
0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, |
||||
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, |
||||
|
0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x52, |
||||
|
0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x6b, 0x0a, |
||||
|
0x0b, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, |
||||
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x74, |
||||
|
0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x18, |
||||
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x42, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, |
||||
|
0x0a, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, |
||||
|
0x52, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x70, |
||||
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x4f, 0x70, 0x32, 0xf8, 0x02, 0x0a, 0x03, 0x44, |
||||
|
0x74, 0x6d, 0x12, 0x38, 0x0a, 0x06, 0x4e, 0x65, 0x77, 0x47, 0x69, 0x64, 0x12, 0x16, 0x2e, 0x67, |
||||
|
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, |
||||
|
0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, |
||||
|
0x74, 0x6d, 0x47, 0x69, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, |
||||
|
0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, |
||||
|
0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, |
||||
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, |
||||
|
0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x07, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, |
||||
|
0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, |
||||
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, |
||||
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, |
||||
|
0x36, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, |
||||
|
0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, |
||||
|
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
||||
|
0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, |
||||
|
0x74, 0x65, 0x72, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x19, 0x2e, 0x64, 0x74, 0x6d, 0x67, |
||||
|
0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, |
||||
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
||||
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x45, |
||||
|
0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, |
||||
|
0x77, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, |
||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, |
||||
|
0x2e, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, |
||||
|
0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x64, 0x74, 0x6d, 0x67, 0x70, |
||||
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
|
} |
||||
|
|
||||
|
var ( |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescOnce sync.Once |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData = file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc |
||||
|
) |
||||
|
|
||||
|
func file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP() []byte { |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescOnce.Do(func() { |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData) |
||||
|
}) |
||||
|
return file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData |
||||
|
} |
||||
|
|
||||
|
var file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
||||
|
var file_client_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes = []interface{}{ |
||||
|
(*DtmTransOptions)(nil), // 0: dtmgimp.DtmTransOptions
|
||||
|
(*DtmRequest)(nil), // 1: dtmgimp.DtmRequest
|
||||
|
(*DtmGidReply)(nil), // 2: dtmgimp.DtmGidReply
|
||||
|
(*DtmBranchRequest)(nil), // 3: dtmgimp.DtmBranchRequest
|
||||
|
(*DtmProgressesReply)(nil), // 4: dtmgimp.DtmProgressesReply
|
||||
|
(*DtmTransaction)(nil), // 5: dtmgimp.DtmTransaction
|
||||
|
(*DtmProgress)(nil), // 6: dtmgimp.DtmProgress
|
||||
|
nil, // 7: dtmgimp.DtmTransOptions.BranchHeadersEntry
|
||||
|
nil, // 8: dtmgimp.DtmRequest.ReqExtraEntry
|
||||
|
nil, // 9: dtmgimp.DtmBranchRequest.DataEntry
|
||||
|
(*emptypb.Empty)(nil), // 10: google.protobuf.Empty
|
||||
|
} |
||||
|
var file_client_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs = []int32{ |
||||
|
7, // 0: dtmgimp.DtmTransOptions.BranchHeaders:type_name -> dtmgimp.DtmTransOptions.BranchHeadersEntry
|
||||
|
0, // 1: dtmgimp.DtmRequest.TransOptions:type_name -> dtmgimp.DtmTransOptions
|
||||
|
8, // 2: dtmgimp.DtmRequest.ReqExtra:type_name -> dtmgimp.DtmRequest.ReqExtraEntry
|
||||
|
9, // 3: dtmgimp.DtmBranchRequest.Data:type_name -> dtmgimp.DtmBranchRequest.DataEntry
|
||||
|
5, // 4: dtmgimp.DtmProgressesReply.Transaction:type_name -> dtmgimp.DtmTransaction
|
||||
|
6, // 5: dtmgimp.DtmProgressesReply.Progresses:type_name -> dtmgimp.DtmProgress
|
||||
|
10, // 6: dtmgimp.Dtm.NewGid:input_type -> google.protobuf.Empty
|
||||
|
1, // 7: dtmgimp.Dtm.Submit:input_type -> dtmgimp.DtmRequest
|
||||
|
1, // 8: dtmgimp.Dtm.Prepare:input_type -> dtmgimp.DtmRequest
|
||||
|
1, // 9: dtmgimp.Dtm.Abort:input_type -> dtmgimp.DtmRequest
|
||||
|
3, // 10: dtmgimp.Dtm.RegisterBranch:input_type -> dtmgimp.DtmBranchRequest
|
||||
|
1, // 11: dtmgimp.Dtm.PrepareWorkflow:input_type -> dtmgimp.DtmRequest
|
||||
|
2, // 12: dtmgimp.Dtm.NewGid:output_type -> dtmgimp.DtmGidReply
|
||||
|
10, // 13: dtmgimp.Dtm.Submit:output_type -> google.protobuf.Empty
|
||||
|
10, // 14: dtmgimp.Dtm.Prepare:output_type -> google.protobuf.Empty
|
||||
|
10, // 15: dtmgimp.Dtm.Abort:output_type -> google.protobuf.Empty
|
||||
|
10, // 16: dtmgimp.Dtm.RegisterBranch:output_type -> google.protobuf.Empty
|
||||
|
4, // 17: dtmgimp.Dtm.PrepareWorkflow:output_type -> dtmgimp.DtmProgressesReply
|
||||
|
12, // [12:18] is the sub-list for method output_type
|
||||
|
6, // [6:12] is the sub-list for method input_type
|
||||
|
6, // [6:6] is the sub-list for extension type_name
|
||||
|
6, // [6:6] is the sub-list for extension extendee
|
||||
|
0, // [0:6] is the sub-list for field type_name
|
||||
|
} |
||||
|
|
||||
|
func init() { file_client_dtmgrpc_dtmgpb_dtmgimp_proto_init() } |
||||
|
func file_client_dtmgrpc_dtmgpb_dtmgimp_proto_init() { |
||||
|
if File_client_dtmgrpc_dtmgpb_dtmgimp_proto != nil { |
||||
|
return |
||||
|
} |
||||
|
if !protoimpl.UnsafeEnabled { |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmTransOptions); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmRequest); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmGidReply); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmBranchRequest); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmProgressesReply); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmTransaction); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*DtmProgress); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
type x struct{} |
||||
|
out := protoimpl.TypeBuilder{ |
||||
|
File: protoimpl.DescBuilder{ |
||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
|
RawDescriptor: file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc, |
||||
|
NumEnums: 0, |
||||
|
NumMessages: 10, |
||||
|
NumExtensions: 0, |
||||
|
NumServices: 1, |
||||
|
}, |
||||
|
GoTypes: file_client_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes, |
||||
|
DependencyIndexes: file_client_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs, |
||||
|
MessageInfos: file_client_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes, |
||||
|
}.Build() |
||||
|
File_client_dtmgrpc_dtmgpb_dtmgimp_proto = out.File |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc = nil |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes = nil |
||||
|
file_client_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs = nil |
||||
|
} |
||||
@ -0,0 +1,152 @@ |
|||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
|
// versions:
|
||||
|
// protoc-gen-go v1.28.0
|
||||
|
// protoc v3.17.3
|
||||
|
// source: workflow/wfpb/wf.proto
|
||||
|
|
||||
|
package wfpb |
||||
|
|
||||
|
import ( |
||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb" |
||||
|
reflect "reflect" |
||||
|
sync "sync" |
||||
|
) |
||||
|
|
||||
|
const ( |
||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
|
) |
||||
|
|
||||
|
type WorkflowData struct { |
||||
|
state protoimpl.MessageState |
||||
|
sizeCache protoimpl.SizeCache |
||||
|
unknownFields protoimpl.UnknownFields |
||||
|
|
||||
|
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` |
||||
|
} |
||||
|
|
||||
|
func (x *WorkflowData) Reset() { |
||||
|
*x = WorkflowData{} |
||||
|
if protoimpl.UnsafeEnabled { |
||||
|
mi := &file_workflow_wfpb_wf_proto_msgTypes[0] |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
func (x *WorkflowData) String() string { |
||||
|
return protoimpl.X.MessageStringOf(x) |
||||
|
} |
||||
|
|
||||
|
func (*WorkflowData) ProtoMessage() {} |
||||
|
|
||||
|
func (x *WorkflowData) ProtoReflect() protoreflect.Message { |
||||
|
mi := &file_workflow_wfpb_wf_proto_msgTypes[0] |
||||
|
if protoimpl.UnsafeEnabled && x != nil { |
||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
|
if ms.LoadMessageInfo() == nil { |
||||
|
ms.StoreMessageInfo(mi) |
||||
|
} |
||||
|
return ms |
||||
|
} |
||||
|
return mi.MessageOf(x) |
||||
|
} |
||||
|
|
||||
|
// Deprecated: Use WorkflowData.ProtoReflect.Descriptor instead.
|
||||
|
func (*WorkflowData) Descriptor() ([]byte, []int) { |
||||
|
return file_workflow_wfpb_wf_proto_rawDescGZIP(), []int{0} |
||||
|
} |
||||
|
|
||||
|
func (x *WorkflowData) GetData() []byte { |
||||
|
if x != nil { |
||||
|
return x.Data |
||||
|
} |
||||
|
return nil |
||||
|
} |
||||
|
|
||||
|
var File_workflow_wfpb_wf_proto protoreflect.FileDescriptor |
||||
|
|
||||
|
var file_workflow_wfpb_wf_proto_rawDesc = []byte{ |
||||
|
0x0a, 0x16, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x77, 0x66, 0x70, 0x62, 0x2f, |
||||
|
0x77, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, |
||||
|
0x6f, 0x77, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
||||
|
0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
||||
|
0x22, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, |
||||
|
0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, |
||||
|
0x61, 0x74, 0x61, 0x32, 0x47, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, |
||||
|
0x3b, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x6f, 0x72, |
||||
|
0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x61, |
||||
|
0x74, 0x61, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
||||
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x08, 0x5a, 0x06, |
||||
|
0x2e, 0x2f, 0x77, 0x66, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
|
} |
||||
|
|
||||
|
var ( |
||||
|
file_workflow_wfpb_wf_proto_rawDescOnce sync.Once |
||||
|
file_workflow_wfpb_wf_proto_rawDescData = file_workflow_wfpb_wf_proto_rawDesc |
||||
|
) |
||||
|
|
||||
|
func file_workflow_wfpb_wf_proto_rawDescGZIP() []byte { |
||||
|
file_workflow_wfpb_wf_proto_rawDescOnce.Do(func() { |
||||
|
file_workflow_wfpb_wf_proto_rawDescData = protoimpl.X.CompressGZIP(file_workflow_wfpb_wf_proto_rawDescData) |
||||
|
}) |
||||
|
return file_workflow_wfpb_wf_proto_rawDescData |
||||
|
} |
||||
|
|
||||
|
var file_workflow_wfpb_wf_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
||||
|
var file_workflow_wfpb_wf_proto_goTypes = []interface{}{ |
||||
|
(*WorkflowData)(nil), // 0: workflow.WorkflowData
|
||||
|
(*emptypb.Empty)(nil), // 1: google.protobuf.Empty
|
||||
|
} |
||||
|
var file_workflow_wfpb_wf_proto_depIdxs = []int32{ |
||||
|
0, // 0: workflow.Workflow.Execute:input_type -> workflow.WorkflowData
|
||||
|
1, // 1: workflow.Workflow.Execute:output_type -> google.protobuf.Empty
|
||||
|
1, // [1:2] is the sub-list for method output_type
|
||||
|
0, // [0:1] is the sub-list for method input_type
|
||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||
|
0, // [0:0] is the sub-list for field type_name
|
||||
|
} |
||||
|
|
||||
|
func init() { file_workflow_wfpb_wf_proto_init() } |
||||
|
func file_workflow_wfpb_wf_proto_init() { |
||||
|
if File_workflow_wfpb_wf_proto != nil { |
||||
|
return |
||||
|
} |
||||
|
if !protoimpl.UnsafeEnabled { |
||||
|
file_workflow_wfpb_wf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
|
switch v := v.(*WorkflowData); i { |
||||
|
case 0: |
||||
|
return &v.state |
||||
|
case 1: |
||||
|
return &v.sizeCache |
||||
|
case 2: |
||||
|
return &v.unknownFields |
||||
|
default: |
||||
|
return nil |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
type x struct{} |
||||
|
out := protoimpl.TypeBuilder{ |
||||
|
File: protoimpl.DescBuilder{ |
||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
|
RawDescriptor: file_workflow_wfpb_wf_proto_rawDesc, |
||||
|
NumEnums: 0, |
||||
|
NumMessages: 1, |
||||
|
NumExtensions: 0, |
||||
|
NumServices: 1, |
||||
|
}, |
||||
|
GoTypes: file_workflow_wfpb_wf_proto_goTypes, |
||||
|
DependencyIndexes: file_workflow_wfpb_wf_proto_depIdxs, |
||||
|
MessageInfos: file_workflow_wfpb_wf_proto_msgTypes, |
||||
|
}.Build() |
||||
|
File_workflow_wfpb_wf_proto = out.File |
||||
|
file_workflow_wfpb_wf_proto_rawDesc = nil |
||||
|
file_workflow_wfpb_wf_proto_goTypes = nil |
||||
|
file_workflow_wfpb_wf_proto_depIdxs = nil |
||||
|
} |
||||
@ -1,62 +0,0 @@ |
|||||
package dtmcli |
|
||||
|
|
||||
import ( |
|
||||
"errors" |
|
||||
"fmt" |
|
||||
"net/http" |
|
||||
|
|
||||
"github.com/dtm-labs/dtm/dtmcli/dtmimp" |
|
||||
"github.com/go-resty/resty/v2" |
|
||||
) |
|
||||
|
|
||||
// MustGenGid generate a new gid
|
|
||||
func MustGenGid(server string) string { |
|
||||
res := map[string]string{} |
|
||||
resp, err := dtmimp.RestyClient.R().SetResult(&res).Get(server + "/newGid") |
|
||||
if err != nil || res["gid"] == "" { |
|
||||
panic(fmt.Errorf("newGid error: %v, resp: %s", err, resp)) |
|
||||
} |
|
||||
return res["gid"] |
|
||||
} |
|
||||
|
|
||||
// String2DtmError translate string to dtm error
|
|
||||
func String2DtmError(str string) error { |
|
||||
return map[string]error{ |
|
||||
ResultFailure: ErrFailure, |
|
||||
ResultOngoing: ErrOngoing, |
|
||||
ResultSuccess: nil, |
|
||||
"": nil, |
|
||||
}[str] |
|
||||
} |
|
||||
|
|
||||
// Result2HttpJSON return the http code and json result
|
|
||||
// if result is error, the return proper code, else return StatusOK
|
|
||||
func Result2HttpJSON(result interface{}) (code int, res interface{}) { |
|
||||
err, _ := result.(error) |
|
||||
if err == nil { |
|
||||
code = http.StatusOK |
|
||||
res = result |
|
||||
} else { |
|
||||
res = map[string]string{ |
|
||||
"error": err.Error(), |
|
||||
} |
|
||||
if errors.Is(err, ErrFailure) { |
|
||||
code = http.StatusConflict |
|
||||
} else if errors.Is(err, ErrOngoing) { |
|
||||
code = http.StatusTooEarly |
|
||||
} else if err != nil { |
|
||||
code = http.StatusInternalServerError |
|
||||
} |
|
||||
} |
|
||||
return |
|
||||
} |
|
||||
|
|
||||
// IsRollback returns whether the result is indicating rollback
|
|
||||
func IsRollback(resp *resty.Response, err error) bool { |
|
||||
return err == ErrFailure || dtmimp.RespAsErrorCompatible(resp) == ErrFailure |
|
||||
} |
|
||||
|
|
||||
// IsOngoing returns whether the result is indicating ongoing
|
|
||||
func IsOngoing(resp *resty.Response, err error) bool { |
|
||||
return err == ErrOngoing || dtmimp.RespAsErrorCompatible(resp) == ErrOngoing |
|
||||
} |
|
||||
@ -1,736 +0,0 @@ |
|||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||
// versions:
|
|
||||
// protoc-gen-go v1.28.0
|
|
||||
// protoc v3.17.3
|
|
||||
// source: dtmgrpc/dtmgpb/dtmgimp.proto
|
|
||||
|
|
||||
package dtmgpb |
|
||||
|
|
||||
import ( |
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb" |
|
||||
reflect "reflect" |
|
||||
sync "sync" |
|
||||
) |
|
||||
|
|
||||
const ( |
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|
||||
) |
|
||||
|
|
||||
type DtmTransOptions struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
WaitResult bool `protobuf:"varint,1,opt,name=WaitResult,proto3" json:"WaitResult,omitempty"` |
|
||||
TimeoutToFail int64 `protobuf:"varint,2,opt,name=TimeoutToFail,proto3" json:"TimeoutToFail,omitempty"` |
|
||||
RetryInterval int64 `protobuf:"varint,3,opt,name=RetryInterval,proto3" json:"RetryInterval,omitempty"` |
|
||||
PassthroughHeaders []string `protobuf:"bytes,4,rep,name=PassthroughHeaders,proto3" json:"PassthroughHeaders,omitempty"` |
|
||||
BranchHeaders map[string]string `protobuf:"bytes,5,rep,name=BranchHeaders,proto3" json:"BranchHeaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
|
||||
RequestTimeout int64 `protobuf:"varint,6,opt,name=RequestTimeout,proto3" json:"RequestTimeout,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) Reset() { |
|
||||
*x = DtmTransOptions{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmTransOptions) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmTransOptions) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmTransOptions.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmTransOptions) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{0} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetWaitResult() bool { |
|
||||
if x != nil { |
|
||||
return x.WaitResult |
|
||||
} |
|
||||
return false |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetTimeoutToFail() int64 { |
|
||||
if x != nil { |
|
||||
return x.TimeoutToFail |
|
||||
} |
|
||||
return 0 |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetRetryInterval() int64 { |
|
||||
if x != nil { |
|
||||
return x.RetryInterval |
|
||||
} |
|
||||
return 0 |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetPassthroughHeaders() []string { |
|
||||
if x != nil { |
|
||||
return x.PassthroughHeaders |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetBranchHeaders() map[string]string { |
|
||||
if x != nil { |
|
||||
return x.BranchHeaders |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmTransOptions) GetRequestTimeout() int64 { |
|
||||
if x != nil { |
|
||||
return x.RequestTimeout |
|
||||
} |
|
||||
return 0 |
|
||||
} |
|
||||
|
|
||||
// DtmRequest request sent to dtm server
|
|
||||
type DtmRequest struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
|
||||
TransType string `protobuf:"bytes,2,opt,name=TransType,proto3" json:"TransType,omitempty"` |
|
||||
TransOptions *DtmTransOptions `protobuf:"bytes,3,opt,name=TransOptions,proto3" json:"TransOptions,omitempty"` |
|
||||
CustomedData string `protobuf:"bytes,4,opt,name=CustomedData,proto3" json:"CustomedData,omitempty"` |
|
||||
BinPayloads [][]byte `protobuf:"bytes,5,rep,name=BinPayloads,proto3" json:"BinPayloads,omitempty"` // for Msg/Saga/Workflow branch payloads
|
|
||||
QueryPrepared string `protobuf:"bytes,6,opt,name=QueryPrepared,proto3" json:"QueryPrepared,omitempty"` // for Msg
|
|
||||
Steps string `protobuf:"bytes,7,opt,name=Steps,proto3" json:"Steps,omitempty"` |
|
||||
ReqExtra map[string]string `protobuf:"bytes,8,rep,name=ReqExtra,proto3" json:"ReqExtra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
|
||||
RollbackReason string `protobuf:"bytes,9,opt,name=RollbackReason,proto3" json:"RollbackReason,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) Reset() { |
|
||||
*x = DtmRequest{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmRequest) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmRequest) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmRequest.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmRequest) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{1} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetGid() string { |
|
||||
if x != nil { |
|
||||
return x.Gid |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetTransType() string { |
|
||||
if x != nil { |
|
||||
return x.TransType |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetTransOptions() *DtmTransOptions { |
|
||||
if x != nil { |
|
||||
return x.TransOptions |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetCustomedData() string { |
|
||||
if x != nil { |
|
||||
return x.CustomedData |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetBinPayloads() [][]byte { |
|
||||
if x != nil { |
|
||||
return x.BinPayloads |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetQueryPrepared() string { |
|
||||
if x != nil { |
|
||||
return x.QueryPrepared |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetSteps() string { |
|
||||
if x != nil { |
|
||||
return x.Steps |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetReqExtra() map[string]string { |
|
||||
if x != nil { |
|
||||
return x.ReqExtra |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmRequest) GetRollbackReason() string { |
|
||||
if x != nil { |
|
||||
return x.RollbackReason |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
type DtmGidReply struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmGidReply) Reset() { |
|
||||
*x = DtmGidReply{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmGidReply) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmGidReply) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmGidReply) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmGidReply.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmGidReply) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{2} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmGidReply) GetGid() string { |
|
||||
if x != nil { |
|
||||
return x.Gid |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
type DtmBranchRequest struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Gid string `protobuf:"bytes,1,opt,name=Gid,proto3" json:"Gid,omitempty"` |
|
||||
TransType string `protobuf:"bytes,2,opt,name=TransType,proto3" json:"TransType,omitempty"` |
|
||||
BranchID string `protobuf:"bytes,3,opt,name=BranchID,proto3" json:"BranchID,omitempty"` |
|
||||
Op string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"` |
|
||||
Data map[string]string `protobuf:"bytes,5,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
|
||||
BusiPayload []byte `protobuf:"bytes,6,opt,name=BusiPayload,proto3" json:"BusiPayload,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) Reset() { |
|
||||
*x = DtmBranchRequest{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmBranchRequest) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmBranchRequest) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmBranchRequest.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmBranchRequest) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{3} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetGid() string { |
|
||||
if x != nil { |
|
||||
return x.Gid |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetTransType() string { |
|
||||
if x != nil { |
|
||||
return x.TransType |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetBranchID() string { |
|
||||
if x != nil { |
|
||||
return x.BranchID |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetOp() string { |
|
||||
if x != nil { |
|
||||
return x.Op |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetData() map[string]string { |
|
||||
if x != nil { |
|
||||
return x.Data |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmBranchRequest) GetBusiPayload() []byte { |
|
||||
if x != nil { |
|
||||
return x.BusiPayload |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
type DtmProgressesReply struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Progresses []*DtmProgress `protobuf:"bytes,1,rep,name=Progresses,proto3" json:"Progresses,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgressesReply) Reset() { |
|
||||
*x = DtmProgressesReply{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgressesReply) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmProgressesReply) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmProgressesReply) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmProgressesReply.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmProgressesReply) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{4} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgressesReply) GetProgresses() []*DtmProgress { |
|
||||
if x != nil { |
|
||||
return x.Progresses |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
type DtmProgress struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"` |
|
||||
BinData []byte `protobuf:"bytes,2,opt,name=BinData,proto3" json:"BinData,omitempty"` |
|
||||
BranchID string `protobuf:"bytes,3,opt,name=BranchID,proto3" json:"BranchID,omitempty"` |
|
||||
Op string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) Reset() { |
|
||||
*x = DtmProgress{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*DtmProgress) ProtoMessage() {} |
|
||||
|
|
||||
func (x *DtmProgress) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use DtmProgress.ProtoReflect.Descriptor instead.
|
|
||||
func (*DtmProgress) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP(), []int{5} |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) GetStatus() string { |
|
||||
if x != nil { |
|
||||
return x.Status |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) GetBinData() []byte { |
|
||||
if x != nil { |
|
||||
return x.BinData |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) GetBranchID() string { |
|
||||
if x != nil { |
|
||||
return x.BranchID |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
func (x *DtmProgress) GetOp() string { |
|
||||
if x != nil { |
|
||||
return x.Op |
|
||||
} |
|
||||
return "" |
|
||||
} |
|
||||
|
|
||||
var File_dtmgrpc_dtmgpb_dtmgimp_proto protoreflect.FileDescriptor |
|
||||
|
|
||||
var file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc = []byte{ |
|
||||
0x0a, 0x1c, 0x64, 0x74, 0x6d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x74, 0x6d, 0x67, 0x70, 0x62, |
|
||||
0x2f, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, |
|
||||
0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, |
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x02, 0x0a, 0x0f, 0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, |
|
||||
0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x57, 0x61, 0x69, 0x74, |
|
||||
0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x57, 0x61, |
|
||||
0x69, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, |
|
||||
0x6f, 0x75, 0x74, 0x54, 0x6f, 0x46, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, |
|
||||
0x0d, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x6f, 0x46, 0x61, 0x69, 0x6c, 0x12, 0x24, |
|
||||
0x0a, 0x0d, 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, |
|
||||
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x74, 0x65, |
|
||||
0x72, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x12, 0x50, 0x61, 0x73, 0x73, 0x74, 0x68, 0x72, 0x6f, |
|
||||
0x75, 0x67, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, |
|
||||
0x52, 0x12, 0x50, 0x61, 0x73, 0x73, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x48, 0x65, 0x61, |
|
||||
0x64, 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x65, |
|
||||
0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x74, |
|
||||
0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, |
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, |
|
||||
0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, |
|
||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, |
|
||||
0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, |
|
||||
0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, |
|
||||
0x40, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, |
|
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
|
||||
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
|
||||
0x01, 0x22, 0xa0, 0x03, 0x0a, 0x0a, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
|
||||
0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x47, |
|
||||
0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, |
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, |
|
||||
0x12, 0x3c, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, |
|
||||
0x2e, 0x44, 0x74, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
|
||||
0x52, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, |
|
||||
0x0a, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, |
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x64, 0x44, 0x61, |
|
||||
0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, |
|
||||
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, 0x42, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6c, |
|
||||
0x6f, 0x61, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, |
|
||||
0x70, 0x61, 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x51, 0x75, 0x65, |
|
||||
0x72, 0x79, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, |
|
||||
0x65, 0x70, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x53, 0x74, 0x65, 0x70, 0x73, |
|
||||
0x12, 0x3d, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x45, 0x78, 0x74, 0x72, 0x61, 0x18, 0x08, 0x20, 0x03, |
|
||||
0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, |
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x45, 0x78, 0x74, 0x72, 0x61, |
|
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x52, 0x65, 0x71, 0x45, 0x78, 0x74, 0x72, 0x61, 0x12, |
|
||||
0x26, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, |
|
||||
0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, |
|
||||
0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x1a, 0x3b, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x45, 0x78, |
|
||||
0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, |
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, |
|
||||
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0x1f, 0x0a, 0x0b, 0x44, 0x74, 0x6d, 0x47, 0x69, 0x64, 0x52, 0x65, |
|
||||
0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
|
||||
0x52, 0x03, 0x47, 0x69, 0x64, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x44, 0x74, 0x6d, 0x42, 0x72, 0x61, |
|
||||
0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x47, 0x69, |
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x47, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, |
|
||||
0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
|
||||
0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x72, |
|
||||
0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x42, 0x72, |
|
||||
0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x70, 0x18, 0x04, 0x20, 0x01, |
|
||||
0x28, 0x09, 0x52, 0x02, 0x4f, 0x70, 0x12, 0x37, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x05, |
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, |
|
||||
0x74, 0x6d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, |
|
||||
0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, |
|
||||
0x20, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, |
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, |
|
||||
0x64, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
|
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x12, 0x44, 0x74, |
|
||||
0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, |
|
||||
0x12, 0x34, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, |
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, |
|
||||
0x74, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0a, 0x50, 0x72, 0x6f, 0x67, |
|
||||
0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x0b, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, |
|
||||
0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, |
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, |
|
||||
0x07, 0x42, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, |
|
||||
0x42, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, |
|
||||
0x68, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x42, 0x72, 0x61, 0x6e, 0x63, |
|
||||
0x68, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, |
|
||||
0x02, 0x4f, 0x70, 0x32, 0xf8, 0x02, 0x0a, 0x03, 0x44, 0x74, 0x6d, 0x12, 0x38, 0x0a, 0x06, 0x4e, |
|
||||
0x65, 0x77, 0x47, 0x69, 0x64, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, |
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, |
|
||||
0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x47, 0x69, 0x64, 0x52, 0x65, |
|
||||
0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, |
|
||||
0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, |
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x38, |
|
||||
0x0a, 0x07, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, |
|
||||
0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, |
|
||||
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
|
||||
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x72, |
|
||||
0x74, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, |
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, |
|
||||
0x12, 0x45, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x42, 0x72, 0x61, 0x6e, |
|
||||
0x63, 0x68, 0x12, 0x19, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, |
|
||||
0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, |
|
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
|
||||
0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, |
|
||||
0x72, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6d, |
|
||||
0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, |
|
||||
0x1b, 0x2e, 0x64, 0x74, 0x6d, 0x67, 0x69, 0x6d, 0x70, 0x2e, 0x44, 0x74, 0x6d, 0x50, 0x72, 0x6f, |
|
||||
0x67, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x0a, |
|
||||
0x5a, 0x08, 0x2e, 0x2f, 0x64, 0x74, 0x6d, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
|
||||
0x6f, 0x33, |
|
||||
} |
|
||||
|
|
||||
var ( |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescOnce sync.Once |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData = file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc |
|
||||
) |
|
||||
|
|
||||
func file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescGZIP() []byte { |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescOnce.Do(func() { |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData = protoimpl.X.CompressGZIP(file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData) |
|
||||
}) |
|
||||
return file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDescData |
|
||||
} |
|
||||
|
|
||||
var file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes = make([]protoimpl.MessageInfo, 9) |
|
||||
var file_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes = []interface{}{ |
|
||||
(*DtmTransOptions)(nil), // 0: dtmgimp.DtmTransOptions
|
|
||||
(*DtmRequest)(nil), // 1: dtmgimp.DtmRequest
|
|
||||
(*DtmGidReply)(nil), // 2: dtmgimp.DtmGidReply
|
|
||||
(*DtmBranchRequest)(nil), // 3: dtmgimp.DtmBranchRequest
|
|
||||
(*DtmProgressesReply)(nil), // 4: dtmgimp.DtmProgressesReply
|
|
||||
(*DtmProgress)(nil), // 5: dtmgimp.DtmProgress
|
|
||||
nil, // 6: dtmgimp.DtmTransOptions.BranchHeadersEntry
|
|
||||
nil, // 7: dtmgimp.DtmRequest.ReqExtraEntry
|
|
||||
nil, // 8: dtmgimp.DtmBranchRequest.DataEntry
|
|
||||
(*emptypb.Empty)(nil), // 9: google.protobuf.Empty
|
|
||||
} |
|
||||
var file_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs = []int32{ |
|
||||
6, // 0: dtmgimp.DtmTransOptions.BranchHeaders:type_name -> dtmgimp.DtmTransOptions.BranchHeadersEntry
|
|
||||
0, // 1: dtmgimp.DtmRequest.TransOptions:type_name -> dtmgimp.DtmTransOptions
|
|
||||
7, // 2: dtmgimp.DtmRequest.ReqExtra:type_name -> dtmgimp.DtmRequest.ReqExtraEntry
|
|
||||
8, // 3: dtmgimp.DtmBranchRequest.Data:type_name -> dtmgimp.DtmBranchRequest.DataEntry
|
|
||||
5, // 4: dtmgimp.DtmProgressesReply.Progresses:type_name -> dtmgimp.DtmProgress
|
|
||||
9, // 5: dtmgimp.Dtm.NewGid:input_type -> google.protobuf.Empty
|
|
||||
1, // 6: dtmgimp.Dtm.Submit:input_type -> dtmgimp.DtmRequest
|
|
||||
1, // 7: dtmgimp.Dtm.Prepare:input_type -> dtmgimp.DtmRequest
|
|
||||
1, // 8: dtmgimp.Dtm.Abort:input_type -> dtmgimp.DtmRequest
|
|
||||
3, // 9: dtmgimp.Dtm.RegisterBranch:input_type -> dtmgimp.DtmBranchRequest
|
|
||||
1, // 10: dtmgimp.Dtm.PrepareWorkflow:input_type -> dtmgimp.DtmRequest
|
|
||||
2, // 11: dtmgimp.Dtm.NewGid:output_type -> dtmgimp.DtmGidReply
|
|
||||
9, // 12: dtmgimp.Dtm.Submit:output_type -> google.protobuf.Empty
|
|
||||
9, // 13: dtmgimp.Dtm.Prepare:output_type -> google.protobuf.Empty
|
|
||||
9, // 14: dtmgimp.Dtm.Abort:output_type -> google.protobuf.Empty
|
|
||||
9, // 15: dtmgimp.Dtm.RegisterBranch:output_type -> google.protobuf.Empty
|
|
||||
4, // 16: dtmgimp.Dtm.PrepareWorkflow:output_type -> dtmgimp.DtmProgressesReply
|
|
||||
11, // [11:17] is the sub-list for method output_type
|
|
||||
5, // [5:11] is the sub-list for method input_type
|
|
||||
5, // [5:5] is the sub-list for extension type_name
|
|
||||
5, // [5:5] is the sub-list for extension extendee
|
|
||||
0, // [0:5] is the sub-list for field type_name
|
|
||||
} |
|
||||
|
|
||||
func init() { file_dtmgrpc_dtmgpb_dtmgimp_proto_init() } |
|
||||
func file_dtmgrpc_dtmgpb_dtmgimp_proto_init() { |
|
||||
if File_dtmgrpc_dtmgpb_dtmgimp_proto != nil { |
|
||||
return |
|
||||
} |
|
||||
if !protoimpl.UnsafeEnabled { |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmTransOptions); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmRequest); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmGidReply); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmBranchRequest); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmProgressesReply); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*DtmProgress); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
type x struct{} |
|
||||
out := protoimpl.TypeBuilder{ |
|
||||
File: protoimpl.DescBuilder{ |
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
||||
RawDescriptor: file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc, |
|
||||
NumEnums: 0, |
|
||||
NumMessages: 9, |
|
||||
NumExtensions: 0, |
|
||||
NumServices: 1, |
|
||||
}, |
|
||||
GoTypes: file_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes, |
|
||||
DependencyIndexes: file_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs, |
|
||||
MessageInfos: file_dtmgrpc_dtmgpb_dtmgimp_proto_msgTypes, |
|
||||
}.Build() |
|
||||
File_dtmgrpc_dtmgpb_dtmgimp_proto = out.File |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_rawDesc = nil |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_goTypes = nil |
|
||||
file_dtmgrpc_dtmgpb_dtmgimp_proto_depIdxs = nil |
|
||||
} |
|
||||
@ -1,153 +0,0 @@ |
|||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||
// versions:
|
|
||||
// protoc-gen-go v1.28.0
|
|
||||
// protoc v3.17.3
|
|
||||
// source: dtmgrpc/workflow/wfpb/wf.proto
|
|
||||
|
|
||||
package wfpb |
|
||||
|
|
||||
import ( |
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb" |
|
||||
reflect "reflect" |
|
||||
sync "sync" |
|
||||
) |
|
||||
|
|
||||
const ( |
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|
||||
) |
|
||||
|
|
||||
type WorkflowData struct { |
|
||||
state protoimpl.MessageState |
|
||||
sizeCache protoimpl.SizeCache |
|
||||
unknownFields protoimpl.UnknownFields |
|
||||
|
|
||||
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` |
|
||||
} |
|
||||
|
|
||||
func (x *WorkflowData) Reset() { |
|
||||
*x = WorkflowData{} |
|
||||
if protoimpl.UnsafeEnabled { |
|
||||
mi := &file_dtmgrpc_workflow_wfpb_wf_proto_msgTypes[0] |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
func (x *WorkflowData) String() string { |
|
||||
return protoimpl.X.MessageStringOf(x) |
|
||||
} |
|
||||
|
|
||||
func (*WorkflowData) ProtoMessage() {} |
|
||||
|
|
||||
func (x *WorkflowData) ProtoReflect() protoreflect.Message { |
|
||||
mi := &file_dtmgrpc_workflow_wfpb_wf_proto_msgTypes[0] |
|
||||
if protoimpl.UnsafeEnabled && x != nil { |
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
||||
if ms.LoadMessageInfo() == nil { |
|
||||
ms.StoreMessageInfo(mi) |
|
||||
} |
|
||||
return ms |
|
||||
} |
|
||||
return mi.MessageOf(x) |
|
||||
} |
|
||||
|
|
||||
// Deprecated: Use WorkflowData.ProtoReflect.Descriptor instead.
|
|
||||
func (*WorkflowData) Descriptor() ([]byte, []int) { |
|
||||
return file_dtmgrpc_workflow_wfpb_wf_proto_rawDescGZIP(), []int{0} |
|
||||
} |
|
||||
|
|
||||
func (x *WorkflowData) GetData() []byte { |
|
||||
if x != nil { |
|
||||
return x.Data |
|
||||
} |
|
||||
return nil |
|
||||
} |
|
||||
|
|
||||
var File_dtmgrpc_workflow_wfpb_wf_proto protoreflect.FileDescriptor |
|
||||
|
|
||||
var file_dtmgrpc_workflow_wfpb_wf_proto_rawDesc = []byte{ |
|
||||
0x0a, 0x1e, 0x64, 0x74, 0x6d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, |
|
||||
0x6f, 0x77, 0x2f, 0x77, 0x66, 0x70, 0x62, 0x2f, 0x77, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
||||
0x12, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, |
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, |
|
||||
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, |
|
||||
0x6c, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, |
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x32, 0x47, 0x0a, 0x08, 0x57, |
|
||||
0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, |
|
||||
0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, |
|
||||
0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, |
|
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, |
|
||||
0x74, 0x79, 0x22, 0x00, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x77, 0x66, 0x70, 0x62, 0x62, 0x06, |
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
||||
} |
|
||||
|
|
||||
var ( |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_rawDescOnce sync.Once |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_rawDescData = file_dtmgrpc_workflow_wfpb_wf_proto_rawDesc |
|
||||
) |
|
||||
|
|
||||
func file_dtmgrpc_workflow_wfpb_wf_proto_rawDescGZIP() []byte { |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_rawDescOnce.Do(func() { |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_rawDescData = protoimpl.X.CompressGZIP(file_dtmgrpc_workflow_wfpb_wf_proto_rawDescData) |
|
||||
}) |
|
||||
return file_dtmgrpc_workflow_wfpb_wf_proto_rawDescData |
|
||||
} |
|
||||
|
|
||||
var file_dtmgrpc_workflow_wfpb_wf_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
|
||||
var file_dtmgrpc_workflow_wfpb_wf_proto_goTypes = []interface{}{ |
|
||||
(*WorkflowData)(nil), // 0: workflow.WorkflowData
|
|
||||
(*emptypb.Empty)(nil), // 1: google.protobuf.Empty
|
|
||||
} |
|
||||
var file_dtmgrpc_workflow_wfpb_wf_proto_depIdxs = []int32{ |
|
||||
0, // 0: workflow.Workflow.Execute:input_type -> workflow.WorkflowData
|
|
||||
1, // 1: workflow.Workflow.Execute:output_type -> google.protobuf.Empty
|
|
||||
1, // [1:2] is the sub-list for method output_type
|
|
||||
0, // [0:1] is the sub-list for method input_type
|
|
||||
0, // [0:0] is the sub-list for extension type_name
|
|
||||
0, // [0:0] is the sub-list for extension extendee
|
|
||||
0, // [0:0] is the sub-list for field type_name
|
|
||||
} |
|
||||
|
|
||||
func init() { file_dtmgrpc_workflow_wfpb_wf_proto_init() } |
|
||||
func file_dtmgrpc_workflow_wfpb_wf_proto_init() { |
|
||||
if File_dtmgrpc_workflow_wfpb_wf_proto != nil { |
|
||||
return |
|
||||
} |
|
||||
if !protoimpl.UnsafeEnabled { |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
|
||||
switch v := v.(*WorkflowData); i { |
|
||||
case 0: |
|
||||
return &v.state |
|
||||
case 1: |
|
||||
return &v.sizeCache |
|
||||
case 2: |
|
||||
return &v.unknownFields |
|
||||
default: |
|
||||
return nil |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
type x struct{} |
|
||||
out := protoimpl.TypeBuilder{ |
|
||||
File: protoimpl.DescBuilder{ |
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
||||
RawDescriptor: file_dtmgrpc_workflow_wfpb_wf_proto_rawDesc, |
|
||||
NumEnums: 0, |
|
||||
NumMessages: 1, |
|
||||
NumExtensions: 0, |
|
||||
NumServices: 1, |
|
||||
}, |
|
||||
GoTypes: file_dtmgrpc_workflow_wfpb_wf_proto_goTypes, |
|
||||
DependencyIndexes: file_dtmgrpc_workflow_wfpb_wf_proto_depIdxs, |
|
||||
MessageInfos: file_dtmgrpc_workflow_wfpb_wf_proto_msgTypes, |
|
||||
}.Build() |
|
||||
File_dtmgrpc_workflow_wfpb_wf_proto = out.File |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_rawDesc = nil |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_goTypes = nil |
|
||||
file_dtmgrpc_workflow_wfpb_wf_proto_depIdxs = nil |
|
||||
} |
|
||||
@ -0,0 +1,36 @@ |
|||||
|
#! /bin/bash |
||||
|
set -x |
||||
|
ver=$1 |
||||
|
if [ x$ver == x ]; then |
||||
|
echo please specify you version like vx.x.x; |
||||
|
exit 1; |
||||
|
fi |
||||
|
|
||||
|
if [ ${ver:0:1} != v ]; then |
||||
|
echo please specify you version like vx.x.x; |
||||
|
exit 1; |
||||
|
fi |
||||
|
|
||||
|
cd ../client |
||||
|
cp -rf ../dtm/client/* ./ |
||||
|
sed -i '' -e 's/dtm-labs\/dtm\//dtm-labs\//g' */*.go */*/*.go |
||||
|
|
||||
|
rm -rf */*_test.go */*/*_test.go */*log */*/*log |
||||
|
go mod tidy |
||||
|
go build || exit 1 |
||||
|
|
||||
|
git add . |
||||
|
git commit -m"update from dtm to version $ver" |
||||
|
git push |
||||
|
git tag $ver |
||||
|
git push --tags |
||||
|
|
||||
|
cd ../quick-start-sample |
||||
|
|
||||
|
go get -u github.com/dtm-labs/client@$ver |
||||
|
go mod tidy |
||||
|
go build || exit 1 |
||||
|
git add . |
||||
|
git commit -m"update from dtm to version $ver" |
||||
|
git push |
||||
|
|
||||
@ -1,57 +0,0 @@ |
|||||
#! /bin/bash |
|
||||
set -x |
|
||||
ver=$1 |
|
||||
if [ x$ver == x ]; then |
|
||||
echo please specify you version like vx.x.x; |
|
||||
exit 1; |
|
||||
fi |
|
||||
|
|
||||
if [ ${ver:0:1} != v ]; then |
|
||||
echo please specify you version like vx.x.x; |
|
||||
exit 1; |
|
||||
fi |
|
||||
|
|
||||
cd ../dtmcli |
|
||||
cp -rf ../dtm/dtmcli/* ./ |
|
||||
rm -f *_test.go logger/*.log |
|
||||
sed -i '' -e 's/dtm-labs\/dtm\//dtm-labs\//g' *.go */**.go |
|
||||
go mod tidy |
|
||||
go build || exit 1 |
|
||||
git add . |
|
||||
git commit -m"update from dtm to version $ver" |
|
||||
git push |
|
||||
git tag $ver |
|
||||
git push --tags |
|
||||
|
|
||||
cd ../dtmcli-go-sample |
|
||||
go get -u github.com/dtm-labs/dtmcli@$ver |
|
||||
go mod tidy |
|
||||
go build || exit 1 |
|
||||
git add . |
|
||||
git commit -m"update from dtm to version $ver" |
|
||||
git push |
|
||||
|
|
||||
|
|
||||
cd ../dtmgrpc |
|
||||
rm -rf *.go dtmgimp |
|
||||
cp -r ../dtm/dtmgrpc/* ./ |
|
||||
go get github.com/dtm-labs/dtmcli@$ver |
|
||||
sed -i '' -e 's/dtm-labs\/dtm\//dtm-labs\//g' *.go */**.go |
|
||||
rm -rf *_test.go |
|
||||
rm -rf workflow/*_test.go |
|
||||
go mod tidy |
|
||||
go build || exit 1 |
|
||||
git add . |
|
||||
git commit -m"update from dtm to version $ver" |
|
||||
git push |
|
||||
git tag $ver |
|
||||
git push --tags |
|
||||
|
|
||||
cd ../dtmgrpc-go-sample |
|
||||
go get github.com/dtm-labs/dtmcli@$ver |
|
||||
go get github.com/dtm-labs/dtmgrpc@$ver |
|
||||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative busi/*.proto || exit 1 |
|
||||
go build || exit 1 |
|
||||
git add . |
|
||||
git commit -m"update from dtm to version $ver" |
|
||||
git push |
|
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue