Browse Source

Merge pull request #58 from li-xiao-shuang/feature_add_license

[ISSUE #57] Feature add license
pull/61/head
yedf2 4 years ago
committed by GitHub
parent
commit
28003f97d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/main.go
  2. 6
      bench/http.go
  3. 6
      common/types.go
  4. 6
      common/types_test.go
  5. 6
      common/utils.go
  6. 6
      common/utils_test.go
  7. 6
      dtmcli/barrier.go
  8. 6
      dtmcli/consts.go
  9. 6
      dtmcli/dtmimp/consts.go
  10. 6
      dtmcli/dtmimp/db_special.go
  11. 6
      dtmcli/dtmimp/db_special_test.go
  12. 6
      dtmcli/dtmimp/trans_base.go
  13. 6
      dtmcli/dtmimp/trans_xa_base.go
  14. 6
      dtmcli/dtmimp/types.go
  15. 6
      dtmcli/dtmimp/types_test.go
  16. 6
      dtmcli/dtmimp/utils.go
  17. 6
      dtmcli/dtmimp/utils_test.go
  18. 6
      dtmcli/dtmimp/vars.go
  19. 6
      dtmcli/msg.go
  20. 6
      dtmcli/saga.go
  21. 6
      dtmcli/tcc.go
  22. 6
      dtmcli/trans_test.go
  23. 6
      dtmcli/types.go
  24. 6
      dtmcli/types_test.go
  25. 6
      dtmcli/xa.go
  26. 6
      dtmgrpc/barrier.go
  27. 6
      dtmgrpc/dtmgimp/dtmgimp.pb.go
  28. 6
      dtmgrpc/dtmgimp/dtmgimp_grpc.pb.go
  29. 6
      dtmgrpc/dtmgimp/grpc_clients.go
  30. 6
      dtmgrpc/dtmgimp/types.go
  31. 6
      dtmgrpc/dtmgimp/utils.go
  32. 6
      dtmgrpc/msg.go
  33. 6
      dtmgrpc/saga.go
  34. 6
      dtmgrpc/tcc.go
  35. 6
      dtmgrpc/type.go
  36. 6
      dtmgrpc/type_test.go
  37. 6
      dtmgrpc/xa.go
  38. 6
      dtmsvr/api.go
  39. 6
      dtmsvr/api_grpc.go
  40. 6
      dtmsvr/api_http.go
  41. 6
      dtmsvr/cron.go
  42. 6
      dtmsvr/dtmsvr.go
  43. 6
      dtmsvr/metrics.go
  44. 6
      dtmsvr/trans_class.go
  45. 6
      dtmsvr/trans_process.go
  46. 6
      dtmsvr/trans_status.go
  47. 6
      dtmsvr/trans_type_msg.go
  48. 6
      dtmsvr/trans_type_saga.go
  49. 6
      dtmsvr/trans_type_tcc.go
  50. 6
      dtmsvr/trans_type_xa.go
  51. 6
      dtmsvr/utils.go
  52. 6
      dtmsvr/utils_test.go
  53. 6
      examples/base_grpc.go
  54. 6
      examples/base_http.go
  55. 6
      examples/base_types.go
  56. 6
      examples/busi.pb.go
  57. 6
      examples/busi_grpc.pb.go
  58. 6
      examples/data.go
  59. 6
      examples/grpc_msg.go
  60. 6
      examples/grpc_saga.go
  61. 6
      examples/grpc_saga_barrier.go
  62. 6
      examples/grpc_tcc.go
  63. 6
      examples/grpc_xa.go
  64. 6
      examples/http_gorm_xa.go
  65. 6
      examples/http_msg.go
  66. 6
      examples/http_saga.go
  67. 6
      examples/http_saga_barrier.go
  68. 6
      examples/http_saga_gorm_barrier.go
  69. 6
      examples/http_tcc.go
  70. 6
      examples/http_tcc_barrier.go
  71. 6
      examples/http_xa.go
  72. 6
      examples/quick_start.go
  73. 1
      go.mod
  74. 7
      go.sum
  75. 6
      test/api_test.go
  76. 6
      test/base_test.go
  77. 6
      test/dtmsvr_test.go
  78. 6
      test/examples_test.go
  79. 6
      test/main_test.go
  80. 6
      test/msg_grpc_test.go
  81. 6
      test/msg_options_test.go
  82. 6
      test/msg_test.go
  83. 6
      test/saga_barrier_test.go
  84. 6
      test/saga_compatible_test.go
  85. 6
      test/saga_concurrent_test.go
  86. 6
      test/saga_grpc_barrier_test.go
  87. 6
      test/saga_grpc_test.go
  88. 6
      test/saga_options_test.go
  89. 6
      test/saga_test.go
  90. 6
      test/tcc_barrier_test.go
  91. 6
      test/tcc_grpc_test.go
  92. 6
      test/tcc_test.go
  93. 6
      test/types.go
  94. 6
      test/xa_grpc_test.go
  95. 6
      test/xa_test.go

6
app/main.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package main package main
import ( import (

6
bench/http.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package bench package bench
import ( import (

6
common/types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package common package common
import ( import (

6
common/types_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package common package common
import ( import (

6
common/utils.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package common package common
import ( import (

6
common/utils_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package common package common
import ( import (

6
dtmcli/barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/consts.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/dtmimp/consts.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
const ( const (

6
dtmcli/dtmimp/db_special.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/db_special_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/trans_base.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/trans_xa_base.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import "database/sql" import "database/sql"

6
dtmcli/dtmimp/types_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/utils.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/utils_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/dtmimp/vars.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmimp package dtmimp
import ( import (

6
dtmcli/msg.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import "github.com/yedf/dtm/dtmcli/dtmimp" import "github.com/yedf/dtm/dtmcli/dtmimp"

6
dtmcli/saga.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/tcc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/trans_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/types_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmcli/xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmcli package dtmcli
import ( import (

6
dtmgrpc/barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/dtmgimp/dtmgimp.pb.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.27.1 // protoc-gen-go v1.27.1

6
dtmgrpc/dtmgimp/dtmgimp_grpc.pb.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package dtmgimp package dtmgimp

6
dtmgrpc/dtmgimp/grpc_clients.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgimp package dtmgimp
import ( import (

6
dtmgrpc/dtmgimp/types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgimp package dtmgimp
import ( import (

6
dtmgrpc/dtmgimp/utils.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgimp package dtmgimp
import ( import (

6
dtmgrpc/msg.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/saga.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/tcc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/type.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/type_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmgrpc/xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmgrpc package dtmgrpc
import ( import (

6
dtmsvr/api.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/api_grpc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/api_http.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/cron.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/dtmsvr.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/metrics.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_class.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_process.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_status.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_type_msg.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_type_saga.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_type_tcc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/trans_type_xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/utils.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
dtmsvr/utils_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package dtmsvr package dtmsvr
import ( import (

6
examples/base_grpc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/base_http.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/base_types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/busi.pb.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.27.1 // protoc-gen-go v1.27.1

6
examples/busi_grpc.pb.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package examples package examples

6
examples/data.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/grpc_msg.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/grpc_saga.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/grpc_saga_barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/grpc_tcc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/grpc_xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_gorm_xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_msg.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_saga.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_saga_barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_saga_gorm_barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_tcc.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_tcc_barrier.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/http_xa.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

6
examples/quick_start.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package examples package examples
import ( import (

1
go.mod

@ -12,7 +12,6 @@ require (
github.com/lib/pq v1.10.3 github.com/lib/pq v1.10.3
github.com/prometheus/client_golang v1.11.0 github.com/prometheus/client_golang v1.11.0
github.com/stretchr/testify v1.7.0 github.com/stretchr/testify v1.7.0
github.com/yedf/dtmcli v1.5.1
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa // indirect golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect

7
go.sum

@ -243,8 +243,6 @@ github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
github.com/yedf/dtmcli v1.5.1 h1:KGeFpRc9nOJ382YfT06I21jX2R9urfmL7JG9SLIBERA=
github.com/yedf/dtmcli v1.5.1/go.mod h1:errG1rA5vaT70B00s6cAKo7O/tD1CLI8CGrESSaTsqw=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
@ -271,7 +269,6 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa h1:idItI2DDfCokpg0N51B2VtiLdJ4vAuXC9fnCb2gACo4= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa h1:idItI2DDfCokpg0N51B2VtiLdJ4vAuXC9fnCb2gACo4=
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
@ -425,13 +422,9 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gorm.io/driver/mysql v1.0.3 h1:+JKBYPfn1tygR1/of/Fh2T8iwuVwzt+PEJmKaXzMQXg= gorm.io/driver/mysql v1.0.3 h1:+JKBYPfn1tygR1/of/Fh2T8iwuVwzt+PEJmKaXzMQXg=
gorm.io/driver/mysql v1.0.3/go.mod h1:twGxftLBlFgNVNakL7F+P/x9oYqoymG3YYT8cAfI9oI= gorm.io/driver/mysql v1.0.3/go.mod h1:twGxftLBlFgNVNakL7F+P/x9oYqoymG3YYT8cAfI9oI=
gorm.io/driver/postgres v1.1.2 h1:Amy3hCvLqM+/ICzjCnQr8wKFLVJTeOTdlMT7kCP+J1Q=
gorm.io/driver/postgres v1.1.2/go.mod h1:/AGV0zvqF3mt9ZtzLzQmXWQ/5vr+1V1TyHZGZVjzmwI=
gorm.io/driver/postgres v1.2.1 h1:JDQKnF7MC51dgL09Vbydc5kl83KkVDlcXfSPJ+xhh68= gorm.io/driver/postgres v1.2.1 h1:JDQKnF7MC51dgL09Vbydc5kl83KkVDlcXfSPJ+xhh68=
gorm.io/driver/postgres v1.2.1/go.mod h1:SHRZhu+D0tLOHV5qbxZRUM6kBcf3jp/kxPz2mYMTsNY= gorm.io/driver/postgres v1.2.1/go.mod h1:SHRZhu+D0tLOHV5qbxZRUM6kBcf3jp/kxPz2mYMTsNY=
gorm.io/gorm v1.20.4/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw= gorm.io/gorm v1.20.4/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw=
gorm.io/gorm v1.21.15 h1:gAyaDoPw0lCyrSFWhBlahbUA1U4P5RViC1uIqoB+1Rk=
gorm.io/gorm v1.21.15/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0=
gorm.io/gorm v1.22.0/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= gorm.io/gorm v1.22.0/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0=
gorm.io/gorm v1.22.2 h1:1iKcvyJnR5bHydBhDqTwasOkoo6+o4Ms5cknSt6qP7I= gorm.io/gorm v1.22.2 h1:1iKcvyJnR5bHydBhDqTwasOkoo6+o4Ms5cknSt6qP7I=
gorm.io/gorm v1.22.2/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= gorm.io/gorm v1.22.2/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0=

6
test/api_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/base_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/dtmsvr_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/examples_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/main_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/msg_grpc_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/msg_options_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/msg_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_barrier_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_compatible_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_concurrent_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_grpc_barrier_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_grpc_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_options_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/saga_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/tcc_barrier_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/tcc_grpc_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/tcc_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/types.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/xa_grpc_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

6
test/xa_test.go

@ -1,3 +1,9 @@
/*
* Copyright (c) 2021 yedf. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
package test package test
import ( import (

Loading…
Cancel
Save