diff --git a/.github/workflows/check_and_build.yaml b/.github/workflows/check_and_build.yaml index 2e5eb5cfe15..e3d7119f099 100644 --- a/.github/workflows/check_and_build.yaml +++ b/.github/workflows/check_and_build.yaml @@ -29,6 +29,9 @@ jobs: - name: Build-dm run: docker build -f ./dm/Dockerfile . + - name: Build-engine + run: docker build -f ./engine/Dockerfile . + mac_build: name: Mac OS Build runs-on: macos-latest diff --git a/.github/workflows/dataflow_engine_e2e.yaml b/.github/workflows/dataflow_engine_e2e.yaml new file mode 100644 index 00000000000..61ce3c1f8b2 --- /dev/null +++ b/.github/workflows/dataflow_engine_e2e.yaml @@ -0,0 +1,93 @@ +name: Dataflow Engine e2e tests + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + paths: + - 'engine/**' + +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + Basic-workflow: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build images + run: $GITHUB_WORKSPACE/engine/sample/prepare.sh + + - name: Run containers + run: docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml -f $GITHUB_WORKSPACE/engine/sample/demo.yaml up -d + + - name: Run tests + run: | + cd $GITHUB_WORKSPACE/engine/test/e2e + go test -count=1 -v -run=TestSubmitTest + - name: Try to dump container logs + if: ${{ failure() }} + run: docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml logs -t + + Node-failure-workflow: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build images + run: $GITHUB_WORKSPACE/engine/sample/prepare.sh + + - name: Run containers + run: docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml up -d + + - name: Run tests + run: | + cd $GITHUB_WORKSPACE/engine/test/e2e + go test -count=1 -v -run=TestNodeFailure + - name: Try to dump container logs + if: ${{ failure() }} + run: docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml logs -t + + DM-workflow: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build images + run: $GITHUB_WORKSPACE/engine/sample/prepare.sh + + - name: Run containers + run: docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml -f $GITHUB_WORKSPACE/engine/sample/dm_databases.yaml up -d + + - name: Run tests + run: | + $GITHUB_WORKSPACE/engine/test/utils/wait_mysql_online.sh --host 127.0.0.1 --port 3306 --password 123456 + $GITHUB_WORKSPACE/engine/test/utils/wait_mysql_online.sh --host 127.0.0.1 --port 4000 + cd $GITHUB_WORKSPACE/engine/test/e2e + go test -count=1 -v -run=TestDMJob + - name: Try to dump container logs + if: ${{ failure() }} + run: | + docker-compose -f $GITHUB_WORKSPACE/engine/sample/3m3e.yaml logs -t + docker-compose -f $GITHUB_WORKSPACE/engine/sample/dm_databases.yaml logs -t diff --git a/.github/workflows/dataflow_engine_ut.yaml b/.github/workflows/dataflow_engine_ut.yaml new file mode 100644 index 00000000000..ba270b40d8e --- /dev/null +++ b/.github/workflows/dataflow_engine_ut.yaml @@ -0,0 +1,35 @@ +name: Dataflow engine unit test + +env: + PROTOC_VERSION: 3.8.0 + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths: + - 'engine/**' + +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + unit_test: + name: Make engine_unit_test + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Setup Go environment + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Test + run: make engine_unit_test diff --git a/.github/workflows/ticdc_integration.yaml b/.github/workflows/ticdc_integration.yaml index 994236135cf..17c66261a41 100644 --- a/.github/workflows/ticdc_integration.yaml +++ b/.github/workflows/ticdc_integration.yaml @@ -8,11 +8,13 @@ on: - master paths-ignore: - 'dm/**' + - 'engine/**' pull_request: branches: - master paths-ignore: - 'dm/**' + - 'engine/**' # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. concurrency: diff --git a/.golangci.yml b/.golangci.yml index 27f16c96564..0d896ded15b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -48,7 +48,7 @@ linters-settings: - name: var-naming - name: package-comments - name: range - - name: receiver-naming + # - name: receiver-naming TODO: disable it because it can't handle generics - name: indent-error-flow - name: superfluous-else - name: modifies-parameter diff --git a/Makefile b/Makefile index a160bbe3dd5..9d9da85775d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ ### Makefile for ticdc .PHONY: build test check clean fmt cdc kafka_consumer coverage \ integration_test_build integration_test integration_test_mysql integration_test_kafka bank \ - dm dm-master dm-worker dmctl dm-syncer dm_coverage + dm dm-master dm-worker dmctl dm-syncer dm_coverage \ + engine df-master df-executor df-master-client df-demo df-chaos-case PROJECT=tiflow P=3 @@ -16,6 +17,7 @@ SHELL := /usr/bin/env bash TEST_DIR := /tmp/tidb_cdc_test DM_TEST_DIR := /tmp/dm_test +ENGINE_TEST_DIR := /tmp/engine_test GO := GO111MODULE=on go ifeq (${CDC_ENABLE_VENDOR}, 1) @@ -33,11 +35,13 @@ MAC := "Darwin" CDC_PKG := github.com/pingcap/tiflow DM_PKG := github.com/pingcap/tiflow/dm PACKAGE_LIST := go list ./... | grep -vE 'vendor|proto|tiflow\/tests|integration|testing_utils|pb|pbmock|tiflow\/bin' -PACKAGE_LIST_WITHOUT_DM := $(PACKAGE_LIST) | grep -vE 'github.com/pingcap/tiflow/dm' +PACKAGE_LIST_WITHOUT_DM_ENGINE := $(PACKAGE_LIST) | grep -vE 'github.com/pingcap/tiflow/dm|github.com/pingcap/tiflow/engine' DM_PACKAGE_LIST := go list github.com/pingcap/tiflow/dm/... | grep -vE 'pb|pbmock|dm/cmd' PACKAGES := $$($(PACKAGE_LIST)) -PACKAGES_WITHOUT_DM := $$($(PACKAGE_LIST_WITHOUT_DM)) +PACKAGES_TICDC := $$($(PACKAGE_LIST_WITHOUT_DM_ENGINE)) DM_PACKAGES := $$($(DM_PACKAGE_LIST)) +ENGINE_PACKAGE_LIST := go list github.com/pingcap/tiflow/engine/... | grep -vE 'pb|proto|engine/cmd|engine/test/e2e' +ENGINE_PACKAGES := $$($(ENGINE_PACKAGE_LIST)) FILES := $$(find . -name '*.go' -type f | grep -vE 'vendor|kv_gen|proto|pb\.go|pb\.gw\.go') TEST_FILES := $$(find . -name '*_test.go' -type f | grep -vE 'vendor|kv_gen|integration|testing_utils') TEST_FILES_WITHOUT_DM := $$(find . -name '*_test.go' -type f | grep -vE 'vendor|kv_gen|integration|testing_utils|^\./dm') @@ -91,9 +95,9 @@ all: dev install dev: check test -test: unit_test dm_unit_test +test: unit_test dm_unit_test engine_unit_test -build: cdc dm +build: cdc dm engine bank: $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/bank ./tests/bank/bank.go ./tests/bank/case.go @@ -116,7 +120,7 @@ unit_test: check_failpoint_ctl generate_mock generate-msgp-code generate-protobu mkdir -p "$(TEST_DIR)" $(FAILPOINT_ENABLE) @export log_level=error;\ - $(GOTEST) -cover -covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES_WITHOUT_DM) \ + $(GOTEST) -cover -covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES_TICDC) \ || { $(FAILPOINT_DISABLE); exit 1; } $(FAILPOINT_DISABLE) @@ -125,7 +129,7 @@ unit_test_in_verify_ci: check_failpoint_ctl tools/bin/gotestsum tools/bin/gocov $(FAILPOINT_ENABLE) @export log_level=error;\ CGO_ENABLED=1 tools/bin/gotestsum --junitfile cdc-junit-report.xml -- -v -timeout 5m -p $(P) --race \ - -covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES_WITHOUT_DM) \ + -covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES_TICDC) \ || { $(FAILPOINT_DISABLE); exit 1; } tools/bin/gocov convert "$(TEST_DIR)/cov.unit.out" | tools/bin/gocov-xml > cdc-coverage.xml $(FAILPOINT_DISABLE) @@ -134,7 +138,7 @@ unit_test_in_verify_ci: check_failpoint_ctl tools/bin/gotestsum tools/bin/gocov leak_test: check_failpoint_ctl $(FAILPOINT_ENABLE) @export log_level=error;\ - $(GOTEST) -count=1 --tags leak $(PACKAGES_WITHOUT_DM) || { $(FAILPOINT_DISABLE); exit 1; } + $(GOTEST) -count=1 --tags leak $(PACKAGES_TICDC) || { $(FAILPOINT_DISABLE); exit 1; } $(FAILPOINT_DISABLE) check_third_party_binary: @@ -466,3 +470,43 @@ failpoint-enable: check_failpoint_ctl failpoint-disable: check_failpoint_ctl $(FAILPOINT_DISABLE) + +engine: df-master df-executor df-master-client df-demo + +df-proto: + ./engine/generate-proto.sh + +df-master: + $(GOBUILD) -o bin/df-master ./engine/cmd/master + cp ./bin/df-master ./engine/ansible/roles/common/files/master.bin + +df-executor: + $(GOBUILD) -o bin/df-executor ./engine/cmd/executor + cp ./bin/df-executor ./engine/ansible/roles/common/files/executor.bin + +df-master-client: + $(GOBUILD) -o bin/df-master-client ./engine/cmd/master-client + +df-demo: + $(GOBUILD) -o bin/df-demoserver ./engine/cmd/demoserver + cp ./bin/df-demoserver ./engine/ansible/roles/common/files/demoserver.bin + +df-chaos-case: + $(GOBUILD) -o bin/df-chaos-case ./engine/chaos/cases + +df-kvmock: tools/bin/mockgen tools/bin/protoc tools/bin/protoc-gen-gogofaster + tools/bin/mockgen -package mock github.com/pingcap/tiflow/engine/pkg/meta/metaclient KVClient \ + > engine/pkg/meta/kvclient/mock/mockclient.go + +engine_unit_test: + $(call run_engine_unit_test,$(ENGINE_PACKAGES)) + +define run_engine_unit_test + @echo "running unit test for packages:" $(1) + mkdir -p $(ENGINE_TEST_DIR) + $(FAILPOINT_ENABLE) + @export log_level=error; \ + $(GOTEST) -timeout 5m -covermode=atomic -coverprofile="$(ENGINE_TEST_DIR)/cov.unit_test.out" $(1) \ + || { $(FAILPOINT_DISABLE); exit 1; } + $(FAILPOINT_DISABLE) +endef diff --git a/engine/Makefile b/engine/Makefile deleted file mode 100644 index ae510ba824b..00000000000 --- a/engine/Makefile +++ /dev/null @@ -1,82 +0,0 @@ -TEST_DIR := /tmp/dataflow_engine_test -PARALLEL=3 -GO := GO111MODULE=on go -GOBUILD := CGO_ENABLED=0 $(GO) build -trimpath -GOTEST := CGO_ENABLED=1 go test -p $(PARALLEL) --race -FAIL_ON_STDOUT := awk '{ print } END { if (NR > 0) { exit 1 } }' - -PACKAGE_LIST := go list ./... | grep -vE 'proto|pb' | grep -v 'e2e' -PACKAGES := $$($(PACKAGE_LIST)) -GOFILES := $$(find . -name '*.go' -type f | grep -vE 'proto|pb\.go') -FAILPOINT_DIR := $$(for p in $(PACKAGES); do echo $${p\#"github.com/hanfei1991/microcosm/"}|grep -v "github.com/hanfei1991/microcosm/"; done) -FAILPOINT := tools/bin/failpoint-ctl - -FAILPOINT_ENABLE := $$(echo $(FAILPOINT_DIR) | xargs $(FAILPOINT) enable >/dev/null) -FAILPOINT_DISABLE := $$(echo $(FAILPOINT_DIR) | xargs $(FAILPOINT) disable >/dev/null) - -all: df-proto build - -build: df-master df-executor df-master-client df-demo - -df-proto: - ./generate-proto.sh - -df-master: - $(GOBUILD) -o bin/master ./cmd/master - cp ./bin/master ./ansible/roles/common/files/master.bin - -df-executor: - $(GOBUILD) -o bin/executor ./cmd/executor - cp ./bin/executor ./ansible/roles/common/files/executor.bin - -df-master-client: - $(GOBUILD) -o bin/master-client ./cmd/master-client - -df-demo: - $(GOBUILD) -o bin/demoserver ./cmd/demoserver - cp ./bin/demoserver ./ansible/roles/common/files/demoserver.bin - -df-chaos-case: - $(GOBUILD) -o bin/df-chaos-case ./chaos/cases - -unit_test: check_failpoint_ctl - mkdir -p "$(TEST_DIR)" - $(FAILPOINT_ENABLE) - $(GOTEST) -cover -covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES) \ - || { $(FAILPOINT_DISABLE); exit 1; } - $(FAILPOINT_DISABLE) - -tools_setup: - @echo "setup build and check tools" - @cd tools && make - -tools/bin/failpoint-ctl: tools/go.mod - cd tools && $(GO) build -mod=mod -o ./bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl - -check_failpoint_ctl: tools/bin/failpoint-ctl - -failpoint-enable: check_failpoint_ctl - $(FAILPOINT_ENABLE) - -failpoint-disable: check_failpoint_ctl - $(FAILPOINT_DISABLE) - -check: tools_setup lint fmt tidy - -fmt: - @echo "gofmt (simplify)" - tools/bin/gofumports -l -w $(GOFILES) 2>&1 | $(FAIL_ON_STDOUT) - @echo "run shfmt" - tools/bin/shfmt -d -w . - -tidy: - @echo "check go mod tidy" - go mod tidy - -lint: - echo "golangci-lint"; \ - tools/bin/golangci-lint run --config=./.golangci.yml --timeout 10m0s --skip-files "pb" - -kvmock: tools_setup - tools/bin/mockgen github.com/hanfei1991/microcosm/pkg/meta/metaclient KVClient \ - > pkg/meta/kvclient/mock/mockclient.go diff --git a/engine/chaos/cases/cases.go b/engine/chaos/cases/cases.go index b9ec39af0ca..1f9c807c879 100644 --- a/engine/chaos/cases/cases.go +++ b/engine/chaos/cases/cases.go @@ -11,6 +11,19 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/engine/chaos/cases/config.go b/engine/chaos/cases/config.go index 3e80d99f6dd..3aec86ce621 100644 --- a/engine/chaos/cases/config.go +++ b/engine/chaos/cases/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2020 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/chaos/cases/main.go b/engine/chaos/cases/main.go index ab15da6d6c4..440c9dac03e 100644 --- a/engine/chaos/cases/main.go +++ b/engine/chaos/cases/main.go @@ -11,6 +11,19 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/engine/client/base_executor_client.go b/engine/client/base_executor_client.go index ef6fa9613bf..8cbd7544e94 100644 --- a/engine/client/base_executor_client.go +++ b/engine/client/base_executor_client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( @@ -9,10 +22,10 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/backoff" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) // baseExecutorClient handles requests and responses at the gRPC method level. diff --git a/engine/client/client_manager.go b/engine/client/client_manager.go index a1d19d1dcc0..3aea034ab51 100644 --- a/engine/client/client_manager.go +++ b/engine/client/client_manager.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( "context" "sync" - "github.com/hanfei1991/microcosm/model" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/model" "go.uber.org/zap" ) diff --git a/engine/client/client_test.go b/engine/client/client_test.go index 83fba5acdf0..9b0b338f1a5 100644 --- a/engine/client/client_test.go +++ b/engine/client/client_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client_test import ( @@ -5,11 +18,11 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/executor" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - "github.com/hanfei1991/microcosm/servermaster" - "github.com/hanfei1991/microcosm/test" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/executor" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/servermaster" + "github.com/pingcap/tiflow/engine/test" "github.com/stretchr/testify/require" ) diff --git a/engine/client/executor_client.go b/engine/client/executor_client.go index 6973fb168b5..048fd21490b 100644 --- a/engine/client/executor_client.go +++ b/engine/client/executor_client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( diff --git a/engine/client/master_client.go b/engine/client/master_client.go index 9858cb75142..b3870e3369d 100644 --- a/engine/client/master_client.go +++ b/engine/client/master_client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( @@ -6,11 +19,11 @@ import ( "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/rpcutil" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) // DialTimeout is the default timeout for gRPC dialing diff --git a/engine/client/master_client_test.go b/engine/client/master_client_test.go index fe2e2b12e03..5e5b5813029 100644 --- a/engine/client/master_client_test.go +++ b/engine/client/master_client_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client_test import ( @@ -6,10 +19,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/servermaster" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/servermaster" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) func TestMasterClient(t *testing.T) { diff --git a/engine/client/mock_clients.go b/engine/client/mock_clients.go index 0e8e0e24518..fa5d13ca336 100644 --- a/engine/client/mock_clients.go +++ b/engine/client/mock_clients.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( @@ -7,7 +20,7 @@ import ( "github.com/stretchr/testify/mock" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" ) // MockExecutorClient is a mock implement of ExecutorClient interface diff --git a/engine/client/task_dispatcher.go b/engine/client/task_dispatcher.go index 698a8210673..5fbf93132e7 100644 --- a/engine/client/task_dispatcher.go +++ b/engine/client/task_dispatcher.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( @@ -11,8 +24,8 @@ import ( "go.uber.org/zap" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" - derrors "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pb" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" ) const preDispatchTaskRetryInterval = 1 * time.Second diff --git a/engine/client/task_dispatcher_test.go b/engine/client/task_dispatcher_test.go index d517646568d..1aa0e8461db 100644 --- a/engine/client/task_dispatcher_test.go +++ b/engine/client/task_dispatcher_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package client import ( @@ -12,7 +25,7 @@ import ( "go.uber.org/atomic" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" ) func TestDispatchTaskNormal(t *testing.T) { diff --git a/engine/cmd/demoserver/kvdata_test.go b/engine/cmd/demoserver/kvdata_test.go index a8668ad7484..6e0de5e2370 100644 --- a/engine/cmd/demoserver/kvdata_test.go +++ b/engine/cmd/demoserver/kvdata_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -8,7 +21,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" "github.com/stretchr/testify/require" "google.golang.org/grpc" ) diff --git a/engine/cmd/demoserver/kvdatamake.go b/engine/cmd/demoserver/kvdatamake.go index 9b1cc11c8cc..4eb584c6f5a 100644 --- a/engine/cmd/demoserver/kvdatamake.go +++ b/engine/cmd/demoserver/kvdatamake.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -13,8 +26,8 @@ import ( "sync" "syscall" - "github.com/hanfei1991/microcosm/pb" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pb" "github.com/pingcap/tiflow/pkg/config" "github.com/pingcap/tiflow/pkg/db" "go.uber.org/zap" diff --git a/engine/cmd/demoserver/mockdata.go b/engine/cmd/demoserver/mockdata.go index 859ab9fe862..ab4b292a2f7 100644 --- a/engine/cmd/demoserver/mockdata.go +++ b/engine/cmd/demoserver/mockdata.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -7,8 +20,8 @@ import ( "strconv" "sync" - "github.com/hanfei1991/microcosm/pb" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pb" "go.uber.org/zap" ) diff --git a/engine/cmd/executor/main.go b/engine/cmd/executor/main.go index 2be2e3bd788..fb18339e764 100644 --- a/engine/cmd/executor/main.go +++ b/engine/cmd/executor/main.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -8,9 +21,9 @@ import ( "strings" "syscall" - "github.com/hanfei1991/microcosm/executor" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/executor" "go.uber.org/zap" ) diff --git a/engine/cmd/master-client/main.go b/engine/cmd/master-client/main.go index afe4033b491..ee11d72aff0 100644 --- a/engine/cmd/master-client/main.go +++ b/engine/cmd/master-client/main.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -5,8 +18,8 @@ import ( "fmt" "os" - "github.com/hanfei1991/microcosm/ctl" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/ctl" ) func main() { diff --git a/engine/cmd/master/main.go b/engine/cmd/master/main.go index 13f4552e2bb..8ed630df9f8 100644 --- a/engine/cmd/master/main.go +++ b/engine/cmd/master/main.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( @@ -13,7 +26,7 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/servermaster" + "github.com/pingcap/tiflow/engine/servermaster" ) // 1. parse config diff --git a/engine/ctl/cmd.go b/engine/ctl/cmd.go index 3b28bececb2..f1480a297dd 100644 --- a/engine/ctl/cmd.go +++ b/engine/ctl/cmd.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package ctl import ( @@ -12,10 +25,10 @@ import ( "github.com/spf13/cobra" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" ) func newQueryJob() *cobra.Command { diff --git a/engine/ctl/ctl.go b/engine/ctl/ctl.go index 5626e9d742f..bdf8d189be1 100644 --- a/engine/ctl/ctl.go +++ b/engine/ctl/ctl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package ctl import ( @@ -8,10 +21,10 @@ import ( "time" "github.com/BurntSushi/toml" - "github.com/hanfei1991/microcosm/client" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/pkg/log" "github.com/pingcap/tiflow/dm/pkg/utils" + "github.com/pingcap/tiflow/engine/client" "github.com/spf13/cobra" "github.com/spf13/pflag" "go.uber.org/zap" diff --git a/engine/dm/dump_worker.go b/engine/dm/dump_worker.go index f9ef274c746..be22d0d6acb 100644 --- a/engine/dm/dump_worker.go +++ b/engine/dm/dump_worker.go @@ -1,21 +1,34 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( "context" "time" - "github.com/hanfei1991/microcosm/jobmaster/dm" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/dumpling" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/jobmaster/dm" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) var _ lib.Worker = &dumpWorker{} diff --git a/engine/dm/dump_worker_test.go b/engine/dm/dump_worker_test.go index e8ce3fda9b0..c0795f85ddf 100644 --- a/engine/dm/dump_worker_test.go +++ b/engine/dm/dump_worker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -10,12 +23,12 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/pkg/adapter" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/pkg/adapter" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // nolint: unused diff --git a/engine/dm/load_worker.go b/engine/dm/load_worker.go index 5eebd09f4dd..5108a951124 100644 --- a/engine/dm/load_worker.go +++ b/engine/dm/load_worker.go @@ -1,21 +1,34 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( "context" "time" - "github.com/hanfei1991/microcosm/jobmaster/dm" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/loader" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/jobmaster/dm" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) var _ lib.Worker = &loadWorker{} diff --git a/engine/dm/load_worker_test.go b/engine/dm/load_worker_test.go index 802981ecd43..f20202cc1ab 100644 --- a/engine/dm/load_worker_test.go +++ b/engine/dm/load_worker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -7,10 +20,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - dcontext "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" ) func TestLoadWorker(t *testing.T) { diff --git a/engine/dm/registry.go b/engine/dm/registry.go index 3ae8b6ac1a6..3f36c7ee6ac 100644 --- a/engine/dm/registry.go +++ b/engine/dm/registry.go @@ -1,12 +1,25 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( "github.com/pingcap/tiflow/dm/dm/config" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/pkg/context" ) func init() { diff --git a/engine/dm/sync_worker.go b/engine/dm/sync_worker.go index 1415c42ad98..3343b82d1c6 100644 --- a/engine/dm/sync_worker.go +++ b/engine/dm/sync_worker.go @@ -1,21 +1,34 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( "context" "time" - "github.com/hanfei1991/microcosm/jobmaster/dm" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/pkg/log" "github.com/pingcap/tiflow/dm/syncer" + "github.com/pingcap/tiflow/engine/jobmaster/dm" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) var _ lib.Worker = &syncWorker{} diff --git a/engine/dm/sync_worker_test.go b/engine/dm/sync_worker_test.go index 35853dc12db..276beed200d 100644 --- a/engine/dm/sync_worker_test.go +++ b/engine/dm/sync_worker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -10,10 +23,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - dcontext "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" ) // nolint: unused diff --git a/engine/dm/unit.go b/engine/dm/unit.go index 725d168642c..5f71e38e38b 100644 --- a/engine/dm/unit.go +++ b/engine/dm/unit.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -6,17 +19,17 @@ import ( "sync" "time" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/dm/pb" "github.com/pingcap/tiflow/dm/dm/unit" "github.com/pingcap/tiflow/dm/dm/worker" "github.com/pingcap/tiflow/dm/pkg/backoff" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" "go.uber.org/zap" ) diff --git a/engine/executor/config.go b/engine/executor/config.go index a45ff23e406..bcd1c175204 100644 --- a/engine/executor/config.go +++ b/engine/executor/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,8 +36,8 @@ import ( "time" "github.com/BurntSushi/toml" - "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" ) // SampleConfigFile is sample config file of dm-worker. diff --git a/engine/executor/cvsTask/cvstask.go b/engine/executor/cvsTask/cvstask.go index a31a270f104..b7964343499 100644 --- a/engine/executor/cvsTask/cvstask.go +++ b/engine/executor/cvsTask/cvstask.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package cvstask import ( @@ -13,14 +26,14 @@ import ( "golang.org/x/time/rate" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) const ( diff --git a/engine/executor/http.go b/engine/executor/http.go index 411ddb5cef5..0df6886c73b 100644 --- a/engine/executor/http.go +++ b/engine/executor/http.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import ( diff --git a/engine/executor/init.go b/engine/executor/init.go index 7a5f9e24eeb..be96a1c765a 100644 --- a/engine/executor/init.go +++ b/engine/executor/init.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import ( - _ "github.com/hanfei1991/microcosm/dm" // register dm - cvstask "github.com/hanfei1991/microcosm/executor/cvsTask" - cvs "github.com/hanfei1991/microcosm/jobmaster/cvsJob" - "github.com/hanfei1991/microcosm/jobmaster/dm" - "github.com/hanfei1991/microcosm/lib/registry" + _ "github.com/pingcap/tiflow/engine/dm" // register dm + cvstask "github.com/pingcap/tiflow/engine/executor/cvsTask" + cvs "github.com/pingcap/tiflow/engine/jobmaster/cvsJob" + "github.com/pingcap/tiflow/engine/jobmaster/dm" + "github.com/pingcap/tiflow/engine/lib/registry" ) func init() { diff --git a/engine/executor/metrics.go b/engine/executor/metrics.go index 5cd5c5b0166..49a1291f2d0 100644 --- a/engine/executor/metrics.go +++ b/engine/executor/metrics.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import "github.com/prometheus/client_golang/prometheus" diff --git a/engine/executor/metrics_server.go b/engine/executor/metrics_server.go index 25cca964ed8..f9fe0ee0cd3 100644 --- a/engine/executor/metrics_server.go +++ b/engine/executor/metrics_server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import ( diff --git a/engine/executor/server.go b/engine/executor/server.go index 67ff9b9602f..9269f552ee3 100644 --- a/engine/executor/server.go +++ b/engine/executor/server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import ( @@ -23,27 +36,27 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/executor/worker" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/config" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/rpcutil" - "github.com/hanfei1991/microcosm/pkg/serverutils" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/executor/worker" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/config" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pkg/serverutils" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) // Server is a executor server abstraction diff --git a/engine/executor/server_test.go b/engine/executor/server_test.go index 76e04daf0c0..2aa5f304692 100644 --- a/engine/executor/server_test.go +++ b/engine/executor/server_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package executor import ( @@ -16,10 +29,10 @@ import ( "golang.org/x/sync/errgroup" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/uuid" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) func init() { diff --git a/engine/executor/worker/ctx.go b/engine/executor/worker/ctx.go index 8da430a4f9d..7b6e00d85cf 100644 --- a/engine/executor/worker/ctx.go +++ b/engine/executor/worker/ctx.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( "context" "time" - "github.com/hanfei1991/microcosm/executor/worker/internal" + "github.com/pingcap/tiflow/engine/executor/worker/internal" ) type runtimeInfoKeyType int diff --git a/engine/executor/worker/ctx_test.go b/engine/executor/worker/ctx_test.go index d459e7dfae3..82b2cfa00f2 100644 --- a/engine/executor/worker/ctx_test.go +++ b/engine/executor/worker/ctx_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -7,7 +20,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/executor/worker/internal" + "github.com/pingcap/tiflow/engine/executor/worker/internal" ) func TestToRuntimeCtxFromDerivedStdCtx(t *testing.T) { diff --git a/engine/executor/worker/internal/info.go b/engine/executor/worker/internal/info.go index 6fcec62867d..ff39788007a 100644 --- a/engine/executor/worker/internal/info.go +++ b/engine/executor/worker/internal/info.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package internal import "time" diff --git a/engine/executor/worker/internal/runnables.go b/engine/executor/worker/internal/runnables.go index e3474e49206..740d5de5598 100644 --- a/engine/executor/worker/internal/runnables.go +++ b/engine/executor/worker/internal/runnables.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package internal import ( @@ -8,7 +21,7 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/model" + "github.com/pingcap/tiflow/engine/model" ) // Closer defines an interface to support Close diff --git a/engine/executor/worker/task_committer.go b/engine/executor/worker/task_committer.go index b699d2a6d90..77f934e954b 100644 --- a/engine/executor/worker/task_committer.go +++ b/engine/executor/worker/task_committer.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -8,8 +21,8 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/executor/worker/internal" - "github.com/hanfei1991/microcosm/pkg/clock" + "github.com/pingcap/tiflow/engine/executor/worker/internal" + "github.com/pingcap/tiflow/engine/pkg/clock" ) const runTTLCheckerInterval = 1 * time.Second diff --git a/engine/executor/worker/task_committer_test.go b/engine/executor/worker/task_committer_test.go index a4bf3724b35..31bd1981907 100644 --- a/engine/executor/worker/task_committer_test.go +++ b/engine/executor/worker/task_committer_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -7,9 +20,9 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/executor/worker/internal" - "github.com/hanfei1991/microcosm/pkg/clock" - derror "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/executor/worker/internal" + "github.com/pingcap/tiflow/engine/pkg/clock" + derror "github.com/pingcap/tiflow/engine/pkg/errors" ) type mockWrappedTaskAdder struct { diff --git a/engine/executor/worker/task_runner.go b/engine/executor/worker/task_runner.go index 7cae78b2ad9..56cdb9f865f 100644 --- a/engine/executor/worker/task_runner.go +++ b/engine/executor/worker/task_runner.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -11,10 +24,10 @@ import ( "go.uber.org/zap" "golang.org/x/sync/semaphore" - "github.com/hanfei1991/microcosm/executor/worker/internal" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - derror "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/executor/worker/internal" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + derror "github.com/pingcap/tiflow/engine/pkg/errors" ) // Re-export types for public use diff --git a/engine/executor/worker/task_runner_test.go b/engine/executor/worker/task_runner_test.go index 40b67bfd1ac..66c94ceb76c 100644 --- a/engine/executor/worker/task_runner_test.go +++ b/engine/executor/worker/task_runner_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -7,7 +20,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/clock" + "github.com/pingcap/tiflow/engine/pkg/clock" "github.com/stretchr/testify/require" ) diff --git a/engine/executor/worker/test_util.go b/engine/executor/worker/test_util.go index 7746105a5d4..c31977f1f6b 100644 --- a/engine/executor/worker/test_util.go +++ b/engine/executor/worker/test_util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package worker import ( @@ -9,7 +22,7 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/atomic" - "github.com/hanfei1991/microcosm/model" + "github.com/pingcap/tiflow/engine/model" ) type dummyWorker struct { diff --git a/engine/go.mod b/engine/go.mod deleted file mode 100644 index 19fe4b47e43..00000000000 --- a/engine/go.mod +++ /dev/null @@ -1,235 +0,0 @@ -module github.com/hanfei1991/microcosm - -go 1.18 - -require ( - github.com/BurntSushi/toml v1.0.0 - github.com/DATA-DOG/go-sqlmock v1.5.0 - github.com/benbjohnson/clock v1.3.0 - github.com/edwingeng/deque v0.0.0-20191220032131-8596380dee17 - github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424 - github.com/go-sql-driver/mysql v1.6.0 - github.com/gogo/protobuf v1.3.2 - github.com/gogo/status v1.1.0 - github.com/golang/mock v1.6.0 - github.com/google/uuid v1.2.0 - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 - github.com/modern-go/reflect2 v1.0.2 - github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2 - github.com/pingcap/check v0.0.0-20211026125417-57bd13f7b5f0 - github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c - github.com/pingcap/failpoint v0.0.0-20220303073211-00fea37feb66 - github.com/pingcap/log v0.0.0-20211215031037-e024ba4eb0ee - github.com/pingcap/tidb v1.1.0-beta.0.20220412180037-d07b66ea638c - github.com/pingcap/tidb-tools v6.0.0-alpha.0.20220317013353-dfc5146f4746+incompatible - github.com/pingcap/tiflow v0.0.0-20220418100802-8c4f693f6456 - github.com/prometheus/client_golang v1.12.2 - github.com/prometheus/client_model v0.2.0 - github.com/spf13/cobra v1.4.0 - github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.7.1 - go.etcd.io/etcd/api/v3 v3.5.2 - go.etcd.io/etcd/client/pkg/v3 v3.5.2 - go.etcd.io/etcd/client/v3 v3.5.2 - go.etcd.io/etcd/server/v3 v3.5.2 - go.uber.org/atomic v1.9.0 - go.uber.org/dig v1.13.0 - go.uber.org/goleak v1.1.12 - go.uber.org/ratelimit v0.2.0 - go.uber.org/zap v1.21.0 - golang.org/x/sync v0.0.0-20210220032951-036812b2e83c - golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 - google.golang.org/grpc v1.44.0 - gopkg.in/yaml.v2 v2.4.0 - gorm.io/driver/mysql v1.3.3 - gorm.io/driver/sqlite v1.3.2 - gorm.io/gorm v1.23.4 -) - -require ( - cloud.google.com/go v0.100.2 // indirect - cloud.google.com/go/compute v1.2.0 // indirect - cloud.google.com/go/iam v0.1.1 // indirect - cloud.google.com/go/storage v1.21.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0 // indirect - github.com/DataDog/zstd v1.4.6-0.20210211175136-c6db21d202f4 // indirect - github.com/Shopify/sarama v1.29.0 // indirect - github.com/VividCortex/ewma v1.1.1 // indirect - github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect - github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714 // indirect - github.com/aws/aws-sdk-go v1.35.3 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/blacktear23/go-proxyprotocol v0.0.0-20180807104634-af7a81e8dd0d // indirect - github.com/carlmjohnson/flagext v0.21.0 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/cheggaaa/pb/v3 v3.0.8 // indirect - github.com/cockroachdb/errors v1.8.1 // indirect - github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect - github.com/cockroachdb/pebble v0.0.0-20211124172904-3ca75111760c // indirect - github.com/cockroachdb/redact v1.0.8 // indirect - github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect - github.com/coocood/bbloom v0.0.0-20190830030839-58deb6228d64 // indirect - github.com/coocood/freecache v1.2.1 // indirect - github.com/coocood/rtutil v0.0.0-20190304133409-c84515f646f2 // indirect - github.com/coreos/go-semver v0.3.0 // indirect - github.com/coreos/go-systemd/v22 v22.3.2 // indirect - github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect - github.com/cznic/sortutil v0.0.0-20181122101858-f5f958428db8 // indirect - github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/deepmap/oapi-codegen v1.9.0 // indirect - github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d // indirect - github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect - github.com/docker/go-units v0.4.0 // indirect - github.com/dustin/go-humanize v1.0.0 // indirect - github.com/eapache/go-resiliency v1.2.0 // indirect - github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect - github.com/eapache/queue v1.1.0 // indirect - github.com/fatih/color v1.13.0 // indirect - github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect - github.com/getkin/kin-openapi v0.80.0 // indirect - github.com/ghodss/yaml v1.0.0 // indirect - github.com/gin-contrib/sse v0.1.0 // indirect - github.com/gin-gonic/gin v1.7.4 // indirect - github.com/go-mysql-org/go-mysql v1.4.1-0.20220221114137-89145541e0d4 // indirect - github.com/go-ole/go-ole v1.2.6 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/swag v0.19.5 // indirect - github.com/go-playground/locales v0.14.0 // indirect - github.com/go-playground/universal-translator v0.18.0 // indirect - github.com/go-playground/validator/v10 v10.9.0 // indirect - github.com/gogo/googleapis v1.1.0 // indirect - github.com/golang/glog v1.0.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.2 // indirect - github.com/golang/snappy v0.0.4 // indirect - github.com/google/btree v1.0.1 // indirect - github.com/google/go-cmp v0.5.7 // indirect - github.com/google/pprof v0.0.0-20211122183932-1daafda22083 // indirect - github.com/googleapis/gax-go/v2 v2.1.1 // indirect - github.com/gorilla/mux v1.8.0 // indirect - github.com/gorilla/websocket v1.4.2 // indirect - github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect - github.com/hashicorp/go-uuid v1.0.2 // indirect - github.com/iancoleman/strcase v0.2.0 // indirect - github.com/inconshreveable/mousetrap v1.0.0 // indirect - github.com/jcmturner/aescts/v2 v2.0.0 // indirect - github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect - github.com/jcmturner/gofork v1.0.0 // indirect - github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect - github.com/jcmturner/rpc/v2 v2.0.3 // indirect - github.com/jedib0t/go-pretty/v6 v6.2.2 // indirect - github.com/jinzhu/inflection v1.0.0 // indirect - github.com/jinzhu/now v1.1.5 // indirect - github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df // indirect - github.com/jonboulle/clockwork v0.2.2 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.15.1 // indirect - github.com/klauspost/cpuid v1.3.1 // indirect - github.com/kr/pretty v0.3.0 // indirect - github.com/kr/text v0.2.0 // indirect - github.com/leodido/go-urn v1.2.1 // indirect - github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect - github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect - github.com/mattn/go-colorable v0.1.12 // indirect - github.com/mattn/go-isatty v0.0.14 // indirect - github.com/mattn/go-runewidth v0.0.12 // indirect - github.com/mattn/go-sqlite3 v2.0.2+incompatible // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/ncw/directio v1.0.5 // indirect - github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7 // indirect - github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef // indirect - github.com/opentracing/basictracer-go v1.0.0 // indirect - github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/philhofer/fwd v1.1.1 // indirect - github.com/pierrec/lz4 v2.6.1+incompatible // indirect - github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580 // indirect - github.com/pingcap/fn v0.0.0-20200306044125-d5540d389059 // indirect - github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989 // indirect - github.com/pingcap/kvproto v0.0.0-20220328072018-6e75c12dbd73 // indirect - github.com/pingcap/sysutil v0.0.0-20220114020952-ea68d2dbf5b4 // indirect - github.com/pingcap/tidb/parser v0.0.0-20220412180037-d07b66ea638c // indirect - github.com/pingcap/tipb v0.0.0-20220215045658-d12dec7a7609 // indirect - github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect - github.com/prometheus/common v0.32.1 // indirect - github.com/prometheus/procfs v0.7.3 // indirect - github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect - github.com/rivo/uniseg v0.2.0 // indirect - github.com/rogpeppe/go-internal v1.8.0 // indirect - github.com/satori/go.uuid v1.2.0 // indirect - github.com/shirou/gopsutil/v3 v3.22.2 // indirect - github.com/shopspring/decimal v1.3.0 // indirect - github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect - github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0 // indirect - github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect - github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 // indirect - github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07 // indirect - github.com/sirupsen/logrus v1.8.1 // indirect - github.com/soheilhy/cmux v0.1.5 // indirect - github.com/stretchr/objx v0.2.0 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954 // indirect - github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2 // indirect - github.com/tikv/client-go/v2 v2.0.1-0.20220406091203-f73ec0e675f4 // indirect - github.com/tikv/pd/client v0.0.0-20220307081149-841fa61e9710 // indirect - github.com/tinylib/msgp v1.1.6 // indirect - github.com/tklauser/go-sysconf v0.3.9 // indirect - github.com/tklauser/numcpus v0.3.0 // indirect - github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect - github.com/twmb/murmur3 v1.1.3 // indirect - github.com/uber-go/atomic v1.4.0 // indirect - github.com/uber/jaeger-client-go v2.22.1+incompatible // indirect - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/ugorji/go/codec v1.2.6 // indirect - github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect - github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f // indirect - github.com/xdg/scram v1.0.3 // indirect - github.com/xdg/stringprep v1.0.3 // indirect - github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect - github.com/xitongsys/parquet-go v1.6.0 // indirect - github.com/yusufpapurcu/wmi v1.2.2 // indirect - go.etcd.io/bbolt v1.3.6 // indirect - go.etcd.io/etcd/client/v2 v2.305.2 // indirect - go.etcd.io/etcd/pkg/v3 v3.5.2 // indirect - go.etcd.io/etcd/raft/v3 v3.5.2 // indirect - go.opencensus.io v0.23.0 // indirect - go.opentelemetry.io/contrib v0.20.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 // indirect - go.opentelemetry.io/otel v0.20.0 // indirect - go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect - go.opentelemetry.io/otel/metric v0.20.0 // indirect - go.opentelemetry.io/otel/sdk v0.20.0 // indirect - go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect - go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect - go.opentelemetry.io/otel/trace v0.20.0 // indirect - go.opentelemetry.io/proto/otlp v0.7.0 // indirect - go.uber.org/multierr v1.8.0 // indirect - golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect - golang.org/x/exp v0.0.0-20200513190911-00229845015e // indirect - golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect - golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect - golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f // indirect - golang.org/x/text v0.3.7 // indirect - golang.org/x/tools v0.1.10 // indirect - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - google.golang.org/api v0.69.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8 // indirect - google.golang.org/protobuf v1.27.1 // indirect - gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect - modernc.org/mathutil v1.4.1 // indirect - sigs.k8s.io/yaml v1.2.0 // indirect - sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 // indirect - sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67 // indirect -) diff --git a/engine/go.sum b/engine/go.sum deleted file mode 100644 index 19b75c10683..00000000000 --- a/engine/go.sum +++ /dev/null @@ -1,1563 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= -cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= -cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= -cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= -cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= -cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= -cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= -cloud.google.com/go v0.100.2 h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y= -cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.2.0 h1:EKki8sSdvDU0OO9mAXGwPXOTOgPz2l08R0/IutDH11I= -cloud.google.com/go/compute v1.2.0/go.mod h1:xlogom/6gr8RJGBe7nT2eGsQYAFUbbv8dbC29qE3Xmw= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/iam v0.1.1 h1:4CapQyNFjiksks1/x7jsvsygFPhihslYk5GptIrlX68= -cloud.google.com/go/iam v0.1.1/go.mod h1:CKqrcnI/suGpybEHxZ7BMehL0oA4LpdyJdUlTl9jVMw= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.21.0 h1:HwnT2u2D309SFDHQII6m18HlrCi3jAXhUMTLOWXYH14= -cloud.google.com/go/storage v1.21.0/go.mod h1:XmRlxkgPjlBONznT2dDUU/5XlpU2OjMnKuqnZI01LAA= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0 h1:KQgdWmEOmaJKxaUUZwHAYh12t+b+ZJf8q3friycK1kA= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0/go.mod h1:ZPW/Z0kLCTdDZaDbYTetxc9Cxl/2lNqxYHYNOF2bti0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0 h1:VBvHGLJbaY0+c66NZHdS9cgjHVYSH6DDa0XJMyrblsI= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0/go.mod h1:GJzjM4SR9T0KyX5gKCVyz1ytD8FeWeUPCwtFCt1AyfE= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 h1:BUYIbDf/mMZ8945v3QkG3OuqGVyS4Iek0AOLwdRAYoc= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0 h1:62Ew5xXg5UCGIXDOM7+y4IL5/6mQJq1nenhBCJAeGX8= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0/go.mod h1:eHWhQKXc1Gv1DvWH//UzgWjWFEo0Pp4pH2vBzjBw8Fc= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.0.0 h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU= -github.com/BurntSushi/toml v1.0.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw= -github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= -github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= -github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/DataDog/zstd v1.4.6-0.20210211175136-c6db21d202f4 h1:++HGU87uq9UsSTlFeiOV9uZR3NpYkndUXeYyLv2DTc8= -github.com/DataDog/zstd v1.4.6-0.20210211175136-c6db21d202f4/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= -github.com/Jeffail/gabs/v2 v2.5.1 h1:ANfZYjpMlfTTKebycu4X1AgkVWumFVDYQl7JwOr4mDk= -github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= -github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= -github.com/Shopify/sarama v1.29.0 h1:ARid8o8oieau9XrHI55f/L3EoRAhm9px6sonbD7yuUE= -github.com/Shopify/sarama v1.29.0/go.mod h1:2QpgD79wpdAESqNQMxNc0KYMkycd4slxGdV3TWSVqrU= -github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/VividCortex/ewma v1.1.1 h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM= -github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA= -github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 h1:MzBOUgng9orim59UnfUTLRjMpd09C5uEVQ6RPGeCaVI= -github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129/go.mod h1:rFgpPQZYZ8vdbc+48xibu8ALc3yeyd64IhHS+PU6Yyg= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/thrift v0.0.0-20181112125854-24918abba929/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714 h1:Jz3KVLYY5+JO7rDiX0sAuRGtuv2vG01r17Y9nLMWNUw= -github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aws/aws-sdk-go v1.30.19/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= -github.com/aws/aws-sdk-go v1.35.3 h1:r0puXncSaAfRt7Btml2swUo74Kao+vKhO3VLjwDjK54= -github.com/aws/aws-sdk-go v1.35.3/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= -github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/blacktear23/go-proxyprotocol v0.0.0-20180807104634-af7a81e8dd0d h1:rQlvB2AYWme2bIB18r/SipGiMEVJYE9U0z+MGoU/LtQ= -github.com/blacktear23/go-proxyprotocol v0.0.0-20180807104634-af7a81e8dd0d/go.mod h1:VKt7CNAQxpFpSDz3sXyj9hY/GbVsQCr0sB3w59nE7lU= -github.com/cakturk/go-netstat v0.0.0-20200220111822-e5b49efee7a5 h1:BjkPE3785EwPhhyuFkbINB+2a1xATwk8SNDWnJiD41g= -github.com/carlmjohnson/flagext v0.21.0 h1:/c4uK3ie786Z7caXLcIMvePNSSiH3bQVGDvmGLMme60= -github.com/carlmjohnson/flagext v0.21.0/go.mod h1:Eenv0epIUAr4NuedNmkzI8WmBmjIxZC239XcKxYS2ac= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cheggaaa/pb/v3 v3.0.8 h1:bC8oemdChbke2FHIIGy9mn4DPJ2caZYQnfbRqwmdCoA= -github.com/cheggaaa/pb/v3 v3.0.8/go.mod h1:UICbiLec/XO6Hw6k+BHEtHeQFzzBH4i2/qk/ow1EJTA= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/datadriven v1.0.0 h1:uhZrAfEayBecH2w2tZmhe20HJ7hDvrrA4x2Bg9YdZKM= -github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= -github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= -github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= -github.com/cockroachdb/errors v1.8.1 h1:A5+txlVZfOqFBDa4mGz2bUWSp0aHElvHX2bKkdbQu+Y= -github.com/cockroachdb/errors v1.8.1/go.mod h1:qGwQn6JmZ+oMjuLwjWzUNqblqk0xl4CVV3SQbGwK7Ac= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f h1:o/kfcElHqOiXqcou5a3rIlMc7oJbMQkeLk0VQJ7zgqY= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= -github.com/cockroachdb/pebble v0.0.0-20211124172904-3ca75111760c h1:ZtrQD4SC7rV+b1apbqCt9pW23DU2KMRPNk8T+YiezPU= -github.com/cockroachdb/pebble v0.0.0-20211124172904-3ca75111760c/go.mod h1:JXfQr3d+XO4bL1pxGwKKo09xylQSdZ/mpZ9b2wfVcPs= -github.com/cockroachdb/redact v1.0.8 h1:8QG/764wK+vmEYoOlfobpe12EQcS81ukx/a4hdVMxNw= -github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 h1:IKgmqgMQlVJIZj19CdocBeSfSaiCbEBZGKODaixqtHM= -github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= -github.com/colinmarc/hdfs/v2 v2.1.1/go.mod h1:M3x+k8UKKmxtFu++uAZ0OtDU8jR3jnaZIAc6yK4Ue0c= -github.com/coocood/bbloom v0.0.0-20190830030839-58deb6228d64 h1:W1SHiII3e0jVwvaQFglwu3kS9NLxOeTpvik7MbKCyuQ= -github.com/coocood/bbloom v0.0.0-20190830030839-58deb6228d64/go.mod h1:F86k/6c7aDUdwSUevnLpHS/3Q9hzYCE99jGk2xsHnt0= -github.com/coocood/freecache v1.2.1 h1:/v1CqMq45NFH9mp/Pt142reundeBM0dVUD3osQBeu/U= -github.com/coocood/freecache v1.2.1/go.mod h1:RBUWa/Cy+OHdfTGFEhEuE1pMCMX51Ncizj7rthiQ3vk= -github.com/coocood/rtutil v0.0.0-20190304133409-c84515f646f2 h1:NnLfQ77q0G4k2Of2c1ceQ0ec6MkLQyDp+IGdVM0D8XM= -github.com/coocood/rtutil v0.0.0-20190304133409-c84515f646f2/go.mod h1:7qG7YFnOALvsx6tKTNmQot8d7cGFXM9TidzvRFLWYwM= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= -github.com/cznic/golex v0.0.0-20181122101858-9c343928389c/go.mod h1:+bmmJDNmKlhWNG+gwWCkaBoTy39Fs+bzRxVBzoTQbIc= -github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 h1:iwZdTE0PVqJCos1vaoKsclOGD3ADKpshg3SRtYBbwso= -github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= -github.com/cznic/parser v0.0.0-20160622100904-31edd927e5b1/go.mod h1:2B43mz36vGZNZEwkWi8ayRSSUXLfjL8OkbzwW4NcPMM= -github.com/cznic/sortutil v0.0.0-20181122101858-f5f958428db8 h1:LpMLYGyy67BoAFGda1NeOBQwqlv7nUXpm+rIVHGxZZ4= -github.com/cznic/sortutil v0.0.0-20181122101858-f5f958428db8/go.mod h1:q2w6Bg5jeox1B+QkJ6Wp/+Vn0G/bo3f1uY7Fn3vivIQ= -github.com/cznic/strutil v0.0.0-20171016134553-529a34b1c186/go.mod h1:AHHPPPXTw0h6pVabbcbyGRK1DckRn7r/STdZEeIDzZc= -github.com/cznic/y v0.0.0-20170802143616-045f81c6662a/go.mod h1:1rk5VM7oSnA4vjp+hrLQ3HWHa+Y4yPCa3/CsJrcNnvs= -github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37 h1:X6mKGhCFOxrKeeHAjv/3UvT6e5RRxW6wRdlqlV6/H4w= -github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37/go.mod h1:DC3JtzuG7kxMvJ6dZmf2ymjNyoXwgtklr7FN+Um2B0U= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d/go.mod h1:tmAIfUFEirG/Y8jhZ9M+h36obRZAk/1fcSpXwAVlfqE= -github.com/deepmap/oapi-codegen v1.9.0 h1:qpyRY+dzjMai5QejjA53ebnBtcSvIcZOtYwVlsgdxOc= -github.com/deepmap/oapi-codegen v1.9.0/go.mod h1:7t4DbSxmAffcTEgrWvsPYEE2aOARZ8ZKWp3hDuZkHNc= -github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d h1:Wrc3UKTS+cffkOx0xRGFC+ZesNuTfn0ThvEC72N0krk= -github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d/go.mod h1:RAy2GVV4sTWVlNMavv3xhLsk18rxhfhDnombTe6EF5c= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= -github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= -github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edwingeng/deque v0.0.0-20191220032131-8596380dee17 h1:8i9x3Q4hW1kLE4ScsOtUlwVHT76LKhkmOw9zbDxnyUc= -github.com/edwingeng/deque v0.0.0-20191220032131-8596380dee17/go.mod h1:3Ys1pJhyVaB6iWigv4o2r6Ug1GZmfDWqvqmO6bjojg0= -github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= -github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= -github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= -github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/form3tech-oss/jwt-go v3.2.5+incompatible h1:/l4kBbb4/vGSsdtB5nUe8L7B9mImVMaBPw9L/0TBHU8= -github.com/form3tech-oss/jwt-go v3.2.5+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/frankban/quicktest v1.11.3 h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= -github.com/fsouza/fake-gcs-server v1.19.0 h1:XyaGOlqo+R5sjT03x2ymk0xepaQlgwhRLTT2IopW0zA= -github.com/fzipp/gocyclo v0.3.1/go.mod h1:DJHO6AUmbdqj2ET4Z9iArSuwWgYDRryYt2wASxc7x3E= -github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= -github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424 h1:Vh7rylVZRZCj6W41lRlP17xPk4Nq260H4Xo/DDYmEZk= -github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424/go.mod h1:vmp8DIyckQMXOPl0AQVHt+7n5h7Gb7hS6CUydiV8QeA= -github.com/getkin/kin-openapi v0.80.0 h1:W/s5/DNnDCR8P+pYyafEWlGk4S7/AfQUWXgrRSSAzf8= -github.com/getkin/kin-openapi v0.80.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= -github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= -github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= -github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= -github.com/gin-gonic/gin v1.7.4 h1:QmUZXrvJ9qZ3GfWvQ+2wnW/1ePrTEJqPKMYEU3lD/DM= -github.com/gin-gonic/gin v1.7.4/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= -github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= -github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= -github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= -github.com/go-mysql-org/go-mysql v1.4.1-0.20220221114137-89145541e0d4 h1:6AopLIKxyLXWY8PRxIq0q33BedlkNNcJfgJSBZh6Bks= -github.com/go-mysql-org/go-mysql v1.4.1-0.20220221114137-89145541e0d4/go.mod h1:TRs381neMzw+J5+bobjUY2ZsIMgvp4wBCRBW274gc68= -github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= -github.com/go-playground/validator/v10 v10.9.0 h1:NgTtmN58D0m8+UuxtYmGztBJB7VnPgjj221I1QHci2A= -github.com/go-playground/validator/v10 v10.9.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= -github.com/go-sql-driver/mysql v1.3.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/goccy/go-json v0.7.8/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/googleapis v1.1.0 h1:kFkMAZBNAn4j7K0GiZr8cRYzejq68VbheufiV3YuyFI= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/gogo/status v1.1.0 h1:+eIkrewn5q6b30y+g/BJINVVdi2xH7je5MPJ3ZPK3JA= -github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.2-0.20190904063534-ff6b7dc882cf/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= -github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.2.1 h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ= -github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20211122183932-1daafda22083 h1:c8EUapQFi+kjzedr4c6WqbwMdmB95+oDBWZ5XFHFYxY= -github.com/google/pprof v0.0.0-20211122183932-1daafda22083/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= -github.com/googleapis/gax-go/v2 v2.1.1 h1:dp3bWCh+PPO1zjRRiCSczJav13sBvG4UhNyVTa1KqdU= -github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.1.0/go.mod h1:f5nM7jw/oeRSadq3xCzHAvxcr8HZnzsqU6ILg/0NiiE= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= -github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v0.0.0-20180228145832-27454136f036/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= -github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/integralist/go-findroot v0.0.0-20160518114804-ac90681525dc h1:4IZpk3M4m6ypx0IlRoEyEyY1gAdicWLMQ0NcG/gBnnA= -github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= -github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= -github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI= -github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= -github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= -github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= -github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= -github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= -github.com/jcmturner/gofork v0.0.0-20180107083740-2aebee971930/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.2 h1:6ZIM6b/JJN0X8UM43ZOM6Z4SJzla+a/u7scXFJzodkA= -github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aWNYyvBVK62bc= -github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= -github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= -github.com/jedib0t/go-pretty/v6 v6.2.2 h1:o3McN0rQ4X+IU+HduppSp9TwRdGLRW2rhJXy9CJaCRw= -github.com/jedib0t/go-pretty/v6 v6.2.2/go.mod h1:+nE9fyyHGil+PuISTCrp7avEdo6bqoMwqZnuiK2r2a0= -github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= -github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= -github.com/jinzhu/now v1.1.4/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= -github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= -github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= -github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/jmoiron/sqlx v1.3.3/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ= -github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df h1:Zrb0IbuLOGHL7nrO2WrcuNWgDTlzFv3zY69QMx4ggQE= -github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df/go.mod h1:mAVCUAYtW9NG31eB30umMSLKcDt6mCUWSjoSn5qBh0k= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= -github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= -github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d h1:cVtBfNW5XTHiKQe7jDaDBSh/EVM4XLPutLAGboIXuM0= -github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk= -github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U= -github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw= -github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.10.5/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.15.1 h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid v1.3.1 h1:5JNjFYYQrZeKRJ0734q51WCEEn2huer72Dc7K+R/b6s= -github.com/klauspost/cpuid v1.3.1/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= -github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= -github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= -github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/lestrrat-go/backoff/v2 v2.0.8/go.mod h1:rHP/q/r9aT27n24JQLa7JhSQZCKBBOiM/uP402WwN8Y= -github.com/lestrrat-go/blackmagic v1.0.0/go.mod h1:TNgH//0vYSs8VXDCfkZLgIrVTTXQELZffUV0tz3MtdQ= -github.com/lestrrat-go/codegen v1.0.2/go.mod h1:JhJw6OQAuPEfVKUCLItpaVLumDGWQznd1VaXrBk9TdM= -github.com/lestrrat-go/httpcc v1.0.0/go.mod h1:tGS/u00Vh5N6FHNkExqGGNId8e0Big+++0Gf8MBnAvE= -github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc= -github.com/lestrrat-go/jwx v1.2.7/go.mod h1:bw24IXWbavc0R2RsOtpXL7RtMyP589yZ1+L7kd09ZGA= -github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.12 h1:Y41i/hVW3Pgwr8gV+J23B9YEY0zxjptBuCWEaxmAOow= -github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= -github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -github.com/mattn/go-sqlite3 v1.14.12/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -github.com/mattn/go-sqlite3 v2.0.2+incompatible h1:qzw9c2GNT8UFrgWNDhCTqRqYUSmu/Dav/9Z58LGpk7U= -github.com/mattn/go-sqlite3 v2.0.2+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= -github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= -github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/nats-io/nats.go v1.8.1/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM= -github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/ncw/directio v1.0.4/go.mod h1:CKGdcN7StAaqjT7Qack3lAXeX4pjnyc46YeqZH1yWVY= -github.com/ncw/directio v1.0.5 h1:JSUBhdjEvVaJvOoyPAbcW0fnd0tvRXD76wEfZ1KcQz4= -github.com/ncw/directio v1.0.5/go.mod h1:rX/pKEYkOXBGOggmcyJeJGloCkleSvphPx2eV3t6ROk= -github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7 h1:7KAv7KMGTTqSmYZtNdcNTgsos+vFzULLwyElndwn+5c= -github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7/go.mod h1:iWMfgwqYW+e8n5lC/jjNEhwcjbRDpl5NT7n2h+4UNcI= -github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef h1:K0Fn+DoFqNqktdZtdV3bPQ/0cuYh2H4rkg0tytX/07k= -github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef/go.mod h1:7WjlapSfwQyo6LNmIvEWzsW1hbBQfpUO4JWnuQRmva8= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= -github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= -github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/getopt v0.0.0-20180729010549-6fdd0a2c7117/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2 h1:JhzVVoYvbOACxoUmOs6V/G4D5nPVUW73rKvXxP4XUJc= -github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= -github.com/philhofer/fwd v1.1.1 h1:GdGcTjf5RNAxwS4QLsiMzJYj5KEvPJD3Abr261yRQXQ= -github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= -github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= -github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580 h1:MKVFZuqFvAMiDtv3AbihOQ6rY5IE8LWflI1BuZ/hF0Y= -github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580/go.mod h1:upwDfet29M5y5koWilbWWA6ca3Lr0YVuzwX/DK58Vdk= -github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuMyLH/4HMTViQOJevkGiik3wW2AN9zb2fNQ= -github.com/pingcap/check v0.0.0-20191107115940-caf2b9e6ccf4/go.mod h1:PYMCGwN0JHjoqGr3HrZoD+b8Tgx8bKnArhSq8YVzUMc= -github.com/pingcap/check v0.0.0-20211026125417-57bd13f7b5f0 h1:HVl5539r48eA+uDuX/ziBmQCxzT1pGrzWbKuXT46Bq0= -github.com/pingcap/check v0.0.0-20211026125417-57bd13f7b5f0/go.mod h1:PYMCGwN0JHjoqGr3HrZoD+b8Tgx8bKnArhSq8YVzUMc= -github.com/pingcap/errors v0.11.0/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pingcap/errors v0.11.5-0.20190809092503-95897b64e011/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pingcap/errors v0.11.5-0.20201029093017-5a7df2af2ac7/go.mod h1:G7x87le1poQzLB/TqvTJI2ILrSgobnq4Ut7luOwvfvI= -github.com/pingcap/errors v0.11.5-0.20201126102027-b0a155152ca3/go.mod h1:G7x87le1poQzLB/TqvTJI2ILrSgobnq4Ut7luOwvfvI= -github.com/pingcap/errors v0.11.5-0.20210425183316-da1aaba5fb63/go.mod h1:X2r9ueLEUZgtx2cIogM0v4Zj5uvvzhuuiu7Pn8HzMPg= -github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c h1:xpW9bvK+HuuTmyFqUwr+jcCvpVkK7sumiz+ko5H9eq4= -github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c/go.mod h1:X2r9ueLEUZgtx2cIogM0v4Zj5uvvzhuuiu7Pn8HzMPg= -github.com/pingcap/failpoint v0.0.0-20210918120811-547c13e3eb00/go.mod h1:4qGtCB0QK0wBzKtFEGDhxXnSnbQApw1gc9siScUl8ew= -github.com/pingcap/failpoint v0.0.0-20220303073211-00fea37feb66 h1:v+/0tBl7umw+ZxfTeAId/R9pmb8fn2MqsrTHAs8qFAk= -github.com/pingcap/failpoint v0.0.0-20220303073211-00fea37feb66/go.mod h1:4qGtCB0QK0wBzKtFEGDhxXnSnbQApw1gc9siScUl8ew= -github.com/pingcap/fn v0.0.0-20200306044125-d5540d389059 h1:Pe2LbxRmbTfAoKJ65bZLmhahmvHm7n9DUxGRQT00208= -github.com/pingcap/fn v0.0.0-20200306044125-d5540d389059/go.mod h1:fMRU1BA1y+r89AxUoaAar4JjrhUkVDt0o0Np6V8XbDQ= -github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989 h1:surzm05a8C9dN8dIUmo4Be2+pMRb6f55i+UIYrluu2E= -github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989/go.mod h1:O17XtbryoCJhkKGbT62+L2OlrniwqiGLSqrmdHCMzZw= -github.com/pingcap/kvproto v0.0.0-20191211054548-3c6b38ea5107/go.mod h1:WWLmULLO7l8IOcQG+t+ItJ3fEcrL5FxF0Wu+HrMy26w= -github.com/pingcap/kvproto v0.0.0-20220302110454-c696585a961b/go.mod h1:IOdRDPLyda8GX2hE/jO7gqaCV/PNFh8BZQCQZXfIOqI= -github.com/pingcap/kvproto v0.0.0-20220304032058-ccd676426a27/go.mod h1:IOdRDPLyda8GX2hE/jO7gqaCV/PNFh8BZQCQZXfIOqI= -github.com/pingcap/kvproto v0.0.0-20220328072018-6e75c12dbd73 h1:jKixsi6Iw00hL0+o23hmr8BNzlsQP9pShHTOwyuf/Os= -github.com/pingcap/kvproto v0.0.0-20220328072018-6e75c12dbd73/go.mod h1:IOdRDPLyda8GX2hE/jO7gqaCV/PNFh8BZQCQZXfIOqI= -github.com/pingcap/log v0.0.0-20191012051959-b742a5d432e9/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= -github.com/pingcap/log v0.0.0-20200511115504-543df19646ad/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= -github.com/pingcap/log v0.0.0-20210317133921-96f4fcab92a4/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= -github.com/pingcap/log v0.0.0-20210625125904-98ed8e2eb1c7/go.mod h1:8AanEdAHATuRurdGxZXBz0At+9avep+ub7U1AGYLIMM= -github.com/pingcap/log v0.0.0-20211215031037-e024ba4eb0ee h1:VO2t6IBpfvW34TdtD/G10VvnGqjLic1jzOuHjUb5VqM= -github.com/pingcap/log v0.0.0-20211215031037-e024ba4eb0ee/go.mod h1:DWQW5jICDR7UJh4HtxXSM20Churx4CQL0fwL/SoOSA4= -github.com/pingcap/parser v0.0.0-20210415081931-48e7f467fd74/go.mod h1:xZC8I7bug4GJ5KtHhgAikjTfU4kBv1Sbo3Pf1MZ6lVw= -github.com/pingcap/sysutil v0.0.0-20220114020952-ea68d2dbf5b4 h1:HYbcxtnkN3s5tqrZ/z3eJS4j3Db8wMphEm1q10lY/TM= -github.com/pingcap/sysutil v0.0.0-20220114020952-ea68d2dbf5b4/go.mod h1:sDCsM39cGiv2vwunZkaFA917vVkqDTGSPbbV7z4Oops= -github.com/pingcap/tidb v1.1.0-beta.0.20220412180037-d07b66ea638c h1:RmHIavggUwZGmsLghSnp9wVnU0hIdB593X8QBbEj6xU= -github.com/pingcap/tidb v1.1.0-beta.0.20220412180037-d07b66ea638c/go.mod h1:zGjyE0LdvI8GHLESbdpzrJyCwCrxFzNaFNTQywhM8+k= -github.com/pingcap/tidb-tools v6.0.0-alpha.0.20220317013353-dfc5146f4746+incompatible h1:gmBthrqxfjHTLUpbS+PYIEVvSrlyip8s45JpUdWQwQ4= -github.com/pingcap/tidb-tools v6.0.0-alpha.0.20220317013353-dfc5146f4746+incompatible/go.mod h1:XGdcy9+yqlDSEMTpOXnwf3hiTeqrV6MN/u1se9N8yIM= -github.com/pingcap/tidb/parser v0.0.0-20220412180037-d07b66ea638c h1:OqbwYJzjxL17LeUGr3R6QHKoF42ogpwiaGm7MafPePM= -github.com/pingcap/tidb/parser v0.0.0-20220412180037-d07b66ea638c/go.mod h1:ElJiub4lRy6UZDb+0JHDkGEdr6aOli+ykhyej7VCLoI= -github.com/pingcap/tiflow v0.0.0-20220418100802-8c4f693f6456 h1:vZrGL9gncZIUC3ODl0sM1L649VAPUFjdmLufXoBjssw= -github.com/pingcap/tiflow v0.0.0-20220418100802-8c4f693f6456/go.mod h1:oWHB6O1hPUYg8Epqe+3/alGQTEUsehIcNCeIWXHYyEk= -github.com/pingcap/tipb v0.0.0-20220215045658-d12dec7a7609 h1:BiCS1ZRnW0szOvTAa3gCqWIhyo+hv83SVaBgrUghXIU= -github.com/pingcap/tipb v0.0.0-20220215045658-d12dec7a7609/go.mod h1:A7mrd7WHBl1o63LE2bIBGEJMTNWXqhgmYiOvMLxozfs= -github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98= -github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= -github.com/prometheus/client_golang v0.9.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34= -github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= -github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= -github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shirou/gopsutil/v3 v3.21.12/go.mod h1:BToYZVTlSVlfazpDDYFnsVZLaoRG+g8ufT6fPQLdJzA= -github.com/shirou/gopsutil/v3 v3.22.2 h1:wCrArWFkHYIdDxx/FSfF5RB4dpJYW6t7rcp3+zL8uks= -github.com/shirou/gopsutil/v3 v3.22.2/go.mod h1:WapW1AOOPlHyXr+yOyw3uYx36enocrtSoSBy0L5vUHY= -github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= -github.com/shopspring/decimal v1.3.0 h1:KK3gWIXskZ2O1U/JNTisNcvH+jveJxZYrjbTsrbbnh8= -github.com/shopspring/decimal v1.3.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 h1:bUGsEnyNbVPw06Bs80sCeARAlK8lhwqGyi6UT8ymuGk= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0 h1:mj/nMDAwTBiaCqMEs4cYCqF7pO6Np7vhy1D1wcQGz+E= -github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 h1:pXY9qYc/MP5zdvqWEUH6SjNiu7VhSjuVFTFiTcphaLU= -github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= -github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 h1:xT+JlYxNGqyT+XcU8iUrN18JYed2TvG9yN5ULG2jATM= -github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw= -github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07 h1:oI+RNwuC9jF2g2lP0u0cVEEZrc/AYBCuFdvwrLWM/6Q= -github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07/go.mod h1:yFdBgwXP24JziuRl2NMUahT7nGLNOKi1SIiFxMttVD4= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954 h1:xQdMZ1WLrgkkvOZ/LDQxjVxMLdby7osSh4ZEVa5sIjs= -github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM= -github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2 h1:mbAskLJ0oJfDRtkanvQPiooDH8HvJ2FBh+iKT/OmiQQ= -github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2/go.mod h1:2PfKggNGDuadAa0LElHrByyrz4JPZ9fFx6Gs7nx7ZZU= -github.com/tikv/client-go/v2 v2.0.1-0.20220406091203-f73ec0e675f4 h1:bi/tuV42dQCu7TTTOwHQW6cHVrV1fhet+Hzo5CUODBQ= -github.com/tikv/client-go/v2 v2.0.1-0.20220406091203-f73ec0e675f4/go.mod h1:0scaG+seu7L56apm+Gjz9vckyO7ABIzM6T7n00mrIXs= -github.com/tikv/pd v1.1.0-beta.0.20220303060546-3695d8164800 h1:lIfIwqe1HPa0suhMpiI200nYxau+rXWXTqZxSGg1HS4= -github.com/tikv/pd/client v0.0.0-20220307081149-841fa61e9710 h1:jxgmKOscXSjaFEKQGRyY5qOpK8hLqxs2irb/uDJMtwk= -github.com/tikv/pd/client v0.0.0-20220307081149-841fa61e9710/go.mod h1:AtvppPwkiyUgQlR1W9qSqfTB+OsOIu19jDCOxOsPkmU= -github.com/tinylib/msgp v1.1.6 h1:i+SbKraHhnrf9M5MYmvQhFnbLhAXSDWF8WWsuyRdocw= -github.com/tinylib/msgp v1.1.6/go.mod h1:75BAfg2hauQhs3qedfdDZmWAPcFMAvJE5b9rGOMufyw= -github.com/tklauser/go-sysconf v0.3.9 h1:JeUVdAOWhhxVcU6Eqr/ATFHgXk/mmiItdKeJPev3vTo= -github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs= -github.com/tklauser/numcpus v0.3.0 h1:ILuRUQBtssgnxw0XXIjKUC56fgnOrFoQQ/4+DeU2biQ= -github.com/tklauser/numcpus v0.3.0/go.mod h1:yFGUr7TUHQRAhyqBcEg0Ge34zDBAsIvJJcyE6boqnA8= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/twmb/murmur3 v1.1.3 h1:D83U0XYKcHRYwYIpBKf3Pks91Z0Byda/9SJ8B6EMRcA= -github.com/twmb/murmur3 v1.1.3/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ= -github.com/uber-go/atomic v1.4.0 h1:yOuPqEq4ovnhEjpHmfFwsqBXDYbQeT6Nb0bwD6XnD5o= -github.com/uber-go/atomic v1.4.0/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g= -github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM= -github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= -github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ= -github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw= -github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= -github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= -github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= -github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= -github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= -github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f h1:9DDCDwOyEy/gId+IEMrFHLuQ5R/WV0KNxWLler8X2OY= -github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f/go.mod h1:8sdOQnirw1PrcnTJYkmW1iOHtUmblMmGdUOHyWYycLI= -github.com/xdg/scram v1.0.3 h1:nTadYh2Fs4BK2xdldEa2g5bbaZp0/+1nJMMPtPxS/to= -github.com/xdg/scram v1.0.3/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v1.0.3 h1:cmL5Enob4W83ti/ZHuZLuKD/xqJfus4fVPwE+/BDm+4= -github.com/xdg/stringprep v1.0.3/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xitongsys/parquet-go v1.5.1/go.mod h1:xUxwM8ELydxh4edHGegYq1pA8NnMKDx0K/GyB0o2bww= -github.com/xitongsys/parquet-go v1.6.0 h1:j6YrTVZdQx5yywJLIOklZcKVsCoSD1tqOVRXyTBFSjs= -github.com/xitongsys/parquet-go v1.6.0/go.mod h1:pheqtXeHQFzxJk45lRQ0UIGIivKnLXvialZSFWs81A8= -github.com/xitongsys/parquet-go-source v0.0.0-20190524061010-2b72cbee77d5/go.mod h1:xxCx7Wpym/3QCo6JhujJX51dzSXrwmb0oH6FQb39SEA= -github.com/xitongsys/parquet-go-source v0.0.0-20200817004010-026bad9b25d0 h1:a742S4V5A15F93smuVxA60LQWsrCnN8bKeWDBARU1/k= -github.com/xitongsys/parquet-go-source v0.0.0-20200817004010-026bad9b25d0/go.mod h1:HYhIKsdns7xz80OgkbgJYrtQY7FjHWHKH6cvN7+czGE= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= -github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/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/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= -go.etcd.io/etcd/api/v3 v3.5.2 h1:tXok5yLlKyuQ/SXSjtqHc4uzNaMqZi2XsoSPr/LlJXI= -go.etcd.io/etcd/api/v3 v3.5.2/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= -go.etcd.io/etcd/client/pkg/v3 v3.5.2 h1:4hzqQ6hIb3blLyQ8usCU4h3NghkqcsohEQ3o3VetYxE= -go.etcd.io/etcd/client/pkg/v3 v3.5.2/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.2 h1:ymrVwTkefuqA/rPkSW7/B4ApijbPVefRumkY+stNfS0= -go.etcd.io/etcd/client/v2 v2.305.2/go.mod h1:2D7ZejHVMIfog1221iLSYlQRzrtECw3kz4I4VAQm3qI= -go.etcd.io/etcd/client/v3 v3.5.2 h1:WdnejrUtQC4nCxK0/dLTMqKOB+U5TP/2Ya0BJL+1otA= -go.etcd.io/etcd/client/v3 v3.5.2/go.mod h1:kOOaWFFgHygyT0WlSmL8TJiXmMysO/nNUlEsSsN6W4o= -go.etcd.io/etcd/pkg/v3 v3.5.2 h1:YZUojdoPhOyl5QILYnR8LTUbbNefu/sV4ma+ZMr2tto= -go.etcd.io/etcd/pkg/v3 v3.5.2/go.mod h1:zsXz+9D/kijzRiG/UnFGDTyHKcVp0orwiO8iMLAi+k0= -go.etcd.io/etcd/raft/v3 v3.5.2 h1:uCC37qOXqBvKqTGHGyhASsaCsnTuJugl1GvneJNwHWo= -go.etcd.io/etcd/raft/v3 v3.5.2/go.mod h1:G6pCP1sFgbjod7/KnEHY0vHUViqxjkdt6AiKsD0GRr8= -go.etcd.io/etcd/server/v3 v3.5.2 h1:B6ytJvS4Fmt8nkjzS2/8POf4tuPhFMluE0lWd4dx/7U= -go.etcd.io/etcd/server/v3 v3.5.2/go.mod h1:mlG8znIEz4N/28GABrohZCBM11FqgGVQcpbcyJgh0j0= -go.etcd.io/etcd/tests/v3 v3.5.2 h1:uk7/uMGVebpBDl+roivowHt6gJ5Fnqwik3syDkoSKdo= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/contrib v0.20.0 h1:ubFQUn0VCZ0gPwIoJfBJVpeBlyRMxu8Mm/huKWYd9p0= -go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 h1:sO4WKdPAudZGKPcpZT4MJn6JaDmpyLrMPDGGyA1SttE= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= -go.opentelemetry.io/otel v0.20.0 h1:eaP0Fqu7SXHwvjiqDq83zImeehOHX8doTvU9AwXON8g= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/metric v0.20.0 h1:4kzhXFP+btKm4jwxpjIqjs41A7MakRFUS86bqLHTIw8= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/oteltest v0.20.0 h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0 h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0 h1:c5VRjxCXdQlx1HjzwGdQHzZaVI82b5EbBgOu2ljD92g= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0 h1:7ao1wpzHRVKf0OQ7GIxiQJA6X7DLX9o14gmVon7mMK8= -go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0 h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52lqtnbw= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/dig v1.13.0 h1:bb9lVW3gtpQsNb07d0xL5vFwsjHidPJxaR/zSsbmfVQ= -go.uber.org/dig v1.13.0/go.mod h1:X34SnWGr8Fyla9zQNO2GSO2D+TIuqB14OS8JhYocIyw= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= -go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/ratelimit v0.2.0 h1:UQE2Bgi7p2B85uP5dC2bbRtig0C+OeNRnNEafLjsLPA= -go.uber.org/ratelimit v0.2.0/go.mod h1:YYBV4e4naJvhpitQrWJu1vCpgB7CboMe0qhltKt6mUg= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.12.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= -go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.20.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -go.uber.org/zap v1.21.0 h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8= -go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -golang.org/x/crypto v0.0.0-20180723164146-c126467f60eb/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201217014255-9d1352758620/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/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-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/exp v0.0.0-20181106170214-d68db9428509/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20200513190911-00229845015e h1:rMqLP+9XLy+LdbCXHjJHAmTfXCr93W7oruWA6Hq1Alc= -golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210427231257-85d9c07bbe3a/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211031064116-611d5d643895/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220111092808-5a964db01320/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f h1:8w7RhxzTVgUzw/AH/9mUV5q0vMgy40SQRursCcfmkCw= -golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 h1:M73Iuj3xbbb9Uk1DYhzydthsj6oOd6l9bpuFcNoUvTs= -golang.org/x/time v0.0.0-20220224211638-0e9765cccd65/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191030062658-86caa796c7ab/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191107010934-f79515f33823/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20200918232735-d647fc253266/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201125231158-b5590deeca9b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210114065538-d78b04bdf963/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= -google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= -google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= -google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= -google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= -google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= -google.golang.org/api v0.64.0/go.mod h1:931CdxA8Rm4t6zqTFGSsgwbAEZ2+GMYurbndwSimebM= -google.golang.org/api v0.66.0/go.mod h1:I1dmXYpX7HGwz/ejRxwQp2qj5bFAz93HiCU1C1oYd9M= -google.golang.org/api v0.69.0 h1:yHW5s2SFyDapr/43kYtIQmoaaFVW4baLMLwqV4auj2A= -google.golang.org/api v0.69.0/go.mod h1:boanBiw+h5c3s+tBPgEzLDRHfFLWV0qXxRHz3ws7C80= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= -google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220111164026-67b88f271998/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220114231437-d2e6a121cae0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220201184016-50beb8ab5c44/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220211171837-173942840c17/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8 h1:divpuJZKgX3Qt7MFDE5v62yu0yQcQbTCD9VJp9leX58= -google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.44.0 h1:weqSxi/TMs1SqFRMHCtBgXRs8k3X39QIDEZ0pRcttUg= -google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo= -gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q= -gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4= -gopkg.in/jcmturner/gokrb5.v7 v7.3.0/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM= -gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8= -gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= -gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gorm.io/driver/mysql v1.3.3 h1:jXG9ANrwBc4+bMvBcSl8zCfPBaVoPyBEBshA8dA93X8= -gorm.io/driver/mysql v1.3.3/go.mod h1:ChK6AHbHgDCFZyJp0F+BmVGb06PSIoh9uVYKAlRbb2U= -gorm.io/driver/sqlite v1.3.2 h1:nWTy4cE52K6nnMhv23wLmur9Y3qWbZvOBz+V4PrGAxg= -gorm.io/driver/sqlite v1.3.2/go.mod h1:B+8GyC9K7VgzJAcrcXMRPdnMcck+8FgJynEehEPM16U= -gorm.io/gorm v1.23.1/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= -gorm.io/gorm v1.23.4 h1:1BKWM67O6CflSLcwGQR7ccfmC4ebOxQrTfOQGRE9wjg= -gorm.io/gorm v1.23.4/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -modernc.org/fileutil v1.0.0/go.mod h1:JHsWpkrk/CnVV1H/eGlFf85BEpfkrp56ro8nojIq9Q8= -modernc.org/golex v1.0.1/go.mod h1:QCA53QtsT1NdGkaZZkF5ezFwk4IXh4BGNafAARTC254= -modernc.org/lex v1.0.0/go.mod h1:G6rxMTy3cH2iA0iXL/HRRv4Znu8MK4higxph/lE7ypk= -modernc.org/lexer v1.0.0/go.mod h1:F/Dld0YKYdZCLQ7bD0USbWL4YKCyTDRDHiDTOs0q0vk= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/mathutil v1.4.1 h1:ij3fYGe8zBF4Vu+g0oT7mB06r8sqGWKuJu1yXeR4by8= -modernc.org/mathutil v1.4.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= -modernc.org/parser v1.0.0/go.mod h1:H20AntYJ2cHHL6MHthJ8LZzXCdDCHMWt1KZXtIMjejA= -modernc.org/parser v1.0.2/go.mod h1:TXNq3HABP3HMaqLK7brD1fLA/LfN0KS6JxZn71QdDqs= -modernc.org/scanner v1.0.1/go.mod h1:OIzD2ZtjYk6yTuyqZr57FmifbM9fIH74SumloSsajuE= -modernc.org/sortutil v1.0.0/go.mod h1:1QO0q8IlIlmjBIwm6t/7sof874+xCfZouyqZMLIAtxM= -modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/strutil v1.1.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/y v1.0.1/go.mod h1:Ho86I+LVHEI+LYXoUKlmOMAM1JTXOCfj8qi1T8PsClE= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= -sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67 h1:e1sMhtVq9AfcEy8AXNb8eSg6gbzfdpYhoNqnPJa+GzI= -sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k= diff --git a/engine/jobmaster/cvsJob/cvsJobMaster.go b/engine/jobmaster/cvsJob/cvsJobMaster.go index 3d1578c6fac..12452843627 100644 --- a/engine/jobmaster/cvsJob/cvsJobMaster.go +++ b/engine/jobmaster/cvsJob/cvsJobMaster.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package cvs import ( @@ -13,16 +26,16 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - cvsTask "github.com/hanfei1991/microcosm/executor/cvsTask" - "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/p2p" + cvsTask "github.com/pingcap/tiflow/engine/executor/cvsTask" + "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // Config records all configurations of cvs job diff --git a/engine/jobmaster/cvsJob/cvsJobMaster_test.go b/engine/jobmaster/cvsJob/cvsJobMaster_test.go index 13be274831a..f2a96c1d65e 100644 --- a/engine/jobmaster/cvsJob/cvsJobMaster_test.go +++ b/engine/jobmaster/cvsJob/cvsJobMaster_test.go @@ -1,6 +1,19 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package cvs -import "github.com/hanfei1991/microcosm/lib" +import "github.com/pingcap/tiflow/engine/lib" // TODO more unit test cases diff --git a/engine/jobmaster/dm/checkpoint/agent.go b/engine/jobmaster/dm/checkpoint/agent.go index f1da8533f88..0378b276cce 100644 --- a/engine/jobmaster/dm/checkpoint/agent.go +++ b/engine/jobmaster/dm/checkpoint/agent.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package checkpoint import ( @@ -6,14 +19,14 @@ import ( "fmt" "sync" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" "github.com/pingcap/tidb-tools/pkg/dbutil" dmconfig "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/pkg/conn" "github.com/pingcap/tiflow/dm/pkg/cputil" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" "go.uber.org/zap" ) diff --git a/engine/jobmaster/dm/checkpoint/agent_test.go b/engine/jobmaster/dm/checkpoint/agent_test.go index 62b6fc8906b..e70d8f874ea 100644 --- a/engine/jobmaster/dm/checkpoint/agent_test.go +++ b/engine/jobmaster/dm/checkpoint/agent_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package checkpoint import ( @@ -13,9 +26,9 @@ import ( "github.com/pingcap/tiflow/dm/pkg/conn" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" ) func TestTableName(t *testing.T) { diff --git a/engine/jobmaster/dm/config/config.go b/engine/jobmaster/dm/config/config.go index 32aacd70c4e..e254b475994 100644 --- a/engine/jobmaster/dm/config/config.go +++ b/engine/jobmaster/dm/config/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/engine/jobmaster/dm/config/config_test.go b/engine/jobmaster/dm/config/config_test.go index 65efd9f908c..c5273ab3b57 100644 --- a/engine/jobmaster/dm/config/config_test.go +++ b/engine/jobmaster/dm/config/config_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/engine/jobmaster/dm/dm_jobmaster.go b/engine/jobmaster/dm/dm_jobmaster.go index 75819e1e78a..205916653e6 100644 --- a/engine/jobmaster/dm/dm_jobmaster.go +++ b/engine/jobmaster/dm/dm_jobmaster.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -9,18 +22,18 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/jobmaster/dm/checkpoint" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - dmpkg "github.com/hanfei1991/microcosm/pkg/dm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/jobmaster/dm/checkpoint" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + dmpkg "github.com/pingcap/tiflow/engine/pkg/dm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // JobMaster defines job master of dm job diff --git a/engine/jobmaster/dm/dm_jobmaster_test.go b/engine/jobmaster/dm/dm_jobmaster_test.go index 0db6e4f5105..a5a89d29037 100644 --- a/engine/jobmaster/dm/dm_jobmaster_test.go +++ b/engine/jobmaster/dm/dm_jobmaster_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -10,29 +23,29 @@ import ( "time" "github.com/DATA-DOG/go-sqlmock" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" "github.com/pingcap/tiflow/dm/pkg/conn" "github.com/pingcap/tiflow/dm/pkg/log" - - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/lib" - libMetadata "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/registry" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - dmpkg "github.com/hanfei1991/microcosm/pkg/dm" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - kvmock "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/lib" + libMetadata "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/registry" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + dmpkg "github.com/pingcap/tiflow/engine/pkg/dm" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + kvmock "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/engine/jobmaster/dm/message_agent.go b/engine/jobmaster/dm/message_agent.go index 1d5df9782be..dcceeba7d71 100644 --- a/engine/jobmaster/dm/message_agent.go +++ b/engine/jobmaster/dm/message_agent.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -5,15 +18,15 @@ import ( "sync" "time" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - dmpkg "github.com/hanfei1991/microcosm/pkg/dm" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" "github.com/pingcap/errors" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + dmpkg "github.com/pingcap/tiflow/engine/pkg/dm" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) var defaultMessageTimeOut = time.Second * 2 diff --git a/engine/jobmaster/dm/message_agent_test.go b/engine/jobmaster/dm/message_agent_test.go index 5d94c4a7141..6d1dc11dcff 100644 --- a/engine/jobmaster/dm/message_agent_test.go +++ b/engine/jobmaster/dm/message_agent_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -6,17 +19,17 @@ import ( "sync" "testing" - "github.com/hanfei1991/microcosm/lib/master" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/lib/master" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - dmpkg "github.com/hanfei1991/microcosm/pkg/dm" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + dmpkg "github.com/pingcap/tiflow/engine/pkg/dm" ) func TestUpdateWorkerHandle(t *testing.T) { diff --git a/engine/jobmaster/dm/metadata/ddl.go b/engine/jobmaster/dm/metadata/ddl.go index cd6e29dc16d..35945f97a1f 100644 --- a/engine/jobmaster/dm/metadata/ddl.go +++ b/engine/jobmaster/dm/metadata/ddl.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // DDL represents the state of ddls. diff --git a/engine/jobmaster/dm/metadata/job.go b/engine/jobmaster/dm/metadata/job.go index 159b3ed50b4..ca5bc3741cc 100644 --- a/engine/jobmaster/dm/metadata/job.go +++ b/engine/jobmaster/dm/metadata/job.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -5,10 +18,10 @@ import ( "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // TaskStage represents internal stage of a task diff --git a/engine/jobmaster/dm/metadata/job_test.go b/engine/jobmaster/dm/metadata/job_test.go index e48dc857d53..8348c5245dc 100644 --- a/engine/jobmaster/dm/metadata/job_test.go +++ b/engine/jobmaster/dm/metadata/job_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -6,9 +19,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" ) const ( diff --git a/engine/jobmaster/dm/metadata/metadata.go b/engine/jobmaster/dm/metadata/metadata.go index 4632cfe502a..9bce7a3f8cc 100644 --- a/engine/jobmaster/dm/metadata/metadata.go +++ b/engine/jobmaster/dm/metadata/metadata.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // MetaData is the metadata of dm. diff --git a/engine/jobmaster/dm/metadata/state.go b/engine/jobmaster/dm/metadata/state.go index 07ca0c5a9ca..53ddbd4c971 100644 --- a/engine/jobmaster/dm/metadata/state.go +++ b/engine/jobmaster/dm/metadata/state.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -9,7 +22,7 @@ import ( "github.com/BurntSushi/toml" "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // State represents the state which need to be stored in metadata. diff --git a/engine/jobmaster/dm/metadata/state_test.go b/engine/jobmaster/dm/metadata/state_test.go index 95eae06e96e..5302e46b12c 100644 --- a/engine/jobmaster/dm/metadata/state_test.go +++ b/engine/jobmaster/dm/metadata/state_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -8,7 +21,7 @@ import ( "github.com/BurntSushi/toml" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" ) type DummyState struct { diff --git a/engine/jobmaster/dm/runtime/task_status.go b/engine/jobmaster/dm/runtime/task_status.go index 1a29ff08380..046f8397bc5 100644 --- a/engine/jobmaster/dm/runtime/task_status.go +++ b/engine/jobmaster/dm/runtime/task_status.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package runtime import ( @@ -5,9 +18,9 @@ import ( "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) // TaskStatus defines an interface to manage common fields of a task diff --git a/engine/jobmaster/dm/runtime/task_status_test.go b/engine/jobmaster/dm/runtime/task_status_test.go index 4a25581f366..c2561877ce7 100644 --- a/engine/jobmaster/dm/runtime/task_status_test.go +++ b/engine/jobmaster/dm/runtime/task_status_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package runtime import ( @@ -5,9 +18,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) func TestTaskStatus(t *testing.T) { diff --git a/engine/jobmaster/dm/runtime/worker_status.go b/engine/jobmaster/dm/runtime/worker_status.go index 2e66dcc9131..687b1eb8759 100644 --- a/engine/jobmaster/dm/runtime/worker_status.go +++ b/engine/jobmaster/dm/runtime/worker_status.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package runtime import ( "time" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) // HeartbeatInterval is heartbeat interval for checking worker stage diff --git a/engine/jobmaster/dm/runtime/worker_status_test.go b/engine/jobmaster/dm/runtime/worker_status_test.go index fde4151bfba..b78ea317bd4 100644 --- a/engine/jobmaster/dm/runtime/worker_status_test.go +++ b/engine/jobmaster/dm/runtime/worker_status_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package runtime import ( @@ -6,7 +19,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" + "github.com/pingcap/tiflow/engine/lib" ) func TestWorkerStatus(t *testing.T) { diff --git a/engine/jobmaster/dm/task_manager.go b/engine/jobmaster/dm/task_manager.go index 69c17055115..fc430e521c3 100644 --- a/engine/jobmaster/dm/task_manager.go +++ b/engine/jobmaster/dm/task_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -9,10 +22,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/jobmaster/dm/ticker" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/jobmaster/dm/ticker" ) // OperateType represents internal operate type in DM diff --git a/engine/jobmaster/dm/task_manager_test.go b/engine/jobmaster/dm/task_manager_test.go index 58570fefe9f..f7c8f067a65 100644 --- a/engine/jobmaster/dm/task_manager_test.go +++ b/engine/jobmaster/dm/task_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -8,11 +21,11 @@ import ( "github.com/pingcap/errors" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" ) const ( diff --git a/engine/jobmaster/dm/ticker/ticker.go b/engine/jobmaster/dm/ticker/ticker.go index 24762553986..002c2fe6590 100644 --- a/engine/jobmaster/dm/ticker/ticker.go +++ b/engine/jobmaster/dm/ticker/ticker.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package ticker import ( diff --git a/engine/jobmaster/dm/ticker/ticker_test.go b/engine/jobmaster/dm/ticker/ticker_test.go index 9229879a3f1..5c08fc3f5dd 100644 --- a/engine/jobmaster/dm/ticker/ticker_test.go +++ b/engine/jobmaster/dm/ticker/ticker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package ticker import ( diff --git a/engine/jobmaster/dm/utils.go b/engine/jobmaster/dm/utils.go index 47a3a1542c4..7d8b15619f0 100644 --- a/engine/jobmaster/dm/utils.go +++ b/engine/jobmaster/dm/utils.go @@ -1,7 +1,20 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // NewDMResourceID returns a ResourceID in DM's style. Currently only support local resource. diff --git a/engine/jobmaster/dm/worker_manager.go b/engine/jobmaster/dm/worker_manager.go index 0c03d896659..5c73097f31f 100644 --- a/engine/jobmaster/dm/worker_manager.go +++ b/engine/jobmaster/dm/worker_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -5,17 +18,17 @@ import ( "sync" "time" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" dmconfig "github.com/pingcap/tiflow/dm/dm/config" "github.com/pingcap/tiflow/dm/pkg/log" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/jobmaster/dm/ticker" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/jobmaster/dm/ticker" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) var ( diff --git a/engine/jobmaster/dm/worker_manager_test.go b/engine/jobmaster/dm/worker_manager_test.go index d22288ccacd..7de6b329888 100644 --- a/engine/jobmaster/dm/worker_manager_test.go +++ b/engine/jobmaster/dm/worker_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -5,17 +18,17 @@ import ( "sync" "time" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" "github.com/pingcap/errors" dmconfig "github.com/pingcap/tiflow/dm/dm/config" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/jobmaster/dm/config" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - "github.com/hanfei1991/microcosm/jobmaster/dm/runtime" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - kvmock "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/jobmaster/dm/config" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + "github.com/pingcap/tiflow/engine/jobmaster/dm/runtime" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + kvmock "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" "github.com/stretchr/testify/mock" ) diff --git a/engine/jobmaster/example/master_impl.go b/engine/jobmaster/example/master_impl.go index 24ffa1d3b9d..a3223038582 100644 --- a/engine/jobmaster/example/master_impl.go +++ b/engine/jobmaster/example/master_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package example import ( @@ -7,9 +20,9 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) const ( diff --git a/engine/jobmaster/example/master_impl_test.go b/engine/jobmaster/example/master_impl_test.go index bd6822acd0f..94a3f60f08f 100644 --- a/engine/jobmaster/example/master_impl_test.go +++ b/engine/jobmaster/example/master_impl_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package example import ( @@ -9,8 +22,8 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) const ( diff --git a/engine/jobmaster/example/worker_impl.go b/engine/jobmaster/example/worker_impl.go index a594715d26e..18bf3628006 100644 --- a/engine/jobmaster/example/worker_impl.go +++ b/engine/jobmaster/example/worker_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package example import ( @@ -9,9 +22,9 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) var _ lib.Worker = &exampleWorker{} diff --git a/engine/jobmaster/example/worker_impl_test.go b/engine/jobmaster/example/worker_impl_test.go index 363d6df7e93..6831ef7a1fa 100644 --- a/engine/jobmaster/example/worker_impl_test.go +++ b/engine/jobmaster/example/worker_impl_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package example import ( @@ -5,8 +18,8 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/require" diff --git a/engine/lib/base_jobmaster.go b/engine/lib/base_jobmaster.go index 134d7c46728..cd34e46a2fd 100644 --- a/engine/lib/base_jobmaster.go +++ b/engine/lib/base_jobmaster.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -6,15 +19,15 @@ import ( "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/pkg/log" - "github.com/hanfei1991/microcosm/executor/worker" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/errctx" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/executor/worker" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/errctx" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // BaseJobMaster defines an interface that can workr as a job master, it embeds diff --git a/engine/lib/base_jobmaster_test.go b/engine/lib/base_jobmaster_test.go index a1b8d7b419f..812602d900d 100644 --- a/engine/lib/base_jobmaster_test.go +++ b/engine/lib/base_jobmaster_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -9,14 +22,14 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/client" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - mockkv "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/client" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + mockkv "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // testJobMasterImpl is a mock JobMasterImpl used to test diff --git a/engine/lib/common.go b/engine/lib/common.go index df3f339a491..d6aa5bbf3b9 100644 --- a/engine/lib/common.go +++ b/engine/lib/common.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/lib/master" - "github.com/hanfei1991/microcosm/lib/model" + "github.com/pingcap/tiflow/engine/lib/master" + "github.com/pingcap/tiflow/engine/lib/model" ) type ( diff --git a/engine/lib/config/timeouts.go b/engine/lib/config/timeouts.go index 8e57b5d1d12..891e70f3567 100644 --- a/engine/lib/config/timeouts.go +++ b/engine/lib/config/timeouts.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import "time" diff --git a/engine/lib/config/timeouts_test.go b/engine/lib/config/timeouts_test.go index 44c62a7eb69..01c913b6fa8 100644 --- a/engine/lib/config/timeouts_test.go +++ b/engine/lib/config/timeouts_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/engine/lib/fake/fake_master.go b/engine/lib/fake/fake_master.go index d48df7d78ef..8e62560e7ae 100644 --- a/engine/lib/fake/fake_master.go +++ b/engine/lib/fake/fake_master.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package fake import ( @@ -12,14 +25,14 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) /* diff --git a/engine/lib/fake/fake_worker.go b/engine/lib/fake/fake_worker.go index a3e1295cafa..bc9ca2cb0f3 100644 --- a/engine/lib/fake/fake_worker.go +++ b/engine/lib/fake/fake_worker.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package fake import ( @@ -16,12 +29,12 @@ import ( "golang.org/x/time/rate" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) var _ lib.Worker = (*dummyWorker)(nil) diff --git a/engine/lib/master.go b/engine/lib/master.go index 19d0aafb673..56c62b26493 100644 --- a/engine/lib/master.go +++ b/engine/lib/master.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -14,29 +27,29 @@ import ( "go.uber.org/dig" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/client" - runtime "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/lib/config" - "github.com/hanfei1991/microcosm/lib/master" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/errctx" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/quota" - "github.com/hanfei1991/microcosm/pkg/tenant" - "github.com/hanfei1991/microcosm/pkg/uuid" + "github.com/pingcap/tiflow/engine/client" + runtime "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/lib/config" + "github.com/pingcap/tiflow/engine/lib/master" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/errctx" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/quota" + "github.com/pingcap/tiflow/engine/pkg/tenant" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) // Master defines a basic interface that can run in dataflow engine runtime diff --git a/engine/lib/master/events.go b/engine/lib/master/events.go index 4e1ccd18c49..ab49ba636fe 100644 --- a/engine/lib/master/events.go +++ b/engine/lib/master/events.go @@ -1,6 +1,19 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master -import libModel "github.com/hanfei1991/microcosm/lib/model" +import libModel "github.com/pingcap/tiflow/engine/lib/model" type masterEventType int32 diff --git a/engine/lib/master/mock_handle.go b/engine/lib/master/mock_handle.go index 12c055f8caf..6495c71a801 100644 --- a/engine/lib/master/mock_handle.go +++ b/engine/lib/master/mock_handle.go @@ -1,16 +1,29 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master import ( "context" - derror "github.com/hanfei1991/microcosm/pkg/errors" + derror "github.com/pingcap/tiflow/engine/pkg/errors" "go.uber.org/atomic" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // MockHandle implements WorkerHandle, it can work as either a RunningHandle or diff --git a/engine/lib/master/worker_entry.go b/engine/lib/master/worker_entry.go index 45dfb89e148..5b8aced5c23 100644 --- a/engine/lib/master/worker_entry.go +++ b/engine/lib/master/worker_entry.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master import ( @@ -9,8 +22,8 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" ) // workerEntryState is the state of a worker diff --git a/engine/lib/master/worker_handle.go b/engine/lib/master/worker_handle.go index fc21e1357bf..22fd3a9d3f9 100644 --- a/engine/lib/master/worker_handle.go +++ b/engine/lib/master/worker_handle.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master import ( @@ -6,10 +19,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // BaseHandle provides some common api of a worker, no matter it is running or dead. diff --git a/engine/lib/master/worker_manager.go b/engine/lib/master/worker_manager.go index 7c6e762384c..5a9af5717ea 100644 --- a/engine/lib/master/worker_manager.go +++ b/engine/lib/master/worker_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master import ( @@ -9,16 +22,16 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib/config" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - "github.com/hanfei1991/microcosm/pkg/errctx" - derror "github.com/hanfei1991/microcosm/pkg/errors" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib/config" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + "github.com/pingcap/tiflow/engine/pkg/errctx" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) type ( diff --git a/engine/lib/master/worker_manager_test.go b/engine/lib/master/worker_manager_test.go index da77ce6bd12..a0a8a8d688d 100644 --- a/engine/lib/master/worker_manager_test.go +++ b/engine/lib/master/worker_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package master import ( @@ -11,14 +24,14 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - "github.com/hanfei1991/microcosm/lib/config" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/pkg/clock" - derror "github.com/hanfei1991/microcosm/pkg/errors" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib/config" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/pkg/clock" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) type workerManageTestSuite struct { diff --git a/engine/lib/master_test.go b/engine/lib/master_test.go index 27414299988..9c7edf78b8f 100644 --- a/engine/lib/master_test.go +++ b/engine/lib/master_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -9,13 +22,13 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/uuid" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) const ( diff --git a/engine/lib/message_router.go b/engine/lib/message_router.go index 8fdc68753e7..d82ed80bccd 100644 --- a/engine/lib/message_router.go +++ b/engine/lib/message_router.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -8,8 +21,8 @@ import ( "github.com/pingcap/tiflow/pkg/workerpool" "go.uber.org/zap" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) const defaultMessageRouterBufferSize = 4 diff --git a/engine/lib/message_router_test.go b/engine/lib/message_router_test.go index e49369b9379..9e84344b14e 100644 --- a/engine/lib/message_router_test.go +++ b/engine/lib/message_router_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -6,7 +19,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/p2p" "github.com/pingcap/tiflow/pkg/workerpool" "github.com/stretchr/testify/require" "go.uber.org/atomic" diff --git a/engine/lib/metadata/metadata.go b/engine/lib/metadata/metadata.go index 591139f4121..241ebb18ea7 100644 --- a/engine/lib/metadata/metadata.go +++ b/engine/lib/metadata/metadata.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -7,8 +20,8 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - libModel "github.com/hanfei1991/microcosm/lib/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + libModel "github.com/pingcap/tiflow/engine/lib/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" ) // JobManagerUUID defines the global unique id for job manager diff --git a/engine/lib/metadata/metadata_test.go b/engine/lib/metadata/metadata_test.go index c619cdaf98b..21873ce267f 100644 --- a/engine/lib/metadata/metadata_test.go +++ b/engine/lib/metadata/metadata_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( @@ -6,8 +19,8 @@ import ( "github.com/stretchr/testify/require" - libModel "github.com/hanfei1991/microcosm/lib/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + libModel "github.com/pingcap/tiflow/engine/lib/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" ) // These constants are only used for unit testing. diff --git a/engine/lib/mock_master_impl.go b/engine/lib/mock_master_impl.go index b8db82ddbe3..01a9ff8d7bf 100644 --- a/engine/lib/mock_master_impl.go +++ b/engine/lib/mock_master_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -5,7 +18,7 @@ import ( "encoding/json" "sync" - "github.com/hanfei1991/microcosm/lib/master" + "github.com/pingcap/tiflow/engine/lib/master" "github.com/pingcap/tiflow/dm/pkg/log" "github.com/stretchr/testify/mock" @@ -13,16 +26,16 @@ import ( "go.uber.org/dig" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/client" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - mockkv "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/client" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + mockkv "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // MockMasterImpl implements a mock MasterImpl diff --git a/engine/lib/mock_master_util.go b/engine/lib/mock_master_util.go index ecf214d501d..90d297dc25d 100644 --- a/engine/lib/mock_master_util.go +++ b/engine/lib/mock_master_util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib // This file provides helper function to let the implementation of MasterImpl @@ -11,21 +24,21 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - mockkv "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/uuid" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + mockkv "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) // MockBaseMaster returns a mock DefaultBaseMaster diff --git a/engine/lib/mock_worker_impl.go b/engine/lib/mock_worker_impl.go index 433f62a0a46..9121888ae30 100644 --- a/engine/lib/mock_worker_impl.go +++ b/engine/lib/mock_worker_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -8,11 +21,11 @@ import ( "go.uber.org/atomic" "go.uber.org/dig" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) type mockWorkerImpl struct { diff --git a/engine/lib/mock_worker_util.go b/engine/lib/mock_worker_util.go index 30ddb5c632d..e248100cd5d 100644 --- a/engine/lib/mock_worker_util.go +++ b/engine/lib/mock_worker_util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib // This file provides helper function to let the implementation of WorkerImpl @@ -9,14 +22,14 @@ import ( "github.com/stretchr/testify/require" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - mockkv "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + mockkv "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // BaseWorkerForTesting mocks base worker diff --git a/engine/lib/model/master.go b/engine/lib/model/master.go index 36ba6a6db5a..19eb8b49247 100644 --- a/engine/lib/model/master.go +++ b/engine/lib/model/master.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( @@ -5,9 +18,9 @@ import ( "gorm.io/gorm" - ormModel "github.com/hanfei1991/microcosm/pkg/orm/model" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/tenant" + ormModel "github.com/pingcap/tiflow/engine/pkg/orm/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) type ( diff --git a/engine/lib/model/messages.go b/engine/lib/model/messages.go index 53309c719b1..108579c2d38 100644 --- a/engine/lib/model/messages.go +++ b/engine/lib/model/messages.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( "fmt" "time" - "github.com/hanfei1991/microcosm/pkg/clock" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/clock" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // HeartbeatPingTopic is heartbeat ping message topic, each master has a unique one. diff --git a/engine/lib/model/status.go b/engine/lib/model/status.go index c7c5ca4143c..00768572895 100644 --- a/engine/lib/model/status.go +++ b/engine/lib/model/status.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( @@ -5,7 +18,7 @@ import ( "github.com/pingcap/errors" - ormModel "github.com/hanfei1991/microcosm/pkg/orm/model" + ormModel "github.com/pingcap/tiflow/engine/pkg/orm/model" ) // WorkerStatusCode represents worker running status in master worker framework diff --git a/engine/lib/model/status_test.go b/engine/lib/model/status_test.go index 344900565c1..d3f661dbc0b 100644 --- a/engine/lib/model/status_test.go +++ b/engine/lib/model/status_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( diff --git a/engine/lib/model/typedefs.go b/engine/lib/model/typedefs.go index 10128543c3d..8b7a90f3bfa 100644 --- a/engine/lib/model/typedefs.go +++ b/engine/lib/model/typedefs.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model type ( diff --git a/engine/lib/registry/factory.go b/engine/lib/registry/factory.go index 8b4b55bd587..a8e09db773f 100644 --- a/engine/lib/registry/factory.go +++ b/engine/lib/registry/factory.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( @@ -7,9 +20,9 @@ import ( "github.com/BurntSushi/toml" "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" ) // WorkerFactory is an interface that should be implemented by the author of diff --git a/engine/lib/registry/factory_test.go b/engine/lib/registry/factory_test.go index 7e4f74aab42..0467c18bbbb 100644 --- a/engine/lib/registry/factory_test.go +++ b/engine/lib/registry/factory_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( @@ -6,16 +19,16 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/dig" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/fake" - libModel "github.com/hanfei1991/microcosm/lib/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/fake" + libModel "github.com/pingcap/tiflow/engine/lib/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) type paramList struct { diff --git a/engine/lib/registry/globals.go b/engine/lib/registry/globals.go index eef433a9e0b..4fb2d36283d 100644 --- a/engine/lib/registry/globals.go +++ b/engine/lib/registry/globals.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry var globalWorkerRegistry = NewRegistry() diff --git a/engine/lib/registry/register_fake.go b/engine/lib/registry/register_fake.go index c7f83e99826..67aaff3ddaf 100644 --- a/engine/lib/registry/register_fake.go +++ b/engine/lib/registry/register_fake.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/fake" - libModel "github.com/hanfei1991/microcosm/lib/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/fake" + libModel "github.com/pingcap/tiflow/engine/lib/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" ) // RegisterFake registers fake job master and fake worker to global registry diff --git a/engine/lib/registry/registry.go b/engine/lib/registry/registry.go index 72b9cfe8a2f..c5bc0b2bb81 100644 --- a/engine/lib/registry/registry.go +++ b/engine/lib/registry/registry.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( @@ -8,10 +21,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - derror "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + derror "github.com/pingcap/tiflow/engine/pkg/errors" ) // WorkerConfig alias to lib.WorkerConfig diff --git a/engine/lib/registry/registry_test.go b/engine/lib/registry/registry_test.go index 791e6c80bcb..2f98a785e5f 100644 --- a/engine/lib/registry/registry_test.go +++ b/engine/lib/registry/registry_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( @@ -5,10 +18,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/fake" - libModel "github.com/hanfei1991/microcosm/lib/model" - dcontext "github.com/hanfei1991/microcosm/pkg/context" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/fake" + libModel "github.com/pingcap/tiflow/engine/lib/model" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" ) var ( diff --git a/engine/lib/statusutil/master_info.go b/engine/lib/statusutil/master_info.go index 3ad7e1ff8c1..1d4b09a81d4 100644 --- a/engine/lib/statusutil/master_info.go +++ b/engine/lib/statusutil/master_info.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package statusutil import ( @@ -6,8 +19,8 @@ import ( "go.uber.org/atomic" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // MasterInfoProvider is an object that can provide necessary diff --git a/engine/lib/statusutil/message.go b/engine/lib/statusutil/message.go index 25c3495cf99..c33864388b2 100644 --- a/engine/lib/statusutil/message.go +++ b/engine/lib/statusutil/message.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package statusutil import ( "fmt" - libModel "github.com/hanfei1991/microcosm/lib/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) // WorkerStatusMessage contains necessary fileds of a worker status message diff --git a/engine/lib/statusutil/writer.go b/engine/lib/statusutil/writer.go index de0ca6c4ded..a447273a6c5 100644 --- a/engine/lib/statusutil/writer.go +++ b/engine/lib/statusutil/writer.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package statusutil import ( @@ -11,10 +24,10 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - libModel "github.com/hanfei1991/microcosm/lib/model" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // Writer is used to persist WorkerStatus changes and send notifications diff --git a/engine/lib/statusutil/writer_test.go b/engine/lib/statusutil/writer_test.go index 8e07f89f605..f0caeecf642 100644 --- a/engine/lib/statusutil/writer_test.go +++ b/engine/lib/statusutil/writer_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package statusutil import ( @@ -6,10 +19,10 @@ import ( "github.com/stretchr/testify/require" - libModel "github.com/hanfei1991/microcosm/lib/model" - derror "github.com/hanfei1991/microcosm/pkg/errors" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" + libModel "github.com/pingcap/tiflow/engine/lib/model" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) type writerTestSuite struct { diff --git a/engine/lib/worker.go b/engine/lib/worker.go index cacd28f17ba..3267e96cfd0 100644 --- a/engine/lib/worker.go +++ b/engine/lib/worker.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -12,24 +25,24 @@ import ( "go.uber.org/dig" "go.uber.org/zap" - runtime "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/lib/config" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/errctx" - derror "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/externalresource/broker" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/tenant" + runtime "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/lib/config" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/errctx" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/externalresource/broker" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) // Worker defines an interface that provides all methods that will be used in diff --git a/engine/lib/worker_test.go b/engine/lib/worker_test.go index c67d5f27af8..28ff9b85920 100644 --- a/engine/lib/worker_test.go +++ b/engine/lib/worker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package lib import ( @@ -9,12 +22,12 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - runtime "github.com/hanfei1991/microcosm/executor/worker" - "github.com/hanfei1991/microcosm/lib/config" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/lib/statusutil" - "github.com/hanfei1991/microcosm/pkg/clock" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + runtime "github.com/pingcap/tiflow/engine/executor/worker" + "github.com/pingcap/tiflow/engine/lib/config" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/lib/statusutil" + "github.com/pingcap/tiflow/engine/pkg/clock" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" ) var ( diff --git a/engine/model/cluster.go b/engine/model/cluster.go index c008152a624..11b05fd8122 100644 --- a/engine/model/cluster.go +++ b/engine/model/cluster.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( "encoding/json" - "github.com/hanfei1991/microcosm/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/adapter" ) // NodeType is the type of a server instance, could be either server master or executor diff --git a/engine/model/subjob.go b/engine/model/subjob.go index dbf8f0e3f58..7c1179a491f 100644 --- a/engine/model/subjob.go +++ b/engine/model/subjob.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model type ( diff --git a/engine/pb/datarw.pb.go b/engine/pb/datarw.pb.go index 24bc9fcf633..be330c66606 100644 --- a/engine/pb/datarw.pb.go +++ b/engine/pb/datarw.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: datarw.proto diff --git a/engine/pb/error.pb.go b/engine/pb/error.pb.go index bdd66f4a2c7..e6c60347d99 100644 --- a/engine/pb/error.pb.go +++ b/engine/pb/error.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: error.proto diff --git a/engine/pb/executor.pb.go b/engine/pb/executor.pb.go index a0ad9af07f5..1949c2d92cb 100644 --- a/engine/pb/executor.pb.go +++ b/engine/pb/executor.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: executor.proto diff --git a/engine/pb/master.pb.go b/engine/pb/master.pb.go index 747acb15563..6334a6fa680 100644 --- a/engine/pb/master.pb.go +++ b/engine/pb/master.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: master.proto diff --git a/engine/pb/metastore.pb.go b/engine/pb/metastore.pb.go index 9e264c8d0a6..29021e305ca 100644 --- a/engine/pb/metastore.pb.go +++ b/engine/pb/metastore.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: metastore.proto diff --git a/engine/pb/resources.pb.go b/engine/pb/resources.pb.go index 65412da6e26..ae866dd10e9 100644 --- a/engine/pb/resources.pb.go +++ b/engine/pb/resources.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: resources.proto diff --git a/engine/pb/test.pb.go b/engine/pb/test.pb.go index c75b5710266..ffff03beb9a 100644 --- a/engine/pb/test.pb.go +++ b/engine/pb/test.pb.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: test.proto diff --git a/engine/pkg/adapter/keyadapter.go b/engine/pkg/adapter/keyadapter.go index 79f6c908735..a0edc731b6a 100644 --- a/engine/pkg/adapter/keyadapter.go +++ b/engine/pkg/adapter/keyadapter.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( @@ -5,7 +18,7 @@ import ( "path" "strings" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/errors" ) // Defines all key adapters diff --git a/engine/pkg/clock/clock.go b/engine/pkg/clock/clock.go index 35b536a4431..478a553b985 100644 --- a/engine/pkg/clock/clock.go +++ b/engine/pkg/clock/clock.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package clock import ( diff --git a/engine/pkg/config/constants.go b/engine/pkg/config/constants.go index 7233ac50eb8..994cb9fad41 100644 --- a/engine/pkg/config/constants.go +++ b/engine/pkg/config/constants.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/engine/pkg/containers/chunked_queue.go b/engine/pkg/containers/chunked_queue.go index 2de7159e77d..0200fb795ae 100644 --- a/engine/pkg/containers/chunked_queue.go +++ b/engine/pkg/containers/chunked_queue.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package containers import ( diff --git a/engine/pkg/containers/queue.go b/engine/pkg/containers/queue.go index 7743b3a2a0a..c93aec63442 100644 --- a/engine/pkg/containers/queue.go +++ b/engine/pkg/containers/queue.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package containers // Queue abstracts a generics FIFO queue, which is thread-safe diff --git a/engine/pkg/containers/slice_queue.go b/engine/pkg/containers/slice_queue.go index e57762ea309..d84f72315cd 100644 --- a/engine/pkg/containers/slice_queue.go +++ b/engine/pkg/containers/slice_queue.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package containers import "sync" diff --git a/engine/pkg/containers/slice_queue_test.go b/engine/pkg/containers/slice_queue_test.go index c73736f1d79..9b1e4e67344 100644 --- a/engine/pkg/containers/slice_queue_test.go +++ b/engine/pkg/containers/slice_queue_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package containers import ( diff --git a/engine/pkg/context/context.go b/engine/pkg/context/context.go index 05c6b29db71..4dd3fa24546 100644 --- a/engine/pkg/context/context.go +++ b/engine/pkg/context/context.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,12 +30,12 @@ import ( "context" "time" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/pkg/deps" - extKV "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/p2p" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/pkg/deps" + extKV "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // Context is used to in dm to record some context field like diff --git a/engine/pkg/ctxmu/ctxmu.go b/engine/pkg/ctxmu/ctxmu.go index 218ef60e3c6..a0e001f73af 100644 --- a/engine/pkg/ctxmu/ctxmu.go +++ b/engine/pkg/ctxmu/ctxmu.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2012-2020, Hǎi-Liàng “Hal” Wáng // Copyright 2022 PingCAP, Inc. // diff --git a/engine/pkg/dataset/dataset.go b/engine/pkg/dataset/dataset.go index a576ff92a64..f3295d32e05 100644 --- a/engine/pkg/dataset/dataset.go +++ b/engine/pkg/dataset/dataset.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dataset import ( @@ -6,9 +19,9 @@ import ( "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/pkg/adapter" - derror "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/adapter" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // DataSet is a generic layer for using CRUD patterns with KV-backed storage. diff --git a/engine/pkg/dataset/dataset_test.go b/engine/pkg/dataset/dataset_test.go index e27e18ef527..fecc08f2c06 100644 --- a/engine/pkg/dataset/dataset_test.go +++ b/engine/pkg/dataset/dataset_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dataset import ( @@ -7,8 +20,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" ) type record struct { diff --git a/engine/pkg/deps/deps.go b/engine/pkg/deps/deps.go index 95a3997d729..aab59218f1b 100644 --- a/engine/pkg/deps/deps.go +++ b/engine/pkg/deps/deps.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package deps import ( diff --git a/engine/pkg/deps/deps_test.go b/engine/pkg/deps/deps_test.go index 8ab82c345e5..994654fcc39 100644 --- a/engine/pkg/deps/deps_test.go +++ b/engine/pkg/deps/deps_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package deps import ( diff --git a/engine/pkg/dm/message_pair.go b/engine/pkg/dm/message_pair.go index 16e53dd47c4..6e35b2d4ba0 100644 --- a/engine/pkg/dm/message_pair.go +++ b/engine/pkg/dm/message_pair.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -6,7 +19,7 @@ import ( "github.com/pingcap/errors" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // MessageIDAllocator is an id allocator for p2p message system diff --git a/engine/pkg/dm/message_pair_test.go b/engine/pkg/dm/message_pair_test.go index 965cca2a4a6..6d328eb2120 100644 --- a/engine/pkg/dm/message_pair_test.go +++ b/engine/pkg/dm/message_pair_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( @@ -8,7 +21,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/p2p" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/dm/topic.go b/engine/pkg/dm/topic.go index ce777706f62..647780a4ba4 100644 --- a/engine/pkg/dm/topic.go +++ b/engine/pkg/dm/topic.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( "fmt" - "github.com/hanfei1991/microcosm/jobmaster/dm/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/p2p" + "github.com/pingcap/tiflow/engine/jobmaster/dm/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/p2p" ) // Message use for asynchronous message. diff --git a/engine/pkg/dm/topic_test.go b/engine/pkg/dm/topic_test.go index 17295b10ab7..eb16bdfa8c6 100644 --- a/engine/pkg/dm/topic_test.go +++ b/engine/pkg/dm/topic_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dm import ( diff --git a/engine/pkg/errctx/center.go b/engine/pkg/errctx/center.go index 08056c4ace6..93dd8946ba2 100644 --- a/engine/pkg/errctx/center.go +++ b/engine/pkg/errctx/center.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package errctx import ( diff --git a/engine/pkg/errctx/center_test.go b/engine/pkg/errctx/center_test.go index a24b5ff6d17..6a2efb88454 100644 --- a/engine/pkg/errctx/center_test.go +++ b/engine/pkg/errctx/center_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package errctx import ( diff --git a/engine/pkg/errctx/ctx.go b/engine/pkg/errctx/ctx.go index 0c56293939d..2013eb7cfae 100644 --- a/engine/pkg/errctx/ctx.go +++ b/engine/pkg/errctx/ctx.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package errctx import ( diff --git a/engine/pkg/errors/errors.go b/engine/pkg/errors/errors.go index db9881e5baa..ac9411299c1 100644 --- a/engine/pkg/errors/errors.go +++ b/engine/pkg/errors/errors.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/pkg/errors/helper.go b/engine/pkg/errors/helper.go index 44c151cfc19..14555a3a6f0 100644 --- a/engine/pkg/errors/helper.go +++ b/engine/pkg/errors/helper.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +27,8 @@ package errors import ( - "github.com/hanfei1991/microcosm/pb" "github.com/pingcap/errors" + "github.com/pingcap/tiflow/engine/pb" cdc_errors "github.com/pingcap/tiflow/pkg/errors" ) diff --git a/engine/pkg/errors/helper_test.go b/engine/pkg/errors/helper_test.go index db9b94f539b..a2b29e23dd5 100644 --- a/engine/pkg/errors/helper_test.go +++ b/engine/pkg/errors/helper_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,8 +30,8 @@ import ( std_errors "errors" "testing" - "github.com/hanfei1991/microcosm/pb" "github.com/pingcap/errors" + "github.com/pingcap/tiflow/engine/pb" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/errors/main_test.go b/engine/pkg/errors/main_test.go index 85a02a47dea..e71f5e8430a 100644 --- a/engine/pkg/errors/main_test.go +++ b/engine/pkg/errors/main_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,7 +29,7 @@ package errors import ( "testing" - "github.com/hanfei1991/microcosm/pkg/leakutil" + "github.com/pingcap/tiflow/engine/pkg/leakutil" ) func TestMain(m *testing.M) { diff --git a/engine/pkg/etcdclient/client.go b/engine/pkg/etcdclient/client.go index 9f2004decc9..33d65de32cb 100644 --- a/engine/pkg/etcdclient/client.go +++ b/engine/pkg/etcdclient/client.go @@ -1 +1,14 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdclient diff --git a/engine/pkg/etcdutils/config.go b/engine/pkg/etcdutils/config.go index 5d1a1a1a941..efeff5dc344 100644 --- a/engine/pkg/etcdutils/config.go +++ b/engine/pkg/etcdutils/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdutils import ( @@ -5,8 +18,8 @@ import ( "net/url" "strings" - "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" "go.etcd.io/etcd/server/v3/embed" "go.uber.org/zap" ) diff --git a/engine/pkg/etcdutils/join.go b/engine/pkg/etcdutils/join.go index 60c9ec04f4c..733f6740ac2 100644 --- a/engine/pkg/etcdutils/join.go +++ b/engine/pkg/etcdutils/join.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdutils import ( @@ -6,9 +19,9 @@ import ( "path/filepath" "strings" - "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/tiflow/dm/pkg/etcdutil" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" "go.etcd.io/etcd/server/v3/embed" "go.uber.org/zap" ) diff --git a/engine/pkg/etcdutils/join_test.go b/engine/pkg/etcdutils/join_test.go index 56dc0e27344..4de02d9a997 100644 --- a/engine/pkg/etcdutils/join_test.go +++ b/engine/pkg/etcdutils/join_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdutils import ( @@ -10,9 +23,9 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/errors" "github.com/phayes/freeport" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" "github.com/stretchr/testify/require" "go.etcd.io/etcd/server/v3/embed" ) diff --git a/engine/pkg/etcdutils/service.go b/engine/pkg/etcdutils/service.go index 96dc0d20efe..9bc97d81112 100644 --- a/engine/pkg/etcdutils/service.go +++ b/engine/pkg/etcdutils/service.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdutils import ( @@ -5,7 +18,7 @@ import ( "net/http" "time" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/errors" clientv3 "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/server/v3/embed" "google.golang.org/grpc" diff --git a/engine/pkg/etcdutils/testing.go b/engine/pkg/etcdutils/testing.go index eca5fb99a72..edd87d3f9d9 100644 --- a/engine/pkg/etcdutils/testing.go +++ b/engine/pkg/etcdutils/testing.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdutils import ( diff --git a/engine/pkg/externalresource/broker/broker.go b/engine/pkg/externalresource/broker/broker.go index e708ccb1468..c7c760cac13 100644 --- a/engine/pkg/externalresource/broker/broker.go +++ b/engine/pkg/externalresource/broker/broker.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -10,12 +23,12 @@ import ( "go.uber.org/zap" "google.golang.org/grpc/codes" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" ) // DefaultBroker implements the Broker interface diff --git a/engine/pkg/externalresource/broker/broker_test.go b/engine/pkg/externalresource/broker/broker_test.go index f615f175366..3da8f786f30 100644 --- a/engine/pkg/externalresource/broker/broker_test.go +++ b/engine/pkg/externalresource/broker/broker_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -11,10 +24,10 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/externalresource/manager" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/externalresource/manager" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" ) // DefaultBroker must implement Broker. diff --git a/engine/pkg/externalresource/broker/file_manager.go b/engine/pkg/externalresource/broker/file_manager.go index c7df5b15193..7d3cf456bf8 100644 --- a/engine/pkg/externalresource/broker/file_manager.go +++ b/engine/pkg/externalresource/broker/file_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -9,10 +22,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - libModel "github.com/hanfei1991/microcosm/lib/model" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" + libModel "github.com/pingcap/tiflow/engine/lib/model" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" ) // LocalFileManager manages the local files resources stored in diff --git a/engine/pkg/externalresource/broker/file_manager_test.go b/engine/pkg/externalresource/broker/file_manager_test.go index 663cda576dd..1610c90f8ed 100644 --- a/engine/pkg/externalresource/broker/file_manager_test.go +++ b/engine/pkg/externalresource/broker/file_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -8,8 +21,8 @@ import ( "github.com/stretchr/testify/require" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" ) func TestFileManagerBasics(t *testing.T) { diff --git a/engine/pkg/externalresource/broker/interfaces.go b/engine/pkg/externalresource/broker/interfaces.go index 48d11552eae..35e65686f2a 100644 --- a/engine/pkg/externalresource/broker/interfaces.go +++ b/engine/pkg/externalresource/broker/interfaces.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( "context" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // A Broker is created and maintained by the executor diff --git a/engine/pkg/externalresource/broker/local_broker.go b/engine/pkg/externalresource/broker/local_broker.go index ad51b1c6ec1..f5e9a4100fa 100644 --- a/engine/pkg/externalresource/broker/local_broker.go +++ b/engine/pkg/externalresource/broker/local_broker.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -14,10 +27,10 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/externalresource/manager" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/externalresource/storagecfg" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/externalresource/manager" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/externalresource/storagecfg" ) // LocalBroker is a broker unit-testing other components diff --git a/engine/pkg/externalresource/broker/local_file_utils.go b/engine/pkg/externalresource/broker/local_file_utils.go index 1e31b8e1dc1..e708e013d4e 100644 --- a/engine/pkg/externalresource/broker/local_file_utils.go +++ b/engine/pkg/externalresource/broker/local_file_utils.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -5,7 +18,7 @@ import ( brStorage "github.com/pingcap/tidb/br/pkg/storage" - derrors "github.com/hanfei1991/microcosm/pkg/errors" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" ) func newBrStorageForLocalFile(filePath string) (brStorage.ExternalStorage, error) { diff --git a/engine/pkg/externalresource/broker/storage_handle.go b/engine/pkg/externalresource/broker/storage_handle.go index 32cf65e851e..ed902a65140 100644 --- a/engine/pkg/externalresource/broker/storage_handle.go +++ b/engine/pkg/externalresource/broker/storage_handle.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package broker import ( @@ -6,9 +19,9 @@ import ( "github.com/pingcap/errors" brStorage "github.com/pingcap/tidb/br/pkg/storage" - "github.com/hanfei1991/microcosm/pb" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pb" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" ) // Handle defines an interface for interact with framework diff --git a/engine/pkg/externalresource/manager/client.go b/engine/pkg/externalresource/manager/client.go index e95506f5ab6..b212fede1b0 100644 --- a/engine/pkg/externalresource/manager/client.go +++ b/engine/pkg/externalresource/manager/client.go @@ -1,12 +1,25 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( "context" "time" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" "google.golang.org/grpc" ) diff --git a/engine/pkg/externalresource/manager/interfaces.go b/engine/pkg/externalresource/manager/interfaces.go index 1d711fc0cc6..2280e9e779e 100644 --- a/engine/pkg/externalresource/manager/interfaces.go +++ b/engine/pkg/externalresource/manager/interfaces.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( "context" - libModel "github.com/hanfei1991/microcosm/lib/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) // ExecutorInfoProvider describes an object that maintains a list diff --git a/engine/pkg/externalresource/manager/mock_client.go b/engine/pkg/externalresource/manager/mock_client.go index cdb4bcc3978..285458b304a 100644 --- a/engine/pkg/externalresource/manager/mock_client.go +++ b/engine/pkg/externalresource/manager/mock_client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( @@ -6,9 +19,9 @@ import ( "github.com/stretchr/testify/mock" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" ) var _ pb.ResourceManagerClient = &MockClient{} diff --git a/engine/pkg/externalresource/manager/mock_executor_info_provider.go b/engine/pkg/externalresource/manager/mock_executor_info_provider.go index edaf479e3c7..1106ee3ebe5 100644 --- a/engine/pkg/externalresource/manager/mock_executor_info_provider.go +++ b/engine/pkg/externalresource/manager/mock_executor_info_provider.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( "sync" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // MockExecutorInfoProvider implements ExecutorManager interface diff --git a/engine/pkg/externalresource/manager/service.go b/engine/pkg/externalresource/manager/service.go index 5e4fbbf0e42..6bc050b91f6 100644 --- a/engine/pkg/externalresource/manager/service.go +++ b/engine/pkg/externalresource/manager/service.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( @@ -9,11 +22,11 @@ import ( "go.uber.org/zap" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pb" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" ) // Service implements pb.ResourceManagerServer diff --git a/engine/pkg/externalresource/manager/service_test.go b/engine/pkg/externalresource/manager/service_test.go index e91216da2e3..a3c51ddceef 100644 --- a/engine/pkg/externalresource/manager/service_test.go +++ b/engine/pkg/externalresource/manager/service_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package manager import ( @@ -11,11 +24,11 @@ import ( "golang.org/x/time/rate" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/pb" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pb" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" ) var _ pb.ResourceManagerServer = (*Service)(nil) diff --git a/engine/pkg/externalresource/resourcemeta/accessor.go b/engine/pkg/externalresource/resourcemeta/accessor.go index 63585ac5926..9765db3a60c 100644 --- a/engine/pkg/externalresource/resourcemeta/accessor.go +++ b/engine/pkg/externalresource/resourcemeta/accessor.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package resourcemeta import ( @@ -5,8 +18,8 @@ import ( "go.uber.org/ratelimit" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" ) const ( diff --git a/engine/pkg/externalresource/resourcemeta/accessor_test.go b/engine/pkg/externalresource/resourcemeta/accessor_test.go index d3af1b82dcf..e4a1b686370 100644 --- a/engine/pkg/externalresource/resourcemeta/accessor_test.go +++ b/engine/pkg/externalresource/resourcemeta/accessor_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package resourcemeta import ( @@ -6,8 +19,8 @@ import ( "testing" "time" - resModel "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + resModel "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/externalresource/resourcemeta/model/local_resource.go b/engine/pkg/externalresource/resourcemeta/model/local_resource.go index 250e6e093d3..ed0a23610f3 100644 --- a/engine/pkg/externalresource/resourcemeta/model/local_resource.go +++ b/engine/pkg/externalresource/resourcemeta/model/local_resource.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( "path/filepath" - libModel "github.com/hanfei1991/microcosm/lib/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" ) // LocalFileResourceDescriptor contains necessary data diff --git a/engine/pkg/externalresource/resourcemeta/model/model.go b/engine/pkg/externalresource/resourcemeta/model/model.go index ae0904b5b92..e700e847007 100644 --- a/engine/pkg/externalresource/resourcemeta/model/model.go +++ b/engine/pkg/externalresource/resourcemeta/model/model.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( @@ -5,11 +18,11 @@ import ( "strings" "time" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - derror "github.com/hanfei1991/microcosm/pkg/errors" - ormModel "github.com/hanfei1991/microcosm/pkg/orm/model" - "github.com/hanfei1991/microcosm/pkg/tenant" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + ormModel "github.com/pingcap/tiflow/engine/pkg/orm/model" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) type ( diff --git a/engine/pkg/externalresource/resourcemeta/model/model_test.go b/engine/pkg/externalresource/resourcemeta/model/model_test.go index 7ecabe321c1..a547539787b 100644 --- a/engine/pkg/externalresource/resourcemeta/model/model_test.go +++ b/engine/pkg/externalresource/resourcemeta/model/model_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( diff --git a/engine/pkg/externalresource/storagecfg/config.go b/engine/pkg/externalresource/storagecfg/config.go index 580f47c689a..3cd963e63c5 100644 --- a/engine/pkg/externalresource/storagecfg/config.go +++ b/engine/pkg/externalresource/storagecfg/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package storagecfg // Config defines configurations for a external storage resource diff --git a/engine/pkg/leakutil/leak_helper.go b/engine/pkg/leakutil/leak_helper.go index 6ba5eab2d45..736a2dea801 100644 --- a/engine/pkg/leakutil/leak_helper.go +++ b/engine/pkg/leakutil/leak_helper.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/pkg/leakutil/leak_helper_test.go b/engine/pkg/leakutil/leak_helper_test.go index b143ab6e2c7..f43c4d6f3a0 100644 --- a/engine/pkg/leakutil/leak_helper_test.go +++ b/engine/pkg/leakutil/leak_helper_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -29,7 +42,7 @@ func TestSetUpLeakTest(t *testing.T) { func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/hanfei1991/microcosm/pkg/leakutil.TestSetUpLeakTest.func1"), + goleak.IgnoreTopFunction("github.com/pingcap/tiflow/engine/pkg/leakutil.TestSetUpLeakTest.func1"), } SetUpLeakTest(m, opts...) diff --git a/engine/pkg/meta/extension/interface.go b/engine/pkg/meta/extension/interface.go index e447977c35e..0ef3f506765 100644 --- a/engine/pkg/meta/extension/interface.go +++ b/engine/pkg/meta/extension/interface.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package extension import ( "context" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // KVEx extends the KV interface with Do method to implement the intermediate diff --git a/engine/pkg/meta/kvclient/client.go b/engine/pkg/meta/kvclient/client.go index c13dc84e99e..d17634fe4c3 100644 --- a/engine/pkg/meta/kvclient/client.go +++ b/engine/pkg/meta/kvclient/client.go @@ -1,14 +1,27 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package kvclient import ( "context" "time" - "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/etcdkv" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/meta/namespace" - "github.com/hanfei1991/microcosm/pkg/tenant" + "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/etcdkv" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/meta/namespace" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) // etcdKVClient is the implement of kv interface based on etcd diff --git a/engine/pkg/meta/kvclient/etcdkv/etcd_client.go b/engine/pkg/meta/kvclient/etcdkv/etcd_client.go index d99ed2bd105..94d617d498b 100644 --- a/engine/pkg/meta/kvclient/etcdkv/etcd_client.go +++ b/engine/pkg/meta/kvclient/etcdkv/etcd_client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdkv import ( @@ -7,9 +20,9 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/hanfei1991/microcosm/pkg/errors" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/errors" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // Defines fake key/value pair which is used in aliveness check or epoch generation diff --git a/engine/pkg/meta/kvclient/etcdkv/etcd_client_test.go b/engine/pkg/meta/kvclient/etcdkv/etcd_client_test.go index bfa3283d645..f40e1db1912 100644 --- a/engine/pkg/meta/kvclient/etcdkv/etcd_client_test.go +++ b/engine/pkg/meta/kvclient/etcdkv/etcd_client_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdkv import ( @@ -6,8 +19,8 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "go.etcd.io/etcd/server/v3/embed" diff --git a/engine/pkg/meta/kvclient/etcdkv/mock.go b/engine/pkg/meta/kvclient/etcdkv/mock.go index 1f636a0b178..00b6bad0d55 100644 --- a/engine/pkg/meta/kvclient/etcdkv/mock.go +++ b/engine/pkg/meta/kvclient/etcdkv/mock.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdkv import ( diff --git a/engine/pkg/meta/kvclient/etcdkv/mock_test.go b/engine/pkg/meta/kvclient/etcdkv/mock_test.go index 271c0a6de9c..b3ce39c6a0b 100644 --- a/engine/pkg/meta/kvclient/etcdkv/mock_test.go +++ b/engine/pkg/meta/kvclient/etcdkv/mock_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdkv import ( @@ -8,11 +21,11 @@ import ( ) func TestRetryMockBackendEtcd(t *testing.T) { - _ = failpoint.Enable("github.com/hanfei1991/microcosm/pkg/meta/kvclient/etcdkv/MockEtcdAddressAlreadyUse", "return(true)") + _ = failpoint.Enable("github.com/pingcap/tiflow/engine/pkg/meta/kvclient/etcdkv/MockEtcdAddressAlreadyUse", "return(true)") _, _, err := RetryMockBackendEtcd() require.Error(t, err) require.Regexp(t, "address already in use", err) - _ = failpoint.Disable("github.com/hanfei1991/microcosm/pkg/meta/kvclient/etcdkv/MockEtcdAddressAlreadyUse") + _ = failpoint.Disable("github.com/pingcap/tiflow/engine/pkg/meta/kvclient/etcdkv/MockEtcdAddressAlreadyUse") svr, _, err := RetryMockBackendEtcd() require.NoError(t, err) diff --git a/engine/pkg/meta/kvclient/etcdkv/util.go b/engine/pkg/meta/kvclient/etcdkv/util.go index 91371578ab9..e49a9fc34a2 100644 --- a/engine/pkg/meta/kvclient/etcdkv/util.go +++ b/engine/pkg/meta/kvclient/etcdkv/util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package etcdkv import ( @@ -7,8 +20,8 @@ import ( "go.etcd.io/etcd/api/v3/etcdserverpb" clientv3 "go.etcd.io/etcd/client/v3" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) func makePutResp(etcdResp *clientv3.PutResponse) *metaclient.PutResponse { diff --git a/engine/pkg/meta/kvclient/example.go b/engine/pkg/meta/kvclient/example.go index 59896f1095f..ca4a8f5a0ee 100644 --- a/engine/pkg/meta/kvclient/example.go +++ b/engine/pkg/meta/kvclient/example.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package kvclient import ( @@ -7,8 +20,8 @@ import ( "github.com/golang/mock/gomock" - mock "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + mock "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // Backend KV store data: diff --git a/engine/pkg/meta/kvclient/mock/mockclient.go b/engine/pkg/meta/kvclient/mock/mockclient.go index 3c63f5bd1a4..a57de2e1419 100644 --- a/engine/pkg/meta/kvclient/mock/mockclient.go +++ b/engine/pkg/meta/kvclient/mock/mockclient.go @@ -1,5 +1,18 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/hanfei1991/microcosm/pkg/meta/metaclient (interfaces: KVClient) +// Source: github.com/pingcap/tiflow/engine/pkg/meta/metaclient (interfaces: KVClient) // Package mock is a generated GoMock package. package mock @@ -9,7 +22,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - metaclient "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + metaclient "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) // MockKVClient is a mock of KVClient interface. diff --git a/engine/pkg/meta/kvclient/mock/simple_mockclient.go b/engine/pkg/meta/kvclient/mock/simple_mockclient.go index a1566498ff3..062faba3f92 100644 --- a/engine/pkg/meta/kvclient/mock/simple_mockclient.go +++ b/engine/pkg/meta/kvclient/mock/simple_mockclient.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package mock import ( @@ -6,8 +19,8 @@ import ( "strings" "sync" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - metaclient "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + metaclient "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) type mockTxn struct { diff --git a/engine/pkg/meta/kvclient/mock/simple_mockclient_test.go b/engine/pkg/meta/kvclient/mock/simple_mockclient_test.go index b9c262e38d3..651d666e212 100644 --- a/engine/pkg/meta/kvclient/mock/simple_mockclient_test.go +++ b/engine/pkg/meta/kvclient/mock/simple_mockclient_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package mock import ( @@ -6,7 +19,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/meta/metaclient/client.go b/engine/pkg/meta/metaclient/client.go index 8fb91933b9b..bcdbbffe3fa 100644 --- a/engine/pkg/meta/metaclient/client.go +++ b/engine/pkg/meta/metaclient/client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import "context" diff --git a/engine/pkg/meta/metaclient/common.go b/engine/pkg/meta/metaclient/common.go index 0c42f574398..724f57f0424 100644 --- a/engine/pkg/meta/metaclient/common.go +++ b/engine/pkg/meta/metaclient/common.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import "fmt" diff --git a/engine/pkg/meta/metaclient/common_test.go b/engine/pkg/meta/metaclient/common_test.go index 97b61e7e629..c2b8b511dc1 100644 --- a/engine/pkg/meta/metaclient/common_test.go +++ b/engine/pkg/meta/metaclient/common_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import ( diff --git a/engine/pkg/meta/metaclient/config.go b/engine/pkg/meta/metaclient/config.go index 911d5d8165d..90799296b16 100644 --- a/engine/pkg/meta/metaclient/config.go +++ b/engine/pkg/meta/metaclient/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import ( diff --git a/engine/pkg/meta/metaclient/kv.go b/engine/pkg/meta/metaclient/kv.go index 25dd410a423..f4ad9dc85d4 100644 --- a/engine/pkg/meta/metaclient/kv.go +++ b/engine/pkg/meta/metaclient/kv.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import ( diff --git a/engine/pkg/meta/metaclient/op.go b/engine/pkg/meta/metaclient/op.go index 4643e226deb..efc611950e9 100644 --- a/engine/pkg/meta/metaclient/op.go +++ b/engine/pkg/meta/metaclient/op.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,7 +30,7 @@ package metaclient import ( - cerrors "github.com/hanfei1991/microcosm/pkg/errors" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" ) type opType int diff --git a/engine/pkg/meta/metaclient/op_test.go b/engine/pkg/meta/metaclient/op_test.go index e36a487ddc1..0d00156e84b 100644 --- a/engine/pkg/meta/metaclient/op_test.go +++ b/engine/pkg/meta/metaclient/op_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metaclient import ( diff --git a/engine/pkg/meta/namespace/kv.go b/engine/pkg/meta/namespace/kv.go index 7d92b861a67..265ce5aca56 100644 --- a/engine/pkg/meta/namespace/kv.go +++ b/engine/pkg/meta/namespace/kv.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,9 +32,9 @@ package namespace import ( "context" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" ) type prefixError struct { diff --git a/engine/pkg/meta/namespace/kv_test.go b/engine/pkg/meta/namespace/kv_test.go index f66e7592f93..9e959ba330c 100644 --- a/engine/pkg/meta/namespace/kv_test.go +++ b/engine/pkg/meta/namespace/kv_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package namespace import ( @@ -5,8 +18,8 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient/mock" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient/mock" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/meta/namespace/util.go b/engine/pkg/meta/namespace/util.go index 8407f2f23f3..7753f4b5418 100644 --- a/engine/pkg/meta/namespace/util.go +++ b/engine/pkg/meta/namespace/util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/pkg/meta/namespace/util_test.go b/engine/pkg/meta/namespace/util_test.go index 928fa58d74e..88a1b1550f3 100644 --- a/engine/pkg/meta/namespace/util_test.go +++ b/engine/pkg/meta/namespace/util_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/pkg/metadata/kv.go b/engine/pkg/metadata/kv.go index c08fb1d17a5..cccdac910ff 100644 --- a/engine/pkg/metadata/kv.go +++ b/engine/pkg/metadata/kv.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( diff --git a/engine/pkg/metadata/kv_etcd.go b/engine/pkg/metadata/kv_etcd.go index 805d1fd36fc..c251b6f10cf 100644 --- a/engine/pkg/metadata/kv_etcd.go +++ b/engine/pkg/metadata/kv_etcd.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( diff --git a/engine/pkg/metadata/kv_mock.go b/engine/pkg/metadata/kv_mock.go index f0f7e7db7a9..d2014fb4dcd 100644 --- a/engine/pkg/metadata/kv_mock.go +++ b/engine/pkg/metadata/kv_mock.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( diff --git a/engine/pkg/metadata/main_test.go b/engine/pkg/metadata/main_test.go index f1566ef1f89..955870b71c3 100644 --- a/engine/pkg/metadata/main_test.go +++ b/engine/pkg/metadata/main_test.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( "testing" - "github.com/hanfei1991/microcosm/pkg/leakutil" + "github.com/pingcap/tiflow/engine/pkg/leakutil" ) func TestMain(m *testing.M) { diff --git a/engine/pkg/notifier/notifier.go b/engine/pkg/notifier/notifier.go index a6047326ff9..2e2c7f1feb8 100644 --- a/engine/pkg/notifier/notifier.go +++ b/engine/pkg/notifier/notifier.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package notifier import ( @@ -8,7 +21,7 @@ import ( "github.com/pingcap/errors" "go.uber.org/atomic" - "github.com/hanfei1991/microcosm/pkg/containers" + "github.com/pingcap/tiflow/engine/pkg/containers" ) type receiverID = int64 diff --git a/engine/pkg/notifier/notifier_test.go b/engine/pkg/notifier/notifier_test.go index a4d8e598797..884f059d573 100644 --- a/engine/pkg/notifier/notifier_test.go +++ b/engine/pkg/notifier/notifier_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package notifier import ( diff --git a/engine/pkg/orm/client.go b/engine/pkg/orm/client.go index 1fa52b94155..7a69002046c 100644 --- a/engine/pkg/orm/client.go +++ b/engine/pkg/orm/client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import ( @@ -13,12 +26,12 @@ import ( "gorm.io/gorm" "gorm.io/gorm/clause" - libModel "github.com/hanfei1991/microcosm/lib/model" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/orm/model" - "github.com/hanfei1991/microcosm/pkg/tenant" + libModel "github.com/pingcap/tiflow/engine/lib/model" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/orm/model" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) var globalModels = []interface{}{ diff --git a/engine/pkg/orm/client_test.go b/engine/pkg/orm/client_test.go index cd244627e85..6a44439a39e 100644 --- a/engine/pkg/orm/client_test.go +++ b/engine/pkg/orm/client_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import ( @@ -15,11 +28,11 @@ import ( perrors "github.com/pingcap/errors" "github.com/stretchr/testify/require" - libModel "github.com/hanfei1991/microcosm/lib/model" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/orm/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/orm/model" ) type tCase struct { diff --git a/engine/pkg/orm/config.go b/engine/pkg/orm/config.go index a745ab56e77..cc8b41156b8 100644 --- a/engine/pkg/orm/config.go +++ b/engine/pkg/orm/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import "time" diff --git a/engine/pkg/orm/mock.go b/engine/pkg/orm/mock.go index 818fc6dee75..7349dd87e81 100644 --- a/engine/pkg/orm/mock.go +++ b/engine/pkg/orm/mock.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import ( @@ -5,9 +18,9 @@ import ( "fmt" "time" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/uuid" "github.com/pingcap/log" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/uuid" "go.uber.org/zap" "gorm.io/driver/sqlite" "gorm.io/gorm" diff --git a/engine/pkg/orm/mock_test.go b/engine/pkg/orm/mock_test.go index 24780365ed7..b588febd6bf 100644 --- a/engine/pkg/orm/mock_test.go +++ b/engine/pkg/orm/mock_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import ( @@ -6,10 +19,10 @@ import ( "testing" "time" - libModel "github.com/hanfei1991/microcosm/lib/model" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/orm/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/orm/model" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/orm/model/common.go b/engine/pkg/orm/model/common.go index e1e9d5a0c98..49b29170a09 100644 --- a/engine/pkg/orm/model/common.go +++ b/engine/pkg/orm/model/common.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( diff --git a/engine/pkg/orm/model/logic_epoch.go b/engine/pkg/orm/model/logic_epoch.go index fa098de831d..dfa08b894c3 100644 --- a/engine/pkg/orm/model/logic_epoch.go +++ b/engine/pkg/orm/model/logic_epoch.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( diff --git a/engine/pkg/orm/model/logic_epoch_test.go b/engine/pkg/orm/model/logic_epoch_test.go index 8baba466b45..ed8508e12bd 100644 --- a/engine/pkg/orm/model/logic_epoch_test.go +++ b/engine/pkg/orm/model/logic_epoch_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( diff --git a/engine/pkg/orm/model/project.go b/engine/pkg/orm/model/project.go index 8227bf24a5c..ecf016e865b 100644 --- a/engine/pkg/orm/model/project.go +++ b/engine/pkg/orm/model/project.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import "time" diff --git a/engine/pkg/orm/util.go b/engine/pkg/orm/util.go index 99087bbae3e..a21644a5cd7 100644 --- a/engine/pkg/orm/util.go +++ b/engine/pkg/orm/util.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import "strings" diff --git a/engine/pkg/orm/util_test.go b/engine/pkg/orm/util_test.go index 5ef757dbade..4039bea41e2 100644 --- a/engine/pkg/orm/util_test.go +++ b/engine/pkg/orm/util_test.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package orm import ( "errors" "testing" - cerrors "github.com/hanfei1991/microcosm/pkg/errors" + cerrors "github.com/pingcap/tiflow/engine/pkg/errors" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/p2p/message_handler_manager.go b/engine/pkg/p2p/message_handler_manager.go index aa87e8058ed..080bf3efc42 100644 --- a/engine/pkg/p2p/message_handler_manager.go +++ b/engine/pkg/p2p/message_handler_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/message_handler_manager_test.go b/engine/pkg/p2p/message_handler_manager_test.go index bc7c96b96f3..d3c38966351 100644 --- a/engine/pkg/p2p/message_handler_manager_test.go +++ b/engine/pkg/p2p/message_handler_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/message_sender.go b/engine/pkg/p2p/message_sender.go index e58bedac3c3..41e9c42a706 100644 --- a/engine/pkg/p2p/message_sender.go +++ b/engine/pkg/p2p/message_sender.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( @@ -9,7 +22,7 @@ import ( p2pImpl "github.com/pingcap/tiflow/pkg/p2p" "github.com/pingcap/tiflow/pkg/security" - derror "github.com/hanfei1991/microcosm/pkg/errors" + derror "github.com/pingcap/tiflow/engine/pkg/errors" ) // MessageSender is used to send a message of a given topic to a given node. diff --git a/engine/pkg/p2p/mock_message_handler_manager.go b/engine/pkg/p2p/mock_message_handler_manager.go index 7e63955e4cb..d2185301150 100644 --- a/engine/pkg/p2p/mock_message_handler_manager.go +++ b/engine/pkg/p2p/mock_message_handler_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/mock_message_handler_manager_test.go b/engine/pkg/p2p/mock_message_handler_manager_test.go index dface15ef10..a890936174d 100644 --- a/engine/pkg/p2p/mock_message_handler_manager_test.go +++ b/engine/pkg/p2p/mock_message_handler_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/mock_message_sender.go b/engine/pkg/p2p/mock_message_sender.go index 91027acb1d8..54a510d2f89 100644 --- a/engine/pkg/p2p/mock_message_sender.go +++ b/engine/pkg/p2p/mock_message_sender.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/mock_message_sender_test.go b/engine/pkg/p2p/mock_message_sender_test.go index 3e9e941005e..4d714b0f2f2 100644 --- a/engine/pkg/p2p/mock_message_sender_test.go +++ b/engine/pkg/p2p/mock_message_sender_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/server.go b/engine/pkg/p2p/server.go index 0aad19be3ab..ef0dbc6f87a 100644 --- a/engine/pkg/p2p/server.go +++ b/engine/pkg/p2p/server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/p2p/server_integration_test.go b/engine/pkg/p2p/server_integration_test.go index d4837d8da99..8875926ebab 100644 --- a/engine/pkg/p2p/server_integration_test.go +++ b/engine/pkg/p2p/server_integration_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package p2p import ( diff --git a/engine/pkg/promutil/factory.go b/engine/pkg/promutil/factory.go index c0a8e231a3b..cf7f381c729 100644 --- a/engine/pkg/promutil/factory.go +++ b/engine/pkg/promutil/factory.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import "github.com/prometheus/client_golang/prometheus" diff --git a/engine/pkg/promutil/implement.go b/engine/pkg/promutil/implement.go index 2fed5fc044e..2c8e56aae01 100644 --- a/engine/pkg/promutil/implement.go +++ b/engine/pkg/promutil/implement.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( - libModel "github.com/hanfei1991/microcosm/lib/model" "github.com/pingcap/tiflow/dm/pkg/log" + libModel "github.com/pingcap/tiflow/engine/lib/model" "github.com/prometheus/client_golang/prometheus" "go.uber.org/zap" ) diff --git a/engine/pkg/promutil/implement_test.go b/engine/pkg/promutil/implement_test.go index 0b9bf117da1..2783f5aa3e7 100644 --- a/engine/pkg/promutil/implement_test.go +++ b/engine/pkg/promutil/implement_test.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( "testing" - "github.com/hanfei1991/microcosm/pkg/tenant" + "github.com/pingcap/tiflow/engine/pkg/tenant" "github.com/prometheus/client_golang/prometheus" dto "github.com/prometheus/client_model/go" "github.com/stretchr/testify/require" diff --git a/engine/pkg/promutil/registry.go b/engine/pkg/promutil/registry.go index 2733b1dbfd3..e76be835a94 100644 --- a/engine/pkg/promutil/registry.go +++ b/engine/pkg/promutil/registry.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( "sync" - libModel "github.com/hanfei1991/microcosm/lib/model" + libModel "github.com/pingcap/tiflow/engine/lib/model" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/collectors" dto "github.com/prometheus/client_model/go" diff --git a/engine/pkg/promutil/registry_test.go b/engine/pkg/promutil/registry_test.go index d741933fe1e..abfc9ca6708 100644 --- a/engine/pkg/promutil/registry_test.go +++ b/engine/pkg/promutil/registry_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( diff --git a/engine/pkg/promutil/util.go b/engine/pkg/promutil/util.go index fab0d1b3f24..936552751ea 100644 --- a/engine/pkg/promutil/util.go +++ b/engine/pkg/promutil/util.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( "net/http" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/tenant" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/tenant" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ) diff --git a/engine/pkg/promutil/util_test.go b/engine/pkg/promutil/util_test.go index e94bc49fc51..8e233ba707b 100644 --- a/engine/pkg/promutil/util_test.go +++ b/engine/pkg/promutil/util_test.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package promutil import ( "testing" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pkg/tenant" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pkg/tenant" "github.com/prometheus/client_golang/prometheus" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/quota/concurrency_quota.go b/engine/pkg/quota/concurrency_quota.go index 5cd3c47494b..8c0c6944b70 100644 --- a/engine/pkg/quota/concurrency_quota.go +++ b/engine/pkg/quota/concurrency_quota.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package quota import ( diff --git a/engine/pkg/quota/concurrency_quota_test.go b/engine/pkg/quota/concurrency_quota_test.go index 2493b42fb1d..dc9f3a573bc 100644 --- a/engine/pkg/quota/concurrency_quota_test.go +++ b/engine/pkg/quota/concurrency_quota_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package quota import ( diff --git a/engine/pkg/rpcutil/client.go b/engine/pkg/rpcutil/client.go index 604f210523a..5e031ce9f3d 100644 --- a/engine/pkg/rpcutil/client.go +++ b/engine/pkg/rpcutil/client.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package rpcutil import ( @@ -5,8 +18,8 @@ import ( "strings" "sync" - "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" "go.uber.org/zap" "google.golang.org/grpc" ) diff --git a/engine/pkg/rpcutil/client_test.go b/engine/pkg/rpcutil/client_test.go index 5d0feb6c9d5..3c486210319 100644 --- a/engine/pkg/rpcutil/client_test.go +++ b/engine/pkg/rpcutil/client_test.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package rpcutil import ( "context" "testing" - derror "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/errors" + derror "github.com/pingcap/tiflow/engine/pkg/errors" "github.com/stretchr/testify/require" "google.golang.org/grpc" ) diff --git a/engine/pkg/rpcutil/server.go b/engine/pkg/rpcutil/server.go index 950e138eec3..ace6ccf42f4 100644 --- a/engine/pkg/rpcutil/server.go +++ b/engine/pkg/rpcutil/server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package rpcutil import ( @@ -14,8 +27,8 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" ) // Member stores server member information diff --git a/engine/pkg/rpcutil/server_test.go b/engine/pkg/rpcutil/server_test.go index e0ba71d0064..dc88f285267 100644 --- a/engine/pkg/rpcutil/server_test.go +++ b/engine/pkg/rpcutil/server_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package rpcutil import ( @@ -7,8 +20,8 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" "github.com/stretchr/testify/require" "go.uber.org/atomic" "golang.org/x/time/rate" diff --git a/engine/pkg/serverutils/discovery_keepalive.go b/engine/pkg/serverutils/discovery_keepalive.go index e4f6eb95294..e83ec6f83ab 100644 --- a/engine/pkg/serverutils/discovery_keepalive.go +++ b/engine/pkg/serverutils/discovery_keepalive.go @@ -1,12 +1,25 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package serverutils import ( "context" "time" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/srvdiscovery" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/srvdiscovery" "github.com/pingcap/tiflow/pkg/p2p" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" diff --git a/engine/pkg/serverutils/discovery_keepalive_test.go b/engine/pkg/serverutils/discovery_keepalive_test.go index 9e9e90b59c9..727338255da 100644 --- a/engine/pkg/serverutils/discovery_keepalive_test.go +++ b/engine/pkg/serverutils/discovery_keepalive_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package serverutils import ( @@ -8,9 +21,9 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/srvdiscovery" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/srvdiscovery" + "github.com/pingcap/tiflow/engine/test/mock" p2pImpl "github.com/pingcap/tiflow/pkg/p2p" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/srvdiscovery/etcd_impl.go b/engine/pkg/srvdiscovery/etcd_impl.go index ca6c79be7c2..c228168b1ef 100644 --- a/engine/pkg/srvdiscovery/etcd_impl.go +++ b/engine/pkg/srvdiscovery/etcd_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package srvdiscovery import ( @@ -5,8 +18,8 @@ import ( "encoding/json" "time" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/errors" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/atomic" ) diff --git a/engine/pkg/srvdiscovery/etcd_impl_test.go b/engine/pkg/srvdiscovery/etcd_impl_test.go index 22445078cfa..f03023e9241 100644 --- a/engine/pkg/srvdiscovery/etcd_impl_test.go +++ b/engine/pkg/srvdiscovery/etcd_impl_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package srvdiscovery import ( @@ -6,10 +19,10 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/test" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/test" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/srvdiscovery/interface.go b/engine/pkg/srvdiscovery/interface.go index 9977838e43c..e4b1054278a 100644 --- a/engine/pkg/srvdiscovery/interface.go +++ b/engine/pkg/srvdiscovery/interface.go @@ -1,9 +1,22 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package srvdiscovery import ( "context" - "github.com/hanfei1991/microcosm/model" + "github.com/pingcap/tiflow/engine/model" ) // UUID is node id actually diff --git a/engine/pkg/srvdiscovery/runner.go b/engine/pkg/srvdiscovery/runner.go index bb13df3d198..8b1e0c8cb17 100644 --- a/engine/pkg/srvdiscovery/runner.go +++ b/engine/pkg/srvdiscovery/runner.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package srvdiscovery import ( "context" "time" - "github.com/hanfei1991/microcosm/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/adapter" clientv3 "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/client/v3/concurrency" ) diff --git a/engine/pkg/srvdiscovery/runner_test.go b/engine/pkg/srvdiscovery/runner_test.go index 955d083cc01..726624dc554 100644 --- a/engine/pkg/srvdiscovery/runner_test.go +++ b/engine/pkg/srvdiscovery/runner_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package srvdiscovery import ( @@ -6,9 +19,9 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/test" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/test" "github.com/stretchr/testify/require" ) diff --git a/engine/pkg/tenant/tenant.go b/engine/pkg/tenant/tenant.go index ae7663b96c6..470ca2f5702 100644 --- a/engine/pkg/tenant/tenant.go +++ b/engine/pkg/tenant/tenant.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package tenant type ( diff --git a/engine/pkg/uuid/mock.go b/engine/pkg/uuid/mock.go index f1f1433a081..fe2bbf11664 100644 --- a/engine/pkg/uuid/mock.go +++ b/engine/pkg/uuid/mock.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package uuid import "github.com/pingcap/log" diff --git a/engine/pkg/uuid/uuid.go b/engine/pkg/uuid/uuid.go index 8977bd514b2..a8c192637e8 100644 --- a/engine/pkg/uuid/uuid.go +++ b/engine/pkg/uuid/uuid.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package uuid import ( diff --git a/engine/pkg/workerpool/async_pool.go b/engine/pkg/workerpool/async_pool.go index 90e717b8cfb..2afaa28f226 100644 --- a/engine/pkg/workerpool/async_pool.go +++ b/engine/pkg/workerpool/async_pool.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2020 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/pkg/workerpool/async_pool_impl.go b/engine/pkg/workerpool/async_pool_impl.go index 5c49ce439ba..4ac15f5aceb 100644 --- a/engine/pkg/workerpool/async_pool_impl.go +++ b/engine/pkg/workerpool/async_pool_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2020 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/engine/servermaster/campaign.go b/engine/servermaster/campaign.go index d4b9b7fc239..f0df64e587d 100644 --- a/engine/servermaster/campaign.go +++ b/engine/servermaster/campaign.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -5,13 +18,13 @@ import ( "strings" "time" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - "github.com/hanfei1991/microcosm/pkg/externalresource/manager" perrors "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/pkg/externalresource/manager" "go.etcd.io/etcd/api/v3/mvccpb" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" diff --git a/engine/servermaster/campaign_test.go b/engine/servermaster/campaign_test.go index 100e2d2e542..1ae3dc093bd 100644 --- a/engine/servermaster/campaign_test.go +++ b/engine/servermaster/campaign_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -7,13 +20,13 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/rpcutil" - "github.com/hanfei1991/microcosm/servermaster/cluster" - "github.com/hanfei1991/microcosm/test" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/servermaster/cluster" + "github.com/pingcap/tiflow/engine/test" "github.com/stretchr/testify/require" "go.etcd.io/etcd/client/v3/concurrency" "go.uber.org/atomic" diff --git a/engine/servermaster/cluster/election.go b/engine/servermaster/cluster/election.go index 3d6b88f4af1..7bdd831362a 100644 --- a/engine/servermaster/cluster/election.go +++ b/engine/servermaster/cluster/election.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package cluster import ( @@ -5,9 +18,9 @@ import ( "sync" "time" - derror "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/errors" "github.com/pingcap/tiflow/dm/pkg/log" + derror "github.com/pingcap/tiflow/engine/pkg/errors" clientv3 "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/client/v3/concurrency" "go.etcd.io/etcd/server/v3/mvcc" diff --git a/engine/servermaster/cluster/election_test.go b/engine/servermaster/cluster/election_test.go index d3f94848e35..96f8175b9f5 100644 --- a/engine/servermaster/cluster/election_test.go +++ b/engine/servermaster/cluster/election_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package cluster import ( @@ -8,7 +21,7 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" "github.com/stretchr/testify/require" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/atomic" diff --git a/engine/servermaster/config.go b/engine/servermaster/config.go index 934cae5297d..58912ec1762 100644 --- a/engine/servermaster/config.go +++ b/engine/servermaster/config.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,11 +37,11 @@ import ( "time" "github.com/BurntSushi/toml" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" "go.etcd.io/etcd/server/v3/embed" "go.uber.org/zap" ) diff --git a/engine/servermaster/config_test.go b/engine/servermaster/config_test.go index ed16415d027..5d3032b9e05 100644 --- a/engine/servermaster/config_test.go +++ b/engine/servermaster/config_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( diff --git a/engine/servermaster/etcd.go b/engine/servermaster/etcd.go index a084e3350b5..72702b06b2b 100644 --- a/engine/servermaster/etcd.go +++ b/engine/servermaster/etcd.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +31,8 @@ import ( "net/http" "time" - "github.com/hanfei1991/microcosm/pkg/errors" perrors "github.com/pingcap/errors" + "github.com/pingcap/tiflow/engine/pkg/errors" "go.etcd.io/etcd/server/v3/embed" "google.golang.org/grpc" ) diff --git a/engine/servermaster/etcd_test.go b/engine/servermaster/etcd_test.go index a1c434a5ae9..ab2be8b99e7 100644 --- a/engine/servermaster/etcd_test.go +++ b/engine/servermaster/etcd_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -6,9 +19,9 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/etcdutils" "github.com/phayes/freeport" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" "github.com/stretchr/testify/require" "go.etcd.io/etcd/server/v3/embed" ) diff --git a/engine/servermaster/executor_manager.go b/engine/servermaster/executor_manager.go index 7aefdabffdd..848abde760e 100644 --- a/engine/servermaster/executor_manager.go +++ b/engine/servermaster/executor_manager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -9,13 +22,13 @@ import ( "go.uber.org/zap" "golang.org/x/time/rate" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/uuid" - "github.com/hanfei1991/microcosm/servermaster/resource" - "github.com/hanfei1991/microcosm/servermaster/scheduler" - "github.com/hanfei1991/microcosm/test" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/uuid" + "github.com/pingcap/tiflow/engine/servermaster/resource" + "github.com/pingcap/tiflow/engine/servermaster/scheduler" + "github.com/pingcap/tiflow/engine/test" ) // ExecutorManager defines an interface to manager all executors diff --git a/engine/servermaster/executor_manager_test.go b/engine/servermaster/executor_manager_test.go index 118d2e4eb51..3eef3d771e9 100644 --- a/engine/servermaster/executor_manager_test.go +++ b/engine/servermaster/executor_manager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -7,8 +20,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" ) func TestExecutorManager(t *testing.T) { diff --git a/engine/servermaster/failover.go b/engine/servermaster/failover.go index f2a6e7bcdcd..b807d5743a5 100644 --- a/engine/servermaster/failover.go +++ b/engine/servermaster/failover.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "context" "encoding/json" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/adapter" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/adapter" clientv3 "go.etcd.io/etcd/client/v3" ) diff --git a/engine/servermaster/http_handler.go b/engine/servermaster/http_handler.go index e832b516f39..e60ed6f9d94 100644 --- a/engine/servermaster/http_handler.go +++ b/engine/servermaster/http_handler.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( diff --git a/engine/servermaster/job_fsm.go b/engine/servermaster/job_fsm.go index 92993c75de2..9ac6ffa004d 100644 --- a/engine/servermaster/job_fsm.go +++ b/engine/servermaster/job_fsm.go @@ -1,12 +1,25 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "sync" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/errors" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/errors" "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" diff --git a/engine/servermaster/job_fsm_test.go b/engine/servermaster/job_fsm_test.go index 77ea555f78b..5f43791673d 100644 --- a/engine/servermaster/job_fsm_test.go +++ b/engine/servermaster/job_fsm_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -5,9 +18,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib/master" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/lib/master" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" ) func TestJobFsmStateTrans(t *testing.T) { diff --git a/engine/servermaster/jobmanager.go b/engine/servermaster/jobmanager.go index 4235105fbd1..d2b59001ff2 100644 --- a/engine/servermaster/jobmanager.go +++ b/engine/servermaster/jobmanager.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -8,17 +21,17 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - cvs "github.com/hanfei1991/microcosm/jobmaster/cvsJob" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/clock" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/uuid" + cvs "github.com/pingcap/tiflow/engine/jobmaster/cvsJob" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/clock" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) // JobManager defines manager of job master diff --git a/engine/servermaster/jobmanager_test.go b/engine/servermaster/jobmanager_test.go index 8df681180b6..773fc75517e 100644 --- a/engine/servermaster/jobmanager_test.go +++ b/engine/servermaster/jobmanager_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -8,16 +21,16 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/master" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/clock" - "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - "github.com/hanfei1991/microcosm/pkg/uuid" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/master" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/clock" + "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/pkg/uuid" ) func TestJobManagerSubmitJob(t *testing.T) { diff --git a/engine/servermaster/member.go b/engine/servermaster/member.go index 90f673bb5ea..06bba82f471 100644 --- a/engine/servermaster/member.go +++ b/engine/servermaster/member.go @@ -1,14 +1,27 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "context" "encoding/json" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/rpcutil" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" ) diff --git a/engine/servermaster/member_test.go b/engine/servermaster/member_test.go index 4bc644dc828..3915f5f88d2 100644 --- a/engine/servermaster/member_test.go +++ b/engine/servermaster/member_test.go @@ -1,15 +1,28 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "context" "testing" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/adapter" - "github.com/hanfei1991/microcosm/pkg/rpcutil" - "github.com/hanfei1991/microcosm/test" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/adapter" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/test" "github.com/stretchr/testify/require" ) diff --git a/engine/servermaster/metastore_manager.go b/engine/servermaster/metastore_manager.go index 718a8a1609f..d60afc22a05 100644 --- a/engine/servermaster/metastore_manager.go +++ b/engine/servermaster/metastore_manager.go @@ -1,12 +1,25 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "sync" - "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" "go.uber.org/zap" ) diff --git a/engine/servermaster/metastore_manager_test.go b/engine/servermaster/metastore_manager_test.go index e5a66d13261..0a94fe674c4 100644 --- a/engine/servermaster/metastore_manager_test.go +++ b/engine/servermaster/metastore_manager_test.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( "testing" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" "github.com/stretchr/testify/require" ) diff --git a/engine/servermaster/metrics.go b/engine/servermaster/metrics.go index 5aa1e811c89..81d21b80f10 100644 --- a/engine/servermaster/metrics.go +++ b/engine/servermaster/metrics.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import "github.com/prometheus/client_golang/prometheus" diff --git a/engine/servermaster/metrics_server.go b/engine/servermaster/metrics_server.go index 1ec3ed55d50..da260a29646 100644 --- a/engine/servermaster/metrics_server.go +++ b/engine/servermaster/metrics_server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( diff --git a/engine/servermaster/planner/util/dag_walker.go b/engine/servermaster/planner/util/dag_walker.go index 39e5f7c4606..e14130d72be 100644 --- a/engine/servermaster/planner/util/dag_walker.go +++ b/engine/servermaster/planner/util/dag_walker.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package util import ( - "github.com/hanfei1991/microcosm/model" - derror "github.com/hanfei1991/microcosm/pkg/errors" "github.com/pingcap/errors" "github.com/pingcap/log" + "github.com/pingcap/tiflow/engine/model" + derror "github.com/pingcap/tiflow/engine/pkg/errors" ) const ( diff --git a/engine/servermaster/planner/util/dag_walker_test.go b/engine/servermaster/planner/util/dag_walker_test.go index c24f039e29f..ee162068a88 100644 --- a/engine/servermaster/planner/util/dag_walker_test.go +++ b/engine/servermaster/planner/util/dag_walker_test.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package util import ( "testing" - "github.com/hanfei1991/microcosm/model" "github.com/pingcap/errors" + "github.com/pingcap/tiflow/engine/model" "github.com/stretchr/testify/require" ) diff --git a/engine/servermaster/resource/capacity_impl.go b/engine/servermaster/resource/capacity_impl.go index e2ca056094b..30fb15d9fd0 100644 --- a/engine/servermaster/resource/capacity_impl.go +++ b/engine/servermaster/resource/capacity_impl.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package resource import ( @@ -8,9 +21,9 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pkg/errors" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pkg/errors" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) // CapRescMgr implements ResourceMgr interface, and it uses node capacity as diff --git a/engine/servermaster/resource/manager.go b/engine/servermaster/resource/manager.go index 3864422dc3a..0d84f718184 100644 --- a/engine/servermaster/resource/manager.go +++ b/engine/servermaster/resource/manager.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package resource import ( - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/servermaster/scheduler" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/servermaster/scheduler" ) // RescMgr manages the resources of the clusters. diff --git a/engine/servermaster/scheduler/capacity_provider.go b/engine/servermaster/scheduler/capacity_provider.go index c2cbe8b3f05..42a38529465 100644 --- a/engine/servermaster/scheduler/capacity_provider.go +++ b/engine/servermaster/scheduler/capacity_provider.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( - "github.com/hanfei1991/microcosm/model" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) // CapacityProvider describes an object providing capacity info for diff --git a/engine/servermaster/scheduler/cost_scheduler.go b/engine/servermaster/scheduler/cost_scheduler.go index 12fef49a0ba..ae5a99c4c3e 100644 --- a/engine/servermaster/scheduler/cost_scheduler.go +++ b/engine/servermaster/scheduler/cost_scheduler.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( "math/rand" "time" - "github.com/hanfei1991/microcosm/model" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) // CostScheduler is a random scheduler diff --git a/engine/servermaster/scheduler/cost_scheduler_test.go b/engine/servermaster/scheduler/cost_scheduler_test.go index 7693938f5c6..ce68172ff93 100644 --- a/engine/servermaster/scheduler/cost_scheduler_test.go +++ b/engine/servermaster/scheduler/cost_scheduler_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( @@ -6,8 +19,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/model" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) func getMockCapacityData() CapacityProvider { diff --git a/engine/servermaster/scheduler/model/capacity.go b/engine/servermaster/scheduler/model/capacity.go index 5d6732e597e..30806e79cb1 100644 --- a/engine/servermaster/scheduler/model/capacity.go +++ b/engine/servermaster/scheduler/model/capacity.go @@ -1,6 +1,19 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model -import "github.com/hanfei1991/microcosm/model" +import "github.com/pingcap/tiflow/engine/model" // ResourceUnit is a type representing the value of // resource used. Although currently it is a scalar, diff --git a/engine/servermaster/scheduler/model/errors.go b/engine/servermaster/scheduler/model/errors.go index f763545ae8e..814ad641b36 100644 --- a/engine/servermaster/scheduler/model/errors.go +++ b/engine/servermaster/scheduler/model/errors.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( @@ -9,9 +22,9 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "google.golang.org/grpc/codes" - "github.com/hanfei1991/microcosm/model" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/model" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // ResourceNotFoundError happens when the resource id doesn't equal to any record diff --git a/engine/servermaster/scheduler/model/errors_test.go b/engine/servermaster/scheduler/model/errors_test.go index ce0274f33f3..0ecbcec5539 100644 --- a/engine/servermaster/scheduler/model/errors_test.go +++ b/engine/servermaster/scheduler/model/errors_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( @@ -8,7 +21,7 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" - derrors "github.com/hanfei1991/microcosm/pkg/errors" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" ) func TestConflictErrorToGRPCError(t *testing.T) { diff --git a/engine/servermaster/scheduler/model/request.go b/engine/servermaster/scheduler/model/request.go index 833507938f7..25c0aaed7fb 100644 --- a/engine/servermaster/scheduler/model/request.go +++ b/engine/servermaster/scheduler/model/request.go @@ -1,8 +1,21 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package model import ( - "github.com/hanfei1991/microcosm/model" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/model" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // SchedulerRequest represents a request for an executor to run a given task. diff --git a/engine/servermaster/scheduler/placement_constrainer.go b/engine/servermaster/scheduler/placement_constrainer.go index a89b0a23577..69e1312673a 100644 --- a/engine/servermaster/scheduler/placement_constrainer.go +++ b/engine/servermaster/scheduler/placement_constrainer.go @@ -1,11 +1,24 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( "context" - "github.com/hanfei1991/microcosm/model" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" + "github.com/pingcap/tiflow/engine/model" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" ) // PlacementConstrainer describes an object that provides diff --git a/engine/servermaster/scheduler/scheduler.go b/engine/servermaster/scheduler/scheduler.go index 84705ffbf7f..febca5939db 100644 --- a/engine/servermaster/scheduler/scheduler.go +++ b/engine/servermaster/scheduler/scheduler.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( @@ -6,10 +19,10 @@ import ( "github.com/pingcap/tiflow/dm/pkg/log" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/model" - derror "github.com/hanfei1991/microcosm/pkg/errors" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + derror "github.com/pingcap/tiflow/engine/pkg/errors" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) // Scheduler is a full set of scheduling management, containing capacity provider, diff --git a/engine/servermaster/scheduler/scheduler_test.go b/engine/servermaster/scheduler/scheduler_test.go index 1f096e382ba..f4021c1f0bb 100644 --- a/engine/servermaster/scheduler/scheduler_test.go +++ b/engine/servermaster/scheduler/scheduler_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package scheduler import ( @@ -6,9 +19,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/model" - resourcemeta "github.com/hanfei1991/microcosm/pkg/externalresource/resourcemeta/model" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/model" + resourcemeta "github.com/pingcap/tiflow/engine/pkg/externalresource/resourcemeta/model" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" ) func getMockCapacityDataForScheduler() CapacityProvider { diff --git a/engine/servermaster/server.go b/engine/servermaster/server.go index 1d1a59cf0f0..02d815eaf8e 100644 --- a/engine/servermaster/server.go +++ b/engine/servermaster/server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -26,31 +39,31 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/lib/metadata" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/adapter" - dcontext "github.com/hanfei1991/microcosm/pkg/context" - "github.com/hanfei1991/microcosm/pkg/deps" - derrors "github.com/hanfei1991/microcosm/pkg/errors" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - externRescManager "github.com/hanfei1991/microcosm/pkg/externalresource/manager" - extkv "github.com/hanfei1991/microcosm/pkg/meta/extension" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - pkgOrm "github.com/hanfei1991/microcosm/pkg/orm" - "github.com/hanfei1991/microcosm/pkg/p2p" - "github.com/hanfei1991/microcosm/pkg/rpcutil" - "github.com/hanfei1991/microcosm/pkg/serverutils" - "github.com/hanfei1991/microcosm/pkg/tenant" - "github.com/hanfei1991/microcosm/servermaster/cluster" - "github.com/hanfei1991/microcosm/servermaster/scheduler" - schedModel "github.com/hanfei1991/microcosm/servermaster/scheduler/model" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/lib/metadata" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/adapter" + dcontext "github.com/pingcap/tiflow/engine/pkg/context" + "github.com/pingcap/tiflow/engine/pkg/deps" + derrors "github.com/pingcap/tiflow/engine/pkg/errors" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + externRescManager "github.com/pingcap/tiflow/engine/pkg/externalresource/manager" + extkv "github.com/pingcap/tiflow/engine/pkg/meta/extension" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + pkgOrm "github.com/pingcap/tiflow/engine/pkg/orm" + "github.com/pingcap/tiflow/engine/pkg/p2p" + "github.com/pingcap/tiflow/engine/pkg/rpcutil" + "github.com/pingcap/tiflow/engine/pkg/serverutils" + "github.com/pingcap/tiflow/engine/pkg/tenant" + "github.com/pingcap/tiflow/engine/servermaster/cluster" + "github.com/pingcap/tiflow/engine/servermaster/scheduler" + schedModel "github.com/pingcap/tiflow/engine/servermaster/scheduler/model" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) // Server handles PRC requests for df master. diff --git a/engine/servermaster/server_test.go b/engine/servermaster/server_test.go index 1bf54b3e57b..81ddd2513df 100644 --- a/engine/servermaster/server_test.go +++ b/engine/servermaster/server_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package servermaster import ( @@ -11,11 +24,11 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/lib" - libModel "github.com/hanfei1991/microcosm/lib/model" - "github.com/hanfei1991/microcosm/model" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/servermaster/scheduler" + "github.com/pingcap/tiflow/engine/lib" + libModel "github.com/pingcap/tiflow/engine/lib/model" + "github.com/pingcap/tiflow/engine/model" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/servermaster/scheduler" "github.com/phayes/freeport" "github.com/pingcap/tiflow/dm/pkg/log" diff --git a/engine/test/context.go b/engine/test/context.go index bfdf9923aa8..bd965a3aa1a 100644 --- a/engine/test/context.go +++ b/engine/test/context.go @@ -1,10 +1,23 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package test import ( "context" "time" - "github.com/hanfei1991/microcosm/pkg/metadata" + "github.com/pingcap/tiflow/engine/pkg/metadata" ) // ExecutorChangeType defines executor change type, used in test only diff --git a/engine/test/e2e/e2e_dm_test.go b/engine/test/e2e/e2e_dm_test.go index 98191640f58..cdb07f8803c 100644 --- a/engine/test/e2e/e2e_dm_test.go +++ b/engine/test/e2e/e2e_dm_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e_test import ( @@ -9,8 +22,8 @@ import ( "github.com/pingcap/tiflow/tests/integration_tests/util" "github.com/stretchr/testify/require" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/pb" ) func TestDMJob(t *testing.T) { diff --git a/engine/test/e2e/e2e_node_chaos_test.go b/engine/test/e2e/e2e_node_chaos_test.go index f13dde4ce68..74d39deeaf8 100644 --- a/engine/test/e2e/e2e_node_chaos_test.go +++ b/engine/test/e2e/e2e_node_chaos_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e_test import ( @@ -11,9 +24,9 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib/fake" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/test/e2e" + "github.com/pingcap/tiflow/engine/lib/fake" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/test/e2e" ) // update the watched key of workers belonging to a given job, and then diff --git a/engine/test/e2e/e2e_test.go b/engine/test/e2e/e2e_test.go index 2f174408d51..a5d5f59702f 100644 --- a/engine/test/e2e/e2e_test.go +++ b/engine/test/e2e/e2e_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e_test import ( @@ -13,10 +26,10 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/client" - cvs "github.com/hanfei1991/microcosm/jobmaster/cvsJob" - "github.com/hanfei1991/microcosm/lib" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/client" + cvs "github.com/pingcap/tiflow/engine/jobmaster/cvsJob" + "github.com/pingcap/tiflow/engine/lib" + "github.com/pingcap/tiflow/engine/pb" ) type Config struct { diff --git a/engine/test/e2e/e2e_test_cli.go b/engine/test/e2e/e2e_test_cli.go index 1df80de5424..68971ccc2fb 100644 --- a/engine/test/e2e/e2e_test_cli.go +++ b/engine/test/e2e/e2e_test_cli.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e import ( @@ -13,12 +26,12 @@ import ( "go.uber.org/zap" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/client" - "github.com/hanfei1991/microcosm/lib/fake" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/pkg/meta/kvclient" - "github.com/hanfei1991/microcosm/pkg/meta/metaclient" - "github.com/hanfei1991/microcosm/pkg/tenant" + "github.com/pingcap/tiflow/engine/client" + "github.com/pingcap/tiflow/engine/lib/fake" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/pkg/meta/kvclient" + "github.com/pingcap/tiflow/engine/pkg/meta/metaclient" + "github.com/pingcap/tiflow/engine/pkg/tenant" ) // ChaosCli is used to interact with server master, fake job and provides ways diff --git a/engine/test/e2e/e2e_worker_exit_test.go b/engine/test/e2e/e2e_worker_exit_test.go index f5c937fcc7d..f1308f3f07d 100644 --- a/engine/test/e2e/e2e_worker_exit_test.go +++ b/engine/test/e2e/e2e_worker_exit_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e_test import ( @@ -10,9 +23,9 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap" - "github.com/hanfei1991/microcosm/lib/fake" - "github.com/hanfei1991/microcosm/pb" - "github.com/hanfei1991/microcosm/test/e2e" + "github.com/pingcap/tiflow/engine/lib/fake" + "github.com/pingcap/tiflow/engine/pb" + "github.com/pingcap/tiflow/engine/test/e2e" ) func TestWorkerExit(t *testing.T) { diff --git a/engine/test/etcd_utils.go b/engine/test/etcd_utils.go index ba79c249942..edc70266502 100644 --- a/engine/test/etcd_utils.go +++ b/engine/test/etcd_utils.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package test import ( @@ -8,8 +21,8 @@ import ( "testing" "time" - "github.com/hanfei1991/microcosm/pkg/etcdutils" "github.com/phayes/freeport" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" "github.com/stretchr/testify/require" clientv3 "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/server/v3/embed" diff --git a/engine/test/flag.go b/engine/test/flag.go index af1d9490a66..5aa26049436 100644 --- a/engine/test/flag.go +++ b/engine/test/flag.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package test import ( diff --git a/engine/test/heartbeat_test.go b/engine/test/heartbeat_test.go index 056b36a647a..a96c512684f 100644 --- a/engine/test/heartbeat_test.go +++ b/engine/test/heartbeat_test.go @@ -1,15 +1,28 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package test_test import ( "testing" "time" - "github.com/hanfei1991/microcosm/executor" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - "github.com/hanfei1991/microcosm/servermaster" - "github.com/hanfei1991/microcosm/test" . "github.com/pingcap/check" "github.com/pingcap/tiflow/dm/pkg/log" + "github.com/pingcap/tiflow/engine/executor" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/servermaster" + "github.com/pingcap/tiflow/engine/test" ) func TestT(t *testing.T) { diff --git a/engine/test/mock/discovery.go b/engine/test/mock/discovery.go index 8aea4809f05..1fb580df96c 100644 --- a/engine/test/mock/discovery.go +++ b/engine/test/mock/discovery.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by MockGen. DO NOT EDIT. // Source: pkg/srvdiscovery/interface.go @@ -9,7 +22,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - srvdiscovery "github.com/hanfei1991/microcosm/pkg/srvdiscovery" + srvdiscovery "github.com/pingcap/tiflow/engine/pkg/srvdiscovery" ) // MockDiscovery is a mock of Discovery interface. diff --git a/engine/test/mock/discovery_runner.go b/engine/test/mock/discovery_runner.go index b08589087b2..cc50959885d 100644 --- a/engine/test/mock/discovery_runner.go +++ b/engine/test/mock/discovery_runner.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by MockGen. DO NOT EDIT. // Source: pkg/srvdiscovery/runner.go @@ -9,7 +22,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - srvdiscovery "github.com/hanfei1991/microcosm/pkg/srvdiscovery" + srvdiscovery "github.com/pingcap/tiflow/engine/pkg/srvdiscovery" ) // MockDiscoveryRunner is a mock of DiscoveryRunner interface. diff --git a/engine/test/mock/grpc.go b/engine/test/mock/grpc.go index 275e4d56bea..904ae498534 100644 --- a/engine/test/mock/grpc.go +++ b/engine/test/mock/grpc.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package mock import ( @@ -9,7 +22,7 @@ import ( "go.uber.org/zap" "google.golang.org/grpc" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" ) var container *grpcContainer diff --git a/engine/test/mock/test_server.go b/engine/test/mock/test_server.go index 21c3b1f0784..05dc3fef5a0 100644 --- a/engine/test/mock/test_server.go +++ b/engine/test/mock/test_server.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package mock import ( @@ -6,7 +19,7 @@ import ( "io" "sync/atomic" - "github.com/hanfei1991/microcosm/pb" + "github.com/pingcap/tiflow/engine/pb" "google.golang.org/grpc" "google.golang.org/grpc/metadata" ) diff --git a/engine/test/util_test.go b/engine/test/util_test.go index 00c02fb9ed6..1853a5c6995 100644 --- a/engine/test/util_test.go +++ b/engine/test/util_test.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package test_test import ( @@ -5,14 +18,14 @@ import ( "fmt" "time" - "github.com/hanfei1991/microcosm/executor" - "github.com/hanfei1991/microcosm/pkg/etcdutils" - "github.com/hanfei1991/microcosm/pkg/metadata" - "github.com/hanfei1991/microcosm/servermaster" - "github.com/hanfei1991/microcosm/test" - "github.com/hanfei1991/microcosm/test/mock" "github.com/phayes/freeport" . "github.com/pingcap/check" + "github.com/pingcap/tiflow/engine/executor" + "github.com/pingcap/tiflow/engine/pkg/etcdutils" + "github.com/pingcap/tiflow/engine/pkg/metadata" + "github.com/pingcap/tiflow/engine/servermaster" + "github.com/pingcap/tiflow/engine/test" + "github.com/pingcap/tiflow/engine/test/mock" ) // TODO: support multi master / executor diff --git a/engine/tools/tools.go b/engine/tools/tools.go index 2299828bbd5..f55adda315c 100644 --- a/engine/tools/tools.go +++ b/engine/tools/tools.go @@ -1,3 +1,16 @@ +// Copyright 2022 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2020 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/errors.toml b/errors.toml index 2326ea7f1f5..53a812a178f 100755 --- a/errors.toml +++ b/errors.toml @@ -1101,6 +1101,501 @@ error = ''' 0-length response with status code: %d ''' +["DFLOW:ErrBuildJobFailed"] +error = ''' +build job failed +''' + +["DFLOW:ErrCleaningLocalTempFiles"] +error = ''' +errors is encountered when cleaning local temp files +''' + +["DFLOW:ErrClusterResourceNotEnough"] +error = ''' +cluster resource is not enough, please scale out the cluster +''' + +["DFLOW:ErrCreateLocalFileDirectoryFailed"] +error = ''' +creating local file resource directory failed +''' + +["DFLOW:ErrDatasetEntryNotFound"] +error = ''' +dataset entry not found. Key: %s +''' + +["DFLOW:ErrDecodeEtcdKeyFail"] +error = ''' +failed to decode etcd key: %s +''' + +["DFLOW:ErrDecodeEtcdValueFail"] +error = ''' +failed to decode etcd value: %s +''' + +["DFLOW:ErrDiscoveryDuplicateWatch"] +error = ''' +service discovery can't be watched multiple times +''' + +["DFLOW:ErrDuplicateResourceID"] +error = ''' +duplicate resource ID: %s +''' + +["DFLOW:ErrDuplicateWorkerID"] +error = ''' +duplicate worker ID encountered: %s, report a bug +''' + +["DFLOW:ErrEtcdAPIError"] +error = ''' +etcd api returns error +''' + +["DFLOW:ErrEtcdLeaderChanged"] +error = ''' +etcd leader has changed +''' + +["DFLOW:ErrExecutorConfigInvalidFlag"] +error = ''' +'%s' is an invalid flag +''' + +["DFLOW:ErrExecutorConfigParseFlagSet"] +error = ''' +parse config flag set failed +''' + +["DFLOW:ErrExecutorConfigUnknownItem"] +error = ''' +master config contains unknown configuration options: %s +''' + +["DFLOW:ErrExecutorConfirmDispatchFailed"] +error = ''' +ConfirmDispatch failed +''' + +["DFLOW:ErrExecutorDecodeConfigFile"] +error = ''' +decode config file failed +''' + +["DFLOW:ErrExecutorDupRegister"] +error = ''' +executor %s has been registered +''' + +["DFLOW:ErrExecutorEtcdConnFail"] +error = ''' +executor conn inner etcd fail +''' + +["DFLOW:ErrExecutorNotFoundForMessage"] +error = ''' +cannot find the executor for p2p messaging +''' + +["DFLOW:ErrExecutorPreDispatchFailed"] +error = ''' +PreDispatchTask failed +''' + +["DFLOW:ErrExecutorSessionDone"] +error = ''' +executor %s session done +''' + +["DFLOW:ErrFailToCreateExternalStorage"] +error = ''' +failed to create external storage +''' + +["DFLOW:ErrGrpcBuildConn"] +error = ''' +dial grpc connection to %s failed +''' + +["DFLOW:ErrHeartbeat"] +error = ''' +heartbeat error type: %s +''' + +["DFLOW:ErrIllegalResourcePath"] +error = ''' +resource path is illegal: %s +''' + +["DFLOW:ErrInvalidJobType"] +error = ''' +invalid job type: %s +''' + +["DFLOW:ErrInvalidMasterMessage"] +error = ''' +invalid master message: %s +''' + +["DFLOW:ErrInvalidMetaStoreKey"] +error = ''' +invalid metastore key %s +''' + +["DFLOW:ErrInvalidMetaStoreKeyTp"] +error = ''' +invalid metastore key type %s +''' + +["DFLOW:ErrInvalidServerMasterID"] +error = ''' +invalid server master id: %s +''' + +["DFLOW:ErrLeaderCtxCanceled"] +error = ''' +leader context is canceled +''' + +["DFLOW:ErrMasterCampaignLeader"] +error = ''' +master campaign to be leader failed +''' + +["DFLOW:ErrMasterClosed"] +error = ''' +master has been closed explicitly: master ID %s +''' + +["DFLOW:ErrMasterConcurrencyExceeded"] +error = ''' +master has reached concurrency quota +''' + +["DFLOW:ErrMasterConfigInvalidFlag"] +error = ''' +'%s' is an invalid flag +''' + +["DFLOW:ErrMasterConfigParseFlagSet"] +error = ''' +parse config flag set failed +''' + +["DFLOW:ErrMasterConfigUnknownItem"] +error = ''' +master config contains unknown configuration options: %s +''' + +["DFLOW:ErrMasterDecodeConfigFile"] +error = ''' +decode config file failed +''' + +["DFLOW:ErrMasterEtcdCreateSessionFail"] +error = ''' +failed to create Etcd session +''' + +["DFLOW:ErrMasterEtcdElectionCampaignFail"] +error = ''' +failed to campaign for leader +''' + +["DFLOW:ErrMasterEtcdEpochFail"] +error = ''' +server master generate epoch fail +''' + +["DFLOW:ErrMasterGenEmbedEtcdConfigFail"] +error = ''' +master gen embed etcd config failed: %s +''' + +["DFLOW:ErrMasterInvalidMeta"] +error = ''' +invalid master meta data: %s +''' + +["DFLOW:ErrMasterJoinEmbedEtcdFail"] +error = ''' +failed to join embed etcd: %s +''' + +["DFLOW:ErrMasterNewServer"] +error = ''' +master create new server failed +''' + +["DFLOW:ErrMasterNoLeader"] +error = ''' +server master has no leader +''' + +["DFLOW:ErrMasterNotFound"] +error = ''' +master is not found: master ID %s +''' + +["DFLOW:ErrMasterNotInitialized"] +error = ''' +master is not initialized +''' + +["DFLOW:ErrMasterParseURLFail"] +error = ''' +failed to parse URL %s +''' + +["DFLOW:ErrMasterRPCNotForward"] +error = ''' +server grpc is not forwarded to leader +''' + +["DFLOW:ErrMasterScheduleMissTask"] +error = ''' +task %d is not found after scheduling +''' + +["DFLOW:ErrMasterSessionDone"] +error = ''' +master session is done +''' + +["DFLOW:ErrMasterStartEmbedEtcdFail"] +error = ''' +failed to start embed etcd +''' + +["DFLOW:ErrMasterTooManyPendingEvents"] +error = ''' +master has too many pending events +''' + +["DFLOW:ErrMessageClientNotFoundForWorker"] +error = ''' +peer message client is not found for worker: worker ID %s +''' + +["DFLOW:ErrMetaCommittedTxn"] +error = ''' +meta already committed txn +''' + +["DFLOW:ErrMetaEmptyKey"] +error = ''' +meta empty key +''' + +["DFLOW:ErrMetaEntryAlreadyExists"] +error = ''' +meta entry already exists +''' + +["DFLOW:ErrMetaEntryNotFound"] +error = ''' +meta entry not found +''' + +["DFLOW:ErrMetaNestedTxn"] +error = ''' +meta unsupported nested txn +''' + +["DFLOW:ErrMetaNewClientFail"] +error = ''' +create meta client fail +''' + +["DFLOW:ErrMetaOpFail"] +error = ''' +meta operation fail +''' + +["DFLOW:ErrMetaOptionConflict"] +error = ''' +WithRange/WithPrefix/WithFromKey, more than one option are used +''' + +["DFLOW:ErrMetaOptionInvalid"] +error = ''' +meta option invalid +''' + +["DFLOW:ErrMetaParamsInvalid"] +error = ''' +meta params invalid:%s +''' + +["DFLOW:ErrMetaRevisionUnmatch"] +error = ''' +meta revision unmatch +''' + +["DFLOW:ErrMetaStoreIDDuplicate"] +error = ''' +metastore id duplicated +''' + +["DFLOW:ErrMetaStoreUnfounded"] +error = ''' +metastore unfounded:%s +''' + +["DFLOW:ErrNoRPCClient"] +error = ''' +no available RPC client +''' + +["DFLOW:ErrOperatorUnknown"] +error = ''' +operator type %d is unknown +''' + +["DFLOW:ErrPlannerDAGDepthExceeded"] +error = ''' +dag depth exceeded: %d +''' + +["DFLOW:ErrReadLocalFileDirectoryFailed"] +error = ''' +reading local file resource directory failed +''' + +["DFLOW:ErrRemovingLocalResource"] +error = ''' +removing a local resource file directory has failed +''' + +["DFLOW:ErrResourceDoesNotExist"] +error = ''' +resource does not exists: %s +''' + +["DFLOW:ErrRuntimeClosed"] +error = ''' +runtime has been closed +''' + +["DFLOW:ErrRuntimeDuplicateTaskID %s"] +error = ''' +trying to add a task with the same ID as an existing one +''' + +["DFLOW:ErrRuntimeIncomingQueueFull"] +error = ''' +runtime has too many pending CreateWorker requests +''' + +["DFLOW:ErrRuntimeInitQueuingTimeOut"] +error = ''' +a task has waited too long to be initialized +''' + +["DFLOW:ErrRuntimeIsClosed"] +error = ''' +runtime has been closed +''' + +["DFLOW:ErrRuntimeReachedCapacity"] +error = ''' +runtime has reached its capacity %d +''' + +["DFLOW:ErrSendingMessageToTombstone"] +error = ''' +trying to send message to a tombstone worker handle: %s +''' + +["DFLOW:ErrSubJobFailed"] +error = ''' +executor %s job %d +''' + +["DFLOW:ErrTaskNotFound"] +error = ''' +task %d is not found +''' + +["DFLOW:ErrTombstoneExecutor"] +error = ''' +executor %s has been dead +''' + +["DFLOW:ErrTooManyStatusUpdates"] +error = ''' +there are too many pending worker status updates: %d +''' + +["DFLOW:ErrUnexpectedResourcePath"] +error = ''' +unexpected resource path: %s +''' + +["DFLOW:ErrUnknownExecutorID"] +error = ''' +cannot find executor ID: %s +''' + +["DFLOW:ErrWorkerFinish"] +error = ''' +worker finished and exited +''' + +["DFLOW:ErrWorkerHalfExit"] +error = ''' +the worker is in half-exited state +''' + +["DFLOW:ErrWorkerNoMeta"] +error = ''' +worker metadata does not exist +''' + +["DFLOW:ErrWorkerNotFound"] +error = ''' +worker is not found: worker ID %s +''' + +["DFLOW:ErrWorkerOffline"] +error = ''' +worker is offline: workerID: %s, error message: %s +''' + +["DFLOW:ErrWorkerStop"] +error = ''' +worker is stopped +''' + +["DFLOW:ErrWorkerSuicide"] +error = ''' +worker has committed suicide due to master(%s) having timed out +''' + +["DFLOW:ErrWorkerTimedOut"] +error = ''' +worker heartbeat timed out: workerID %s +''' + +["DFLOW:ErrWorkerTypeNotFound"] +error = ''' +worker type is not found: type %d +''' + +["DFLOW:ErrWorkerUpdateStatusTryAgain"] +error = ''' +worker should try again in updating the status +''' + +["DLFOW:ErrResourceManagerNotReady"] +error = ''' +resource manager is not ready +''' + ["ErrConflictingFileLocks"] error = ''' file lock conflict: %s diff --git a/go.mod b/go.mod index 9268b6ccac7..0bff6a3adcb 100644 --- a/go.mod +++ b/go.mod @@ -22,12 +22,14 @@ require ( github.com/edwingeng/deque v0.0.0-20191220032131-8596380dee17 github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 github.com/fatih/color v1.13.0 + github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424 github.com/getkin/kin-openapi v0.80.0 github.com/gin-gonic/gin v1.7.4 github.com/go-mysql-org/go-mysql v1.4.1-0.20220221114137-89145541e0d4 github.com/go-sql-driver/mysql v1.6.0 github.com/gogo/gateway v1.1.0 github.com/gogo/protobuf v1.3.2 + github.com/gogo/status v1.1.0 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.2 github.com/google/btree v1.0.1 @@ -53,7 +55,7 @@ require ( github.com/pingcap/tidb v1.1.0-beta.0.20220412180037-d07b66ea638c github.com/pingcap/tidb-tools v6.0.0-alpha.0.20220317013353-dfc5146f4746+incompatible github.com/pingcap/tidb/parser v0.0.0-20220412180037-d07b66ea638c - github.com/prometheus/client_golang v1.11.0 + github.com/prometheus/client_golang v1.12.2 github.com/prometheus/client_model v0.2.0 github.com/r3labs/diff v1.1.0 github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 @@ -80,8 +82,10 @@ require ( go.etcd.io/etcd/server/v3 v3.5.2 go.etcd.io/etcd/tests/v3 v3.5.2 go.uber.org/atomic v1.9.0 + go.uber.org/dig v1.9.0 go.uber.org/goleak v1.1.12 go.uber.org/multierr v1.8.0 + go.uber.org/ratelimit v0.2.0 go.uber.org/zap v1.21.0 golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd golang.org/x/sync v0.0.0-20210220032951-036812b2e83c @@ -92,6 +96,9 @@ require ( google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8 google.golang.org/grpc v1.44.0 gopkg.in/yaml.v2 v2.4.0 + gorm.io/driver/mysql v1.0.6 + gorm.io/driver/sqlite v1.1.4 + gorm.io/gorm v1.21.9 upper.io/db.v3 v3.7.1+incompatible ) @@ -111,6 +118,7 @@ require ( github.com/PuerkitoBio/purell v1.1.1 // indirect github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect github.com/VividCortex/ewma v1.1.1 // indirect + github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect github.com/apache/pulsar-client-go/oauth2 v0.0.0-20201120111947-b8bd55bc02bd // indirect github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect @@ -152,6 +160,7 @@ require ( github.com/go-playground/universal-translator v0.18.0 // indirect github.com/go-playground/validator/v10 v10.9.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang/glog v1.0.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect @@ -171,6 +180,8 @@ require ( github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect github.com/jcmturner/rpc/v2 v2.0.3 // indirect github.com/jedib0t/go-pretty/v6 v6.2.2 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.2 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df // indirect github.com/jonboulle/clockwork v0.2.2 // indirect @@ -211,7 +222,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/common v0.32.1 // indirect - github.com/prometheus/procfs v0.6.0 // indirect + github.com/prometheus/procfs v0.7.3 // indirect github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/rogpeppe/go-internal v1.8.0 // indirect diff --git a/go.sum b/go.sum index a53747e8b2a..3f3ea9bf0c5 100644 --- a/go.sum +++ b/go.sum @@ -116,6 +116,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alvaroloes/enumer v1.1.2/go.mod h1:FxrjvuXoDAx9isTJrv4c+T410zFi0DtXIT0m65DJ+Wo= +github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 h1:MzBOUgng9orim59UnfUTLRjMpd09C5uEVQ6RPGeCaVI= +github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129/go.mod h1:rFgpPQZYZ8vdbc+48xibu8ALc3yeyd64IhHS+PU6Yyg= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antonmedv/expr v1.9.0/go.mod h1:5qsM3oLGDND7sDmQGDXHkYfkjYMUX14qsgqmHhwGEk8= @@ -339,6 +341,8 @@ github.com/fsouza/fake-gcs-server v1.19.0 h1:XyaGOlqo+R5sjT03x2ymk0xepaQlgwhRLTT github.com/fsouza/fake-gcs-server v1.19.0/go.mod h1:JtXHY/QzHhtyIxsNfIuQ+XgHtRb5B/w8nqbL5O8zqo0= github.com/fzipp/gocyclo v0.3.1/go.mod h1:DJHO6AUmbdqj2ET4Z9iArSuwWgYDRryYt2wASxc7x3E= github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= +github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424 h1:Vh7rylVZRZCj6W41lRlP17xPk4Nq260H4Xo/DDYmEZk= +github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424/go.mod h1:vmp8DIyckQMXOPl0AQVHt+7n5h7Gb7hS6CUydiV8QeA= github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg= github.com/gdamore/tcell v1.3.0/go.mod h1:Hjvr+Ofd+gLglo7RYKxxnzCBmev3BzsS67MebKS4zMM= github.com/getkin/kin-openapi v0.80.0 h1:W/s5/DNnDCR8P+pYyafEWlGk4S7/AfQUWXgrRSSAzf8= @@ -433,6 +437,7 @@ github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5x github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= +github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a h1:dR8+Q0uO5S2ZBcs2IH6VBKYwSxPo2vYCYq0ot0mu7xA= github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -442,6 +447,7 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/gogo/status v1.1.0 h1:+eIkrewn5q6b30y+g/BJINVVdi2xH7je5MPJ3ZPK3JA= github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= @@ -681,9 +687,11 @@ github.com/jedib0t/go-pretty/v6 v6.2.2/go.mod h1:+nE9fyyHGil+PuISTCrp7avEdo6bqoM github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= github.com/jinzhu/gorm v1.9.12/go.mod h1:vhTjlKSJUTWNtcbQtrMBFCxy7eXTzeCAzfL5fBZT/Qs= +github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jinzhu/now v1.0.1/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jinzhu/now v1.1.1/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= +github.com/jinzhu/now v1.1.2 h1:eVKgfIdy9b6zbWBMgFpfDPoAMifwSZagU9HmEU6zgiI= github.com/jinzhu/now v1.1.2/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= @@ -1018,8 +1026,9 @@ github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQ github.com/prometheus/client_golang v1.2.1/go.mod h1:XMU6Z2MjaRKVu/dC1qupJI9SiNkDYzz3xecMgSW/F+U= github.com/prometheus/client_golang v1.5.1/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0 h1:HNkLOAEQMIDv/K+04rukrLx6ch7msSRwf3/SASFAGtQ= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34= +github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1043,8 +1052,9 @@ github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDa github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/r3labs/diff v1.1.0 h1:V53xhrbTHrWFWq3gI4b94AjgEJOerO1+1l0xyHOBi8M= github.com/r3labs/diff v1.1.0/go.mod h1:7WjXasNzi0vJetRcB/RqNl5dlIsmXcTTLmF5IoH6Xig= @@ -1326,6 +1336,7 @@ go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/automaxprocs v1.4.0/go.mod h1:/mTEdr7LvHhs0v7mjdxDreTz1OG5zdZGqgOnhWiR/+Q= go.uber.org/dig v1.8.0/go.mod h1:X34SnWGr8Fyla9zQNO2GSO2D+TIuqB14OS8JhYocIyw= +go.uber.org/dig v1.9.0 h1:pJTDXKEhRqBI8W7rU7kwT5EgyRZuSMVSFcZolOvKK9U= go.uber.org/dig v1.9.0/go.mod h1:X34SnWGr8Fyla9zQNO2GSO2D+TIuqB14OS8JhYocIyw= go.uber.org/fx v1.10.0/go.mod h1:vLRicqpG/qQEzno4SYU86iCwfT95EZza+Eba0ItuxqY= go.uber.org/fx v1.12.0/go.mod h1:egT3Kyg1JFYQkvKLZ3EsykxkNrZxgXS+gKoKo7abERY= @@ -1343,6 +1354,8 @@ go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9i go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/ratelimit v0.2.0 h1:UQE2Bgi7p2B85uP5dC2bbRtig0C+OeNRnNEafLjsLPA= +go.uber.org/ratelimit v0.2.0/go.mod h1:YYBV4e4naJvhpitQrWJu1vCpgB7CboMe0qhltKt6mUg= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.8.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= @@ -1949,9 +1962,12 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gorm.io/driver/mysql v1.0.6 h1:mA0XRPjIKi4bkE9nv+NKs6qj6QWOchqUSdWOcpd3x1E= gorm.io/driver/mysql v1.0.6/go.mod h1:KdrTanmfLPPyAOeYGyG+UpDys7/7eeWT1zCq+oekYnU= +gorm.io/driver/sqlite v1.1.4 h1:PDzwYE+sI6De2+mxAneV9Xs11+ZyKV6oxD3wDGkaNvM= gorm.io/driver/sqlite v1.1.4/go.mod h1:mJCeTFr7+crvS+TRnWc5Z3UvwxUN1BGBLMrf5LA9DYw= gorm.io/gorm v1.20.7/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw= +gorm.io/gorm v1.21.9 h1:INieZtn4P2Pw6xPJ8MzT0G4WUOsHq3RhfuDF1M6GW0E= gorm.io/gorm v1.21.9/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= gotest.tools/gotestsum v1.7.0/go.mod h1:V1m4Jw3eBerhI/A6qCxUE07RnCg7ACkKj9BYcAm09V8= gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=