diff --git a/app/main.go b/app/main.go index 8f3f949..7eb0025 100644 --- a/app/main.go +++ b/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 import ( diff --git a/bench/http.go b/bench/http.go index 6f1f1be..e1cb91f 100644 --- a/bench/http.go +++ b/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 import ( diff --git a/common/types.go b/common/types.go index d07c27d..c39f5b1 100644 --- a/common/types.go +++ b/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 import ( diff --git a/common/types_test.go b/common/types_test.go index ed3c30f..5933dd1 100644 --- a/common/types_test.go +++ b/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 import ( diff --git a/common/utils.go b/common/utils.go index 1ff48b1..dda68eb 100644 --- a/common/utils.go +++ b/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 import ( diff --git a/common/utils_test.go b/common/utils_test.go index df862d1..851c575 100644 --- a/common/utils_test.go +++ b/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 import ( diff --git a/dtmcli/barrier.go b/dtmcli/barrier.go index c38823a..fbd9215 100644 --- a/dtmcli/barrier.go +++ b/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 import ( diff --git a/dtmcli/consts.go b/dtmcli/consts.go index 36bf2de..c8385cc 100644 --- a/dtmcli/consts.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/consts.go b/dtmcli/dtmimp/consts.go index c32d558..8227a98 100644 --- a/dtmcli/dtmimp/consts.go +++ b/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 const ( diff --git a/dtmcli/dtmimp/db_special.go b/dtmcli/dtmimp/db_special.go index 26c6b61..7306742 100644 --- a/dtmcli/dtmimp/db_special.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/db_special_test.go b/dtmcli/dtmimp/db_special_test.go index 16ddae3..d43daf5 100644 --- a/dtmcli/dtmimp/db_special_test.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/trans_base.go b/dtmcli/dtmimp/trans_base.go index 2cec738..b050064 100644 --- a/dtmcli/dtmimp/trans_base.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/trans_xa_base.go b/dtmcli/dtmimp/trans_xa_base.go index 014235b..72d924e 100644 --- a/dtmcli/dtmimp/trans_xa_base.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/types.go b/dtmcli/dtmimp/types.go index c962dad..632a072 100644 --- a/dtmcli/dtmimp/types.go +++ b/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 import "database/sql" diff --git a/dtmcli/dtmimp/types_test.go b/dtmcli/dtmimp/types_test.go index 803744a..4da1654 100644 --- a/dtmcli/dtmimp/types_test.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/utils.go b/dtmcli/dtmimp/utils.go index 7e75d20..be66793 100644 --- a/dtmcli/dtmimp/utils.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/utils_test.go b/dtmcli/dtmimp/utils_test.go index 90c1552..a58acdb 100644 --- a/dtmcli/dtmimp/utils_test.go +++ b/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 import ( diff --git a/dtmcli/dtmimp/vars.go b/dtmcli/dtmimp/vars.go index 7f4e824..6dc42c3 100644 --- a/dtmcli/dtmimp/vars.go +++ b/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 import ( diff --git a/dtmcli/msg.go b/dtmcli/msg.go index a2fd73f..e7dc97c 100644 --- a/dtmcli/msg.go +++ b/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 import "github.com/yedf/dtm/dtmcli/dtmimp" diff --git a/dtmcli/saga.go b/dtmcli/saga.go index 7f9ce7e..05ad6f9 100644 --- a/dtmcli/saga.go +++ b/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 import ( diff --git a/dtmcli/tcc.go b/dtmcli/tcc.go index 9f9c416..435da93 100644 --- a/dtmcli/tcc.go +++ b/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 import ( diff --git a/dtmcli/trans_test.go b/dtmcli/trans_test.go index 7b4b98b..cbc2a02 100644 --- a/dtmcli/trans_test.go +++ b/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 import ( diff --git a/dtmcli/types.go b/dtmcli/types.go index 5e0098a..29f8575 100644 --- a/dtmcli/types.go +++ b/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 import ( diff --git a/dtmcli/types_test.go b/dtmcli/types_test.go index 48525bd..451c911 100644 --- a/dtmcli/types_test.go +++ b/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 import ( diff --git a/dtmcli/xa.go b/dtmcli/xa.go index 5999d67..ac097c0 100644 --- a/dtmcli/xa.go +++ b/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 import ( diff --git a/dtmgrpc/barrier.go b/dtmgrpc/barrier.go index 6c1b004..05cf5ee 100644 --- a/dtmgrpc/barrier.go +++ b/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 import ( diff --git a/dtmgrpc/dtmgimp/dtmgimp.pb.go b/dtmgrpc/dtmgimp/dtmgimp.pb.go index 80dbb14..3b28c14 100644 --- a/dtmgrpc/dtmgimp/dtmgimp.pb.go +++ b/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. // versions: // protoc-gen-go v1.27.1 diff --git a/dtmgrpc/dtmgimp/dtmgimp_grpc.pb.go b/dtmgrpc/dtmgimp/dtmgimp_grpc.pb.go index 245c314..8d35989 100644 --- a/dtmgrpc/dtmgimp/dtmgimp_grpc.pb.go +++ b/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. package dtmgimp diff --git a/dtmgrpc/dtmgimp/grpc_clients.go b/dtmgrpc/dtmgimp/grpc_clients.go index e32647e..fb7caa0 100644 --- a/dtmgrpc/dtmgimp/grpc_clients.go +++ b/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 import ( diff --git a/dtmgrpc/dtmgimp/types.go b/dtmgrpc/dtmgimp/types.go index e17fa7f..c86bc5c 100644 --- a/dtmgrpc/dtmgimp/types.go +++ b/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 import ( diff --git a/dtmgrpc/dtmgimp/utils.go b/dtmgrpc/dtmgimp/utils.go index 397c0f7..ba2e08e 100644 --- a/dtmgrpc/dtmgimp/utils.go +++ b/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 import ( diff --git a/dtmgrpc/msg.go b/dtmgrpc/msg.go index 7297794..31448a9 100644 --- a/dtmgrpc/msg.go +++ b/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 import ( diff --git a/dtmgrpc/saga.go b/dtmgrpc/saga.go index 2fa6c84..feb0879 100644 --- a/dtmgrpc/saga.go +++ b/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 import ( diff --git a/dtmgrpc/tcc.go b/dtmgrpc/tcc.go index 278e4cb..d1520b0 100644 --- a/dtmgrpc/tcc.go +++ b/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 import ( diff --git a/dtmgrpc/type.go b/dtmgrpc/type.go index 2da13b6..42e7eb8 100644 --- a/dtmgrpc/type.go +++ b/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 import ( diff --git a/dtmgrpc/type_test.go b/dtmgrpc/type_test.go index aaa477b..2192d63 100644 --- a/dtmgrpc/type_test.go +++ b/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 import ( diff --git a/dtmgrpc/xa.go b/dtmgrpc/xa.go index 2be30ec..7dde406 100644 --- a/dtmgrpc/xa.go +++ b/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 import ( diff --git a/dtmsvr/api.go b/dtmsvr/api.go index 9e93c74..03b8300 100644 --- a/dtmsvr/api.go +++ b/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 import ( diff --git a/dtmsvr/api_grpc.go b/dtmsvr/api_grpc.go index 9dae94f..d2783ca 100644 --- a/dtmsvr/api_grpc.go +++ b/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 import ( diff --git a/dtmsvr/api_http.go b/dtmsvr/api_http.go index 6cbdb9e..2735bf2 100644 --- a/dtmsvr/api_http.go +++ b/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 import ( diff --git a/dtmsvr/cron.go b/dtmsvr/cron.go index 0bf7e12..dcf0f48 100644 --- a/dtmsvr/cron.go +++ b/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 import ( diff --git a/dtmsvr/dtmsvr.go b/dtmsvr/dtmsvr.go index db03bbe..08ba01b 100644 --- a/dtmsvr/dtmsvr.go +++ b/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 import ( diff --git a/dtmsvr/metrics.go b/dtmsvr/metrics.go index f0016f1..476241b 100644 --- a/dtmsvr/metrics.go +++ b/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 import ( diff --git a/dtmsvr/trans_class.go b/dtmsvr/trans_class.go index 77d1843..6d605e2 100644 --- a/dtmsvr/trans_class.go +++ b/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 import ( diff --git a/dtmsvr/trans_process.go b/dtmsvr/trans_process.go index e932c2a..7aad95a 100644 --- a/dtmsvr/trans_process.go +++ b/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 import ( diff --git a/dtmsvr/trans_status.go b/dtmsvr/trans_status.go index 188c260..b79d41c 100644 --- a/dtmsvr/trans_status.go +++ b/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 import ( diff --git a/dtmsvr/trans_type_msg.go b/dtmsvr/trans_type_msg.go index 8288faf..4327bf5 100644 --- a/dtmsvr/trans_type_msg.go +++ b/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 import ( diff --git a/dtmsvr/trans_type_saga.go b/dtmsvr/trans_type_saga.go index 46ed6d3..bf804a0 100644 --- a/dtmsvr/trans_type_saga.go +++ b/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 import ( diff --git a/dtmsvr/trans_type_tcc.go b/dtmsvr/trans_type_tcc.go index 8aa607b..e22188d 100644 --- a/dtmsvr/trans_type_tcc.go +++ b/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 import ( diff --git a/dtmsvr/trans_type_xa.go b/dtmsvr/trans_type_xa.go index a882cf4..cbdaf7c 100644 --- a/dtmsvr/trans_type_xa.go +++ b/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 import ( diff --git a/dtmsvr/utils.go b/dtmsvr/utils.go index 4ae90b5..c41f889 100644 --- a/dtmsvr/utils.go +++ b/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 import ( diff --git a/dtmsvr/utils_test.go b/dtmsvr/utils_test.go index 9abf132..968d2be 100644 --- a/dtmsvr/utils_test.go +++ b/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 import ( diff --git a/examples/base_grpc.go b/examples/base_grpc.go index 0be9307..793cba9 100644 --- a/examples/base_grpc.go +++ b/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 import ( diff --git a/examples/base_http.go b/examples/base_http.go index 447fc47..cf35901 100644 --- a/examples/base_http.go +++ b/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 import ( diff --git a/examples/base_types.go b/examples/base_types.go index 7ba4ba6..ee9514a 100644 --- a/examples/base_types.go +++ b/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 import ( diff --git a/examples/busi.pb.go b/examples/busi.pb.go index c27b3df..64df1a7 100644 --- a/examples/busi.pb.go +++ b/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. // versions: // protoc-gen-go v1.27.1 diff --git a/examples/busi_grpc.pb.go b/examples/busi_grpc.pb.go index f779fc6..eb67476 100644 --- a/examples/busi_grpc.pb.go +++ b/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. package examples diff --git a/examples/data.go b/examples/data.go index 60a03f2..390a8ca 100644 --- a/examples/data.go +++ b/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 import ( diff --git a/examples/grpc_msg.go b/examples/grpc_msg.go index 5ce369c..670e8e6 100644 --- a/examples/grpc_msg.go +++ b/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 import ( diff --git a/examples/grpc_saga.go b/examples/grpc_saga.go index 178169a..fad3d8f 100644 --- a/examples/grpc_saga.go +++ b/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 import ( diff --git a/examples/grpc_saga_barrier.go b/examples/grpc_saga_barrier.go index b8bd517..c89a2d5 100644 --- a/examples/grpc_saga_barrier.go +++ b/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 import ( diff --git a/examples/grpc_tcc.go b/examples/grpc_tcc.go index 94e91b9..a806983 100644 --- a/examples/grpc_tcc.go +++ b/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 import ( diff --git a/examples/grpc_xa.go b/examples/grpc_xa.go index c9b3dd7..41aba41 100644 --- a/examples/grpc_xa.go +++ b/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 import ( diff --git a/examples/http_gorm_xa.go b/examples/http_gorm_xa.go index 5ab1c5b..fbe6298 100644 --- a/examples/http_gorm_xa.go +++ b/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 import ( diff --git a/examples/http_msg.go b/examples/http_msg.go index 79151e2..589bf72 100644 --- a/examples/http_msg.go +++ b/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 import ( diff --git a/examples/http_saga.go b/examples/http_saga.go index c326db6..6ea09ef 100644 --- a/examples/http_saga.go +++ b/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 import ( diff --git a/examples/http_saga_barrier.go b/examples/http_saga_barrier.go index 1d50d3b..578cfba 100644 --- a/examples/http_saga_barrier.go +++ b/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 import ( diff --git a/examples/http_saga_gorm_barrier.go b/examples/http_saga_gorm_barrier.go index 0028259..22268c9 100644 --- a/examples/http_saga_gorm_barrier.go +++ b/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 import ( diff --git a/examples/http_tcc.go b/examples/http_tcc.go index 968f0b0..e9d23cb 100644 --- a/examples/http_tcc.go +++ b/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 import ( diff --git a/examples/http_tcc_barrier.go b/examples/http_tcc_barrier.go index fca9548..dff36a1 100644 --- a/examples/http_tcc_barrier.go +++ b/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 import ( diff --git a/examples/http_xa.go b/examples/http_xa.go index 6f66779..9ae4e8e 100644 --- a/examples/http_xa.go +++ b/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 import ( diff --git a/examples/quick_start.go b/examples/quick_start.go index 5dee011..fbf0c88 100644 --- a/examples/quick_start.go +++ b/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 import ( diff --git a/go.mod b/go.mod index d24c1d7..79f1ba0 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,6 @@ require ( github.com/lib/pq v1.10.3 github.com/prometheus/client_golang v1.11.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/net v0.0.0-20210805182204-aaa1db679c0d // indirect golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect diff --git a/go.sum b/go.sum index 01ddbd5..89eb1a3 100644 --- a/go.sum +++ b/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/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= 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.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 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-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-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-20211108221036-ceb1ce70b4fa h1:idItI2DDfCokpg0N51B2VtiLdJ4vAuXC9fnCb2gACo4= 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= 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/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/go.mod h1:SHRZhu+D0tLOHV5qbxZRUM6kBcf3jp/kxPz2mYMTsNY= 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.2 h1:1iKcvyJnR5bHydBhDqTwasOkoo6+o4Ms5cknSt6qP7I= gorm.io/gorm v1.22.2/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= diff --git a/test/api_test.go b/test/api_test.go index aa464cc..5fdf063 100644 --- a/test/api_test.go +++ b/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 import ( diff --git a/test/base_test.go b/test/base_test.go index e9de670..a6dc3f4 100644 --- a/test/base_test.go +++ b/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 import ( diff --git a/test/dtmsvr_test.go b/test/dtmsvr_test.go index 67668f1..fbd1c5f 100644 --- a/test/dtmsvr_test.go +++ b/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 import ( diff --git a/test/examples_test.go b/test/examples_test.go index c5d172f..e7c70cf 100644 --- a/test/examples_test.go +++ b/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 import ( diff --git a/test/main_test.go b/test/main_test.go index c3d8c9f..1ec8919 100644 --- a/test/main_test.go +++ b/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 import ( diff --git a/test/msg_grpc_test.go b/test/msg_grpc_test.go index c494fb5..3ae048d 100644 --- a/test/msg_grpc_test.go +++ b/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 import ( diff --git a/test/msg_options_test.go b/test/msg_options_test.go index 4928459..85e57ff 100644 --- a/test/msg_options_test.go +++ b/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 import ( diff --git a/test/msg_test.go b/test/msg_test.go index 1b10b16..493839f 100644 --- a/test/msg_test.go +++ b/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 import ( diff --git a/test/saga_barrier_test.go b/test/saga_barrier_test.go index 58dd7bf..6d8842c 100644 --- a/test/saga_barrier_test.go +++ b/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 import ( diff --git a/test/saga_compatible_test.go b/test/saga_compatible_test.go index b8d994c..925ab90 100644 --- a/test/saga_compatible_test.go +++ b/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 import ( diff --git a/test/saga_concurrent_test.go b/test/saga_concurrent_test.go index 6beafbf..5c4d322 100644 --- a/test/saga_concurrent_test.go +++ b/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 import ( diff --git a/test/saga_grpc_barrier_test.go b/test/saga_grpc_barrier_test.go index ddef2ca..589eb32 100644 --- a/test/saga_grpc_barrier_test.go +++ b/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 import ( diff --git a/test/saga_grpc_test.go b/test/saga_grpc_test.go index bcc6ab2..ed7dd90 100644 --- a/test/saga_grpc_test.go +++ b/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 import ( diff --git a/test/saga_options_test.go b/test/saga_options_test.go index 6572586..8d11d08 100644 --- a/test/saga_options_test.go +++ b/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 import ( diff --git a/test/saga_test.go b/test/saga_test.go index 2e7f72e..0e459ed 100644 --- a/test/saga_test.go +++ b/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 import ( diff --git a/test/tcc_barrier_test.go b/test/tcc_barrier_test.go index a1f5c20..66184ec 100644 --- a/test/tcc_barrier_test.go +++ b/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 import ( diff --git a/test/tcc_grpc_test.go b/test/tcc_grpc_test.go index b8726aa..ff4b2df 100644 --- a/test/tcc_grpc_test.go +++ b/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 import ( diff --git a/test/tcc_test.go b/test/tcc_test.go index e0853ad..76d0bc8 100644 --- a/test/tcc_test.go +++ b/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 import ( diff --git a/test/types.go b/test/types.go index 82e241c..7de05b0 100644 --- a/test/types.go +++ b/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 import ( diff --git a/test/xa_grpc_test.go b/test/xa_grpc_test.go index 0573658..76e1111 100644 --- a/test/xa_grpc_test.go +++ b/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 import ( diff --git a/test/xa_test.go b/test/xa_test.go index bcbcfc9..0cd96ba 100644 --- a/test/xa_test.go +++ b/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 import (