From 0702f96a16d80b267ef2690e3c3ae46b5b4d5c43 Mon Sep 17 00:00:00 2001 From: andrewshan Date: Wed, 28 Jul 2021 14:27:05 +0800 Subject: [PATCH] license prefix updated 1. submit license updated 2. submt vert.sh 3. submit opensource docs --- CONTRIBUTING.md | 26 + Code-of-Conduct.md | 5 + LICENSE | 892 ++++++++++++++++++ README-zh.md | 201 ++++ README.md | 358 +++---- api/config.go | 2 +- api/consumer.go | 2 +- api/consumer_impl.go | 2 +- api/limit.go | 2 +- api/limit_impl.go | 2 +- api/log.go | 2 +- api/provider.go | 2 +- api/provider_impl.go | 2 +- benchmark/benchmain/main.go | 2 +- benchmark/benchsimple/main.go | 2 +- benchmark/flags/flags.go | 2 +- benchmark/stats/histogram.go | 2 +- benchmark/stats/stats.go | 2 +- benchmark/tools/deregisterServices.py | 2 +- benchmark/tools/registerServices.py | 2 +- pkg/algorithm/hash/base.go | 2 +- pkg/algorithm/hash/murmur3.go | 2 +- pkg/algorithm/rand/rand.go | 2 +- pkg/algorithm/rand/rand_test.go | 2 +- pkg/algorithm/rand/selector.go | 2 +- pkg/algorithm/search/search.go | 2 +- pkg/algorithm/search/search_test.go | 2 +- pkg/clock/clock.go | 2 +- pkg/config/api.go | 2 +- pkg/config/circuitbreaker.go | 2 +- pkg/config/default.go | 2 +- pkg/config/impl.go | 2 +- pkg/config/joinpoint_info.go | 2 +- pkg/config/loadbalancer.go | 2 +- pkg/config/localcache.go | 2 +- pkg/config/outlierdetector.go | 2 +- pkg/config/plugin.go | 2 +- pkg/config/provider.go | 2 +- pkg/config/ratelimiter.go | 2 +- pkg/config/serverconnector.go | 2 +- pkg/config/service_specifc.go | 2 +- pkg/config/servicerouter.go | 2 +- pkg/config/statreporter.go | 2 +- pkg/config/subscribe.go | 2 +- pkg/control/routines.go | 2 +- pkg/flow/async_flow.go | 2 +- pkg/flow/base_flow.go | 2 +- pkg/flow/cbcheck/object.go | 2 +- pkg/flow/cbcheck/realtime.go | 2 +- pkg/flow/cbcheck/ticker.go | 2 +- pkg/flow/data/compare.go | 2 +- pkg/flow/data/object.go | 2 +- pkg/flow/data/param.go | 2 +- pkg/flow/data/util.go | 2 +- pkg/flow/detect/object.go | 2 +- pkg/flow/detect/ticker.go | 2 +- pkg/flow/impl.go | 2 +- pkg/flow/notify.go | 2 +- pkg/flow/quota/assist.go | 2 +- pkg/flow/quota/bucket_qps.go | 2 +- pkg/flow/quota/ratelimit_slice_window.go | 2 +- pkg/flow/quota/rl.go | 2 +- pkg/flow/quota/statistics_bucket.go | 2 +- pkg/flow/quota/ticker.go | 2 +- pkg/flow/quota/window.go | 2 +- pkg/flow/schedule/event.go | 2 +- pkg/flow/schedule/routines.go | 2 +- pkg/flow/startup/client_report.go | 2 +- pkg/flow/startup/config_report.go | 2 +- pkg/flow/startup/server_service.go | 2 +- pkg/flow/sync_flow.go | 2 +- pkg/flow/timing_flow.go | 2 +- pkg/log/default.go | 2 +- pkg/log/log.go | 2 +- pkg/metric/bucket.go | 2 +- pkg/metric/window.go | 2 +- pkg/model/buffer.go | 2 +- pkg/model/cluster.go | 2 +- pkg/model/context.go | 2 +- pkg/model/core.go | 2 +- pkg/model/engine.go | 2 +- pkg/model/error.go | 2 +- pkg/model/local/value.go | 2 +- pkg/model/now.go | 2 +- pkg/model/pb/metric/code.go | 2 +- pkg/model/pb/metric/v2/code.go | 2 +- pkg/model/pb/metric/v2/wrapper.go | 2 +- pkg/model/pb/ratelimiting.go | 2 +- pkg/model/pb/routing.go | 2 +- pkg/model/pb/rule.go | 2 +- pkg/model/pb/service.go | 2 +- pkg/model/pb/util.go | 2 +- pkg/model/pb/v1/codeinfo.go | 2 +- pkg/model/pb/validate.go | 2 +- pkg/model/quota.go | 2 +- pkg/model/rule.go | 2 +- pkg/model/service.go | 2 +- pkg/model/stat.go | 2 +- pkg/model/subscribe_event.go | 2 +- pkg/model/task.go | 2 +- pkg/model/util.go | 2 +- pkg/network/conn.go | 2 +- pkg/network/creator.go | 2 +- pkg/network/impl.go | 2 +- pkg/network/manager.go | 2 +- pkg/plugin/alarmreporter/alarmreporter.go | 2 +- pkg/plugin/alarmreporter/proxy.go | 2 +- pkg/plugin/circuitbreaker/circuitbreaker.go | 2 +- pkg/plugin/circuitbreaker/proxy.go | 2 +- pkg/plugin/common/plugin.go | 2 +- pkg/plugin/loadbalancer/loadbalancer.go | 2 +- pkg/plugin/loadbalancer/proxy.go | 2 +- pkg/plugin/loadbalancer/util.go | 2 +- pkg/plugin/localregistry/localregistry.go | 2 +- pkg/plugin/localregistry/proxy.go | 2 +- pkg/plugin/manage.go | 2 +- .../outlierdetection/outlierdetection.go | 2 +- pkg/plugin/outlierdetection/proxy.go | 2 +- pkg/plugin/ratelimiter/proxy.go | 2 +- pkg/plugin/ratelimiter/ratelimiter.go | 2 +- pkg/plugin/register/plugins.go | 2 +- pkg/plugin/register/plugins.temp | 2 +- pkg/plugin/serverconnector/proxy.go | 2 +- pkg/plugin/serverconnector/serverconnector.go | 2 +- pkg/plugin/servicerouter/proxy.go | 2 +- pkg/plugin/servicerouter/servicerouter.go | 2 +- pkg/plugin/servicerouter/util.go | 2 +- pkg/plugin/statreporter/proxy.go | 2 +- pkg/plugin/statreporter/statreporter.go | 2 +- pkg/plugin/subscribe/proxy.go | 2 +- pkg/plugin/subscribe/subscribe.go | 2 +- pkg/plugin/weightadjuster/proxy.go | 2 +- pkg/plugin/weightadjuster/weightadjuster.go | 2 +- pkg/stat/loadbalance/lb.go | 2 +- pkg/stat/plugin/plug.go | 2 +- pkg/version/version.go | 2 +- plugin/alarmreporter/file/alarm_file.go | 2 +- plugin/circuitbreaker/common/half_open.go | 2 +- plugin/circuitbreaker/errorcount/config.go | 2 +- plugin/circuitbreaker/errorcount/err_count.go | 2 +- plugin/circuitbreaker/errorrate/config.go | 2 +- plugin/circuitbreaker/errorrate/err_rate.go | 2 +- plugin/loadbalancer/common/half_open.go | 2 +- plugin/loadbalancer/common/hash.go | 2 +- plugin/loadbalancer/hash/config.go | 2 +- plugin/loadbalancer/hash/hash.go | 2 +- plugin/loadbalancer/maglev/config.go | 2 +- plugin/loadbalancer/maglev/maglev.go | 2 +- plugin/loadbalancer/maglev/table.go | 2 +- plugin/loadbalancer/ringhash/config.go | 2 +- plugin/loadbalancer/ringhash/continuum.go | 2 +- plugin/loadbalancer/ringhash/l5continuum.go | 2 +- plugin/loadbalancer/ringhash/l5cst.go | 2 +- plugin/loadbalancer/ringhash/ringhash.go | 2 +- plugin/loadbalancer/weightedrandom/wr.go | 2 +- plugin/localregistry/common/cache_persist.go | 2 +- plugin/localregistry/inmemory/inmemory.go | 2 +- plugin/localregistry/inmemory/model.go | 2 +- plugin/logger/zaplog/logger.go | 2 +- plugin/outlierdetection/http/config.go | 2 +- plugin/outlierdetection/http/http.go | 2 +- plugin/outlierdetection/tcp/config.go | 2 +- plugin/outlierdetection/tcp/tcp.go | 2 +- plugin/outlierdetection/udp/config.go | 2 +- plugin/outlierdetection/udp/udp.go | 2 +- .../outlierdetection/utils/detection_utils.go | 2 +- .../utils/detection_utils_test.go | 2 +- plugin/ratelimiter/reject/reject.go | 2 +- plugin/ratelimiter/unirate/config.go | 2 +- plugin/ratelimiter/unirate/unirate.go | 2 +- plugin/serverconnector/common/client.go | 2 +- plugin/serverconnector/common/convert.go | 2 +- plugin/serverconnector/common/discover.go | 2 +- plugin/serverconnector/common/util.go | 2 +- plugin/serverconnector/grpc/config.go | 2 +- plugin/serverconnector/grpc/convert.go | 2 +- plugin/serverconnector/grpc/creator.go | 2 +- .../serverconnector/grpc/operation_async.go | 2 +- plugin/serverconnector/grpc/operation_sync.go | 2 +- .../serverconnector/sidecar/client/async.go | 2 +- .../serverconnector/sidecar/client/client.go | 2 +- plugin/serverconnector/sidecar/client/conn.go | 2 +- .../serverconnector/sidecar/client/convert.go | 2 +- plugin/serverconnector/sidecar/client/impl.go | 2 +- plugin/serverconnector/sidecar/client/sync.go | 2 +- plugin/serverconnector/sidecar/dns/RR.go | 2 +- .../serverconnector/sidecar/dns/RR_helper.go | 2 +- plugin/serverconnector/sidecar/dns/dns_RR.go | 2 +- plugin/serverconnector/sidecar/dns/edns.go | 2 +- plugin/serverconnector/sidecar/dns/error.go | 2 +- plugin/serverconnector/sidecar/dns/msg.go | 2 +- .../serverconnector/sidecar/dns/msg_helper.go | 2 +- .../serverconnector/sidecar/dns/question.go | 2 +- plugin/serverconnector/sidecar/dns/reverse.go | 2 +- plugin/serverconnector/sidecar/dns/types.go | 2 +- plugin/servicerouter/dstmeta/router.go | 2 +- plugin/servicerouter/filteronly/router.go | 2 +- plugin/servicerouter/nearbybase/model.go | 2 +- plugin/servicerouter/nearbybase/nearby.go | 2 +- plugin/servicerouter/rulebase/base.go | 2 +- plugin/servicerouter/rulebase/rule.go | 2 +- plugin/servicerouter/setdivision/base.go | 2 +- .../servicerouter/setdivision/setdivision.go | 2 +- plugin/statreporter/basereporter/base.go | 2 +- plugin/statreporter/monitor/config.go | 2 +- plugin/statreporter/monitor/model.go | 2 +- plugin/statreporter/monitor/stat_monitor.go | 2 +- plugin/statreporter/monitor/utils.go | 2 +- plugin/statreporter/pb/util/util.go | 2 +- plugin/statreporter/pb/v1/codeinfo.go | 2 +- plugin/statreporter/pb/v1/response.go | 2 +- plugin/statreporter/ratelimit/config.go | 2 +- plugin/statreporter/ratelimit/model.go | 2 +- plugin/statreporter/ratelimit/ratelimit.go | 2 +- plugin/statreporter/ratelimit/util.go | 2 +- plugin/statreporter/serviceinfo/config.go | 2 +- plugin/statreporter/serviceinfo/model.go | 2 +- plugin/statreporter/serviceinfo/recoverall.go | 2 +- .../statreporter/serviceinfo/service_info.go | 2 +- plugin/statreporter/serviceroute/model.go | 2 +- plugin/statreporter/serviceroute/route.go | 2 +- plugin/subscribe/localchannel/localchannel.go | 2 +- plugin/subscribe/utils/utils.go | 2 +- plugin/weightadjuster/ratedelay/ratedelay.go | 2 +- plugin_register_generate.go | 2 +- ratelimit_daemon_test/daemon/main.go | 2 +- ratelimit_daemon_test/divide/main.go | 2 +- ratelimit_daemon_test/failover/main.go | 2 +- ratelimit_daemon_test/regex/main.go | 2 +- ratelimit_daemon_test/whole/main.go | 2 +- sample/getallinstances/main.go | 2 +- sample/getinstance/synchashring/main.go | 2 +- sample/getinstance/syncl5cst/main.go | 2 +- sample/getinstance/syncmaglev/main.go | 2 +- sample/getinstance/syncrandom/main.go | 2 +- sample/getinstances/main.go | 2 +- sample/lifecycle/dereigster/main.go | 2 +- sample/lifecycle/heartbeat/main.go | 2 +- sample/lifecycle/multicontext/main.go | 2 +- sample/lifecycle/register/main.go | 2 +- sample/ratelimit/multithread/main.go | 2 +- sample/ratelimit/singlethread/main.go | 2 +- sample/ratelimit/util/util.go | 2 +- sample/subscribe/main.go | 2 +- sample/tutorials/client/main.go | 2 +- sample/tutorials/server/main.go | 2 +- test/all_suite_test.go | 2 +- test/circuitbreak/circuitbreak_suite.go | 2 +- test/circuitbreak/outlierdetection_suite.go | 2 +- test/discover/api_consumer_mesh_suite.go | 2 +- test/discover/api_consumer_suite.go | 2 +- test/discover/api_provider_suite.go | 2 +- test/loadbalance/loadbalance_suite.go | 2 +- test/loadbalance/util.go | 2 +- test/mock/meshconfig.go | 2 +- test/mock/monitorServer.go | 2 +- test/mock/namingserver.go | 2 +- test/observability/monitor_report_suite.go | 2 +- test/ratelimit/common_vars.go | 2 +- test/ratelimit/local_normal_suite.go | 2 +- test/ratelimit/mock_server.go | 2 +- test/ratelimit/network_fail_suite.go | 2 +- test/ratelimit/remote_normal_suite.go | 2 +- test/ratelimit/rule_change_suite.go | 2 +- test/ratelimit/window_expire_suite.go | 2 +- test/serviceroute/dstmetaRouting_suite.go | 2 +- test/serviceroute/nearbyRouting_suite.go | 2 +- test/serviceroute/ruleRouting_suite.go | 2 +- test/serviceroute/setdivision_router_suite.go | 2 +- test/sidecar/dns_proto_suite.go | 2 +- test/sidecar/mock_sidecar.go | 2 +- test/sidecar/sidecar_client_suite.go | 2 +- test/stability/cache_persist_suite.go | 2 +- test/stability/cache_update_fast_suite.go | 2 +- test/stability/default_server_suite.go | 2 +- test/stability/sdkcontext_destroy_suite.go | 2 +- test/stability/server_failover_suite.go | 2 +- test/stability/server_switch_suite.go | 2 +- test/stability/service_update_suite.go | 2 +- test/util/namesuite.go | 2 +- test/util/util.go | 2 +- vert.sh | 141 +++ 282 files changed, 1684 insertions(+), 491 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 Code-of-Conduct.md create mode 100644 LICENSE create mode 100644 README-zh.md create mode 100644 vert.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..8500954a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing +--- +If you have good comments or suggestions, welcome to create [Issues](https://github.com/Tencent/polaris/issues) or [Pull Requests](https://github.com/Tencent/polaris-go/pulls),contribute to the polaris open source community.Polaris-go continues to recruit contributors, even if it is answering questions in the issue, or doing some simple bugfixes, it will be of great help to polaris-go. + +[Tencent Open Source Incentive Program](https://opensource.tencent.com/contribution) Encourage developers to participate and contribute, and look forward to your joining. + +## Issue +#### For contributors + +Please ensure that the following conditions are met before submitting an issue: + +* Must be a bug or new feature +* Have searched in the issue, and did not find a similar issue or solution +* When creating a new issue, please provide a detailed description, screenshot or short video to help us locate the problem + +## Pull Request +We welcome everyone to contribute code to make our product more powerful. The code team will monitor all pull requests, and we will do the corresponding code inspection and testing. After the test passes, we will accept the PR, but will not immediately merge into the master branch. + +Please confirm before completing a PR: + +1. Fork your own branch from the master branch. +2. Please modify the corresponding documents and comments after modifying the code. +3. Please add License and Copyright declarations in the newly created file. +4. Ensure a consistent code style. +5. Do adequate testing. +6. Then, you can submit your code to the dev branch. \ No newline at end of file diff --git a/Code-of-Conduct.md b/Code-of-Conduct.md new file mode 100644 index 00000000..7166f1f7 --- /dev/null +++ b/Code-of-Conduct.md @@ -0,0 +1,5 @@ +# TBase Community Code of Conduct +TBase follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). + + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the PolarisMesh Code of Conduct Committee via email: PolarisMesh_Community@qq.com \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..af017f0e --- /dev/null +++ b/LICENSE @@ -0,0 +1,892 @@ +Tencent is pleased to support the open source community by making polaris-go available. + +Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. + +A polaris-go is licensed under the BSD 3-Clause License. A copy of the BSD 3-Clause License is included in this file. + + +Terms of BSD 3-Clause License +--------------------------------------------------- +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +Other dependencies and licenses: + + +Open Source Software Licensed under the BSD 2-Clause License: +-------------------------------------------------------------------- +1. errors +Copyright (c) 2015, Dave Cheney + +2. go-check +Copyright (c) 2010-2013 Gustavo Niemeyer + +Terms of the BSD 2-Clause License: +-------------------------------------------------------------------- +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + +Open Source Software Licensed under the BSD 3-Clause License: +-------------------------------------------------------------------- +1. protobuf +Copyright (c) 2013, The GoGo Authors. All rights reserved. + +2. protobuf +Copyright 2010 The Go Authors. All rights reserved. + +3. uuid +Copyright (c) 2009,2014 Google Inc. All rights reserved. + +4. Go Networking +Copyright (c) 2009 The Go Authors. All rights reserved. + +5. Go Time +Copyright (c) 2009 The Go Authors. All rights reserved. + +6. Gonum Stat +Copyright ©2013 The Gonum Authors. All rights reserved. + +7. murmur3 +Copyright 2013, Sébastien Paolacci. +All rights reserved. + +8. protobuf +Copyright 2014, Google Inc. All rights reserved. + +The BSD 3-Clause license applies to all parts of Protocol Buffers except the following: + +- Atomicops support for generic gcc, located in + src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. + This file is copyrighted by Red Hat Inc. + +- Atomicops support for AIX/POWER, located in + src/google/protobuf/stubs/atomicops_internals_power.h. + This file is copyrighted by Bloomberg Finance LP. + +9. re2 +Copyright (c) 2009 The RE2 Authors. All rights reserved. + +10. googletest +Copyright 2008, Google Inc. + + + +Terms of the BSD 3-Clause License: +-------------------------------------------------------------------- +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +Open Source Software Licensed under the Permissive Type License: +-------------------------------------------------------------------- +1. GoConvey +Copyright (c) 2016 SmartyStreets, LLC + +Terms of the Permissive Type License: +-------------------------------------------------------------------- +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +NOTE: Various optional and subordinate components carry their own licensing requirements and restrictions. Use of those components is subject to the terms and conditions outlined the respective license of each component. + + +Open Source Software Licensed under the Apache License Version 2.0: +-------------------------------------------------------------------- +1. gomock +Copyright (c) gomock authors and contributors + +2. Redigo +Copyright (c) Redigo authors and contributors + +3. Cobra +Copyright (c) Cobra authors and contributors + +4. YAML +Copyright (c) YAML authors and contributors + +5. reflect2 +Copyright (c) reflect2 authors and contributors + +6. gRPC-Go +Copyright (c) gRPC-Go authors and contributors + +7. gRPC-Java +Copyright (c) gRPC-Java authors and contributors + +8. Log4J +Copyright 1999-2005 The Apache Software Foundation + +9. benchmark +Copyright (c) benchmark authors and contributors. + +10. spring-boot +Copyright (c) spring-boot authors and contributors. + +11. spring-framework +Copyright (c) spring-framework authors and contributors. + +12. spring-cloud-netflix +Copyright (c) spring-cloud-netflix authors and contributors. + +13. spring-cloud config +Copyright (c) spring-cloud-config authors and contributors. + +14. guava +Copyright (c) guava authors and contributors. + +15. reactor +Copyright (c) reactor authors and contributors. + +16. powermock +Copyright 2007-2017 PowerMock Contributors + + +Terms of the Apache v2.0 License: +-------------------------------------------------------------------- +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +Open Source Software Licensed Under the MIT License: +The below software in this distribution may have been modified by THL A29 Limited +-------------------------------------------------------------------- +1. go-restful +Copyright (c) 2012,2013 Ernest Micklei + +2. mapstructure +Copyright (c) 2013 Mitchell Hashimoto + +3. lumberjack +Copyright (c) 2014 Nate Finch + +4. Testify +Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors. + +5. zap +Copyright (c) 2016-2017 Uber Technologies, Inc. + +6. gomonkey +Copyright (c) 2018 Zhang Xiaolong + +7. go-homedir +Copyright (c) 2013 Mitchell Hashimoto + +8. SLF4J +Copyright (c) 2004-2017 QOS.ch + +9. nghttp2 +Copyright (c) 2012, 2014, 2015, 2016 Tatsuhiro Tsujikawa +Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors + +10. yaml-cpp +Copyright (c) 2008 Jesse Beder. + +11. murmurhash +Copyright murmurhash authors and contributors + +Terms of the MIT License: +--------------------------------------------------- +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Open Source Software Licensed under the Mozilla Public License, version 2.0 License: +-------------------------------------------------------------------- +1. Go-MySQL-Driver +Copyright (c) 2013, The GoGo Authors. All rights reserved. + +2. golang-lru +Copyright (c) golang-lru authors and contributors + +3. go-multierror +go-multierror (c) authors and contributors + +Terms of the Mozilla Public License, version 2.0 License: +--------------------------------------------------- +Mozilla Public License, version 2.0 + +1. Definitions + +1.1. “Contributor” + + means each individual or legal entity that creates, contributes to the + creation of, or owns Covered Software. + +1.2. “Contributor Version” + + means the combination of the Contributions of others (if any) used by a + Contributor and that particular Contributor’s Contribution. + +1.3. “Contribution” + + means Covered Software of a particular Contributor. + +1.4. “Covered Software” + + means Source Code Form to which the initial Contributor has attached the + notice in Exhibit A, the Executable Form of such Source Code Form, and + Modifications of such Source Code Form, in each case including portions + thereof. + +1.5. “Incompatible With Secondary Licenses” + means + + a. that the initial Contributor has attached the notice described in + Exhibit B to the Covered Software; or + + b. that the Covered Software was made available under the terms of version + 1.1 or earlier of the License, but not also under the terms of a + Secondary License. + +1.6. “Executable Form” + + means any form of the work other than Source Code Form. + +1.7. “Larger Work” + + means a work that combines Covered Software with other material, in a separate + file or files, that is not Covered Software. + +1.8. “License” + + means this document. + +1.9. “Licensable” + + means having the right to grant, to the maximum extent possible, whether at the + time of the initial grant or subsequently, any and all of the rights conveyed by + this License. + +1.10. “Modifications” + + means any of the following: + + a. any file in Source Code Form that results from an addition to, deletion + from, or modification of the contents of Covered Software; or + + b. any new file in Source Code Form that contains any Covered Software. + +1.11. “Patent Claims” of a Contributor + + means any patent claim(s), including without limitation, method, process, + and apparatus claims, in any patent Licensable by such Contributor that + would be infringed, but for the grant of the License, by the making, + using, selling, offering for sale, having made, import, or transfer of + either its Contributions or its Contributor Version. + +1.12. “Secondary License” + + means either the GNU General Public License, Version 2.0, the GNU Lesser + General Public License, Version 2.1, the GNU Affero General Public + License, Version 3.0, or any later versions of those licenses. + +1.13. “Source Code Form” + + means the form of the work preferred for making modifications. + +1.14. “You” (or “Your”) + + means an individual or a legal entity exercising rights under this + License. For legal entities, “You” includes any entity that controls, is + controlled by, or is under common control with You. For purposes of this + definition, “control” means (a) the power, direct or indirect, to cause + the direction or management of such entity, whether by contract or + otherwise, or (b) ownership of more than fifty percent (50%) of the + outstanding shares or beneficial ownership of such entity. + + +2. License Grants and Conditions + +2.1. Grants + + Each Contributor hereby grants You a world-wide, royalty-free, + non-exclusive license: + + a. under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or as + part of a Larger Work; and + + b. under Patent Claims of such Contributor to make, use, sell, offer for + sale, have made, import, and otherwise transfer either its Contributions + or its Contributor Version. + +2.2. Effective Date + + The licenses granted in Section 2.1 with respect to any Contribution become + effective for each Contribution on the date the Contributor first distributes + such Contribution. + +2.3. Limitations on Grant Scope + + The licenses granted in this Section 2 are the only rights granted under this + License. No additional rights or licenses will be implied from the distribution + or licensing of Covered Software under this License. Notwithstanding Section + 2.1(b) above, no patent license is granted by a Contributor: + + a. for any code that a Contributor has removed from Covered Software; or + + b. for infringements caused by: (i) Your and any other third party’s + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + + c. under Patent Claims infringed by Covered Software in the absence of its + Contributions. + + This License does not grant any rights in the trademarks, service marks, or + logos of any Contributor (except as may be necessary to comply with the + notice requirements in Section 3.4). + +2.4. Subsequent Licenses + + No Contributor makes additional grants as a result of Your choice to + distribute the Covered Software under a subsequent version of this License + (see Section 10.2) or under the terms of a Secondary License (if permitted + under the terms of Section 3.3). + +2.5. Representation + + Each Contributor represents that the Contributor believes its Contributions + are its original creation(s) or it has sufficient rights to grant the + rights to its Contributions conveyed by this License. + +2.6. Fair Use + + This License is not intended to limit any rights You have under applicable + copyright doctrines of fair use, fair dealing, or other equivalents. + +2.7. Conditions + + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in + Section 2.1. + + +3. Responsibilities + +3.1. Distribution of Source Form + + All distribution of Covered Software in Source Code Form, including any + Modifications that You create or to which You contribute, must be under the + terms of this License. You must inform recipients that the Source Code Form + of the Covered Software is governed by the terms of this License, and how + they can obtain a copy of this License. You may not attempt to alter or + restrict the recipients’ rights in the Source Code Form. + +3.2. Distribution of Executable Form + + If You distribute Covered Software in Executable Form then: + + a. such Covered Software must also be made available in Source Code Form, + as described in Section 3.1, and You must inform recipients of the + Executable Form how they can obtain a copy of such Source Code Form by + reasonable means in a timely manner, at a charge no more than the cost + of distribution to the recipient; and + + b. You may distribute such Executable Form under the terms of this License, + or sublicense it under different terms, provided that the license for + the Executable Form does not attempt to limit or alter the recipients’ + rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + + You may create and distribute a Larger Work under terms of Your choice, + provided that You also comply with the requirements of this License for the + Covered Software. If the Larger Work is a combination of Covered Software + with a work governed by one or more Secondary Licenses, and the Covered + Software is not Incompatible With Secondary Licenses, this License permits + You to additionally distribute such Covered Software under the terms of + such Secondary License(s), so that the recipient of the Larger Work may, at + their option, further distribute the Covered Software under the terms of + either this License or such Secondary License(s). + +3.4. Notices + + You may not remove or alter the substance of any license notices (including + copyright notices, patent notices, disclaimers of warranty, or limitations + of liability) contained within the Source Code Form of the Covered + Software, except that You may alter any license notices to the extent + required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + + You may choose to offer, and to charge a fee for, warranty, support, + indemnity or liability obligations to one or more recipients of Covered + Software. However, You may do so only on Your own behalf, and not on behalf + of any Contributor. You must make it absolutely clear that any such + warranty, support, indemnity, or liability obligation is offered by You + alone, and You hereby agree to indemnify every Contributor for any + liability incurred by such Contributor as a result of warranty, support, + indemnity or liability terms You offer. You may include additional + disclaimers of warranty and limitations of liability specific to any + jurisdiction. + +4. Inability to Comply Due to Statute or Regulation + + If it is impossible for You to comply with any of the terms of this License + with respect to some or all of the Covered Software due to statute, judicial + order, or regulation then You must: (a) comply with the terms of this License + to the maximum extent possible; and (b) describe the limitations and the code + they affect. Such description must be placed in a text file included with all + distributions of the Covered Software under this License. Except to the + extent prohibited by statute or regulation, such description must be + sufficiently detailed for a recipient of ordinary skill to be able to + understand it. + +5. Termination + +5.1. The rights granted under this License will terminate automatically if You + fail to comply with any of its terms. However, if You become compliant, + then the rights granted under this License from a particular Contributor + are reinstated (a) provisionally, unless and until such Contributor + explicitly and finally terminates Your grants, and (b) on an ongoing basis, + if such Contributor fails to notify You of the non-compliance by some + reasonable means prior to 60 days after You have come back into compliance. + Moreover, Your grants from a particular Contributor are reinstated on an + ongoing basis if such Contributor notifies You of the non-compliance by + some reasonable means, this is the first time You have received notice of + non-compliance with this License from such Contributor, and You become + compliant prior to 30 days after Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent + infringement claim (excluding declaratory judgment actions, counter-claims, + and cross-claims) alleging that a Contributor Version directly or + indirectly infringes any patent, then the rights granted to You by any and + all Contributors for the Covered Software under Section 2.1 of this License + shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user + license agreements (excluding distributors and resellers) which have been + validly granted by You or Your distributors under this License prior to + termination shall survive termination. + +6. Disclaimer of Warranty + + Covered Software is provided under this License on an “as is” basis, without + warranty of any kind, either expressed, implied, or statutory, including, + without limitation, warranties that the Covered Software is free of defects, + merchantable, fit for a particular purpose or non-infringing. The entire + risk as to the quality and performance of the Covered Software is with You. + Should any Covered Software prove defective in any respect, You (not any + Contributor) assume the cost of any necessary servicing, repair, or + correction. This disclaimer of warranty constitutes an essential part of this + License. No use of any Covered Software is authorized under this License + except under this disclaimer. + +7. Limitation of Liability + + Under no circumstances and under no legal theory, whether tort (including + negligence), contract, or otherwise, shall any Contributor, or anyone who + distributes Covered Software as permitted above, be liable to You for any + direct, indirect, special, incidental, or consequential damages of any + character including, without limitation, damages for lost profits, loss of + goodwill, work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses, even if such party shall have been + informed of the possibility of such damages. This limitation of liability + shall not apply to liability for death or personal injury resulting from such + party’s negligence to the extent applicable law prohibits such limitation. + Some jurisdictions do not allow the exclusion or limitation of incidental or + consequential damages, so this exclusion and limitation may not apply to You. + +8. Litigation + + Any litigation relating to this License may be brought only in the courts of + a jurisdiction where the defendant maintains its principal place of business + and such litigation shall be governed by laws of that jurisdiction, without + reference to its conflict-of-law provisions. Nothing in this Section shall + prevent a party’s ability to bring cross-claims or counter-claims. + +9. Miscellaneous + + This License represents the complete agreement concerning the subject matter + hereof. If any provision of this License is held to be unenforceable, such + provision shall be reformed only to the extent necessary to make it + enforceable. Any law or regulation which provides that the language of a + contract shall be construed against the drafter shall not be used to construe + this License against a Contributor. + + +10. Versions of the License + +10.1. New Versions + + Mozilla Foundation is the license steward. Except as provided in Section + 10.3, no one other than the license steward has the right to modify or + publish new versions of this License. Each version will be given a + distinguishing version number. + +10.2. Effect of New Versions + + You may distribute the Covered Software under the terms of the version of + the License under which You originally received the Covered Software, or + under the terms of any subsequent version published by the license + steward. + +10.3. Modified Versions + + If you create software not governed by this License, and you want to + create a new license for such software, you may create and use a modified + version of this License if you rename the license and remove any + references to the name of the license steward (except to note that such + modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses + If You choose to distribute Source Code Form that is Incompatible With + Secondary Licenses under the terms of this version of the License, the + notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice + + This Source Code Form is subject to the + terms of the Mozilla Public License, v. + 2.0. If a copy of the MPL was not + distributed with this file, You can + obtain one at + http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular file, then +You may include the notice in a location (such as a LICENSE file in a relevant +directory) where a recipient would be likely to look for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - “Incompatible With Secondary Licenses” Notice + + This Source Code Form is “Incompatible + With Secondary Licenses”, as defined by + the Mozilla Public License, v. 2.0. + + +Open Source Software Licensed under the Eclipse Public License, version 1.0 License: +-------------------------------------------------------------------- +1. Junit4 +Copyright (c) junit4 authors and contributors + + +Terms of the Eclipse Public License, version 1.0 License: +--------------------------------------------------- +Eclipse Public License - v 1.0 + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC +LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM +CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + + a) in the case of the initial Contributor, the initial code and + documentation distributed under this Agreement, and + b) in the case of each subsequent Contributor: + + i) changes to the Program, and + + ii) additions to the Program; + + where such changes and/or additions to the Program originate from and are +distributed by that particular Contributor. A Contribution 'originates' from a +Contributor if it was added to the Program by such Contributor itself or anyone +acting on such Contributor's behalf. Contributions do not include additions to +the Program which: (i) are separate modules of software distributed in +conjunction with the Program under their own license agreement, and (ii) are +not derivative works of the Program. + +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents " mean patent claims licensable by a Contributor which are +necessarily infringed by the use or sale of its Contribution alone or when +combined with the Program. + +"Program" means the Contributions distributed in accordance with this Agreement. + +"Recipient" means anyone who receives the Program under this Agreement, +including all Contributors. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide, royalty-free copyright license to +reproduce, prepare derivative works of, publicly display, publicly perform, +distribute and sublicense the Contribution of such Contributor, if any, and +such derivative works, in source code and object code form. + + b) Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide, royalty-free patent license under +Licensed Patents to make, use, sell, offer to sell, import and otherwise +transfer the Contribution of such Contributor, if any, in source code and +object code form. This patent license shall apply to the combination of the +Contribution and the Program if, at the time the Contribution is added by the +Contributor, such addition of the Contribution causes such combination to be +covered by the Licensed Patents. The patent license shall not apply to any +other combinations which include the Contribution. No hardware per se is +licensed hereunder. + + c) Recipient understands that although each Contributor grants the +licenses to its Contributions set forth herein, no assurances are provided by +any Contributor that the Program does not infringe the patent or other +intellectual property rights of any other entity. Each Contributor disclaims +any liability to Recipient for claims brought by any other entity based on +infringement of intellectual property rights or otherwise. As a condition to +exercising the rights and licenses granted hereunder, each Recipient hereby +assumes sole responsibility to secure any other intellectual property rights +needed, if any. For example, if a third party patent license is required to +allow Recipient to distribute the Program, it is Recipient's responsibility to +acquire that license before distributing the Program. + + d) Each Contributor represents that to its knowledge it has sufficient +copyright rights in its Contribution, if any, to grant the copyright license +set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form under +its own license agreement, provided that: + + a) it complies with the terms and conditions of this Agreement; and + + b) its license agreement: + + i) effectively disclaims on behalf of all Contributors all warranties and +conditions, express and implied, including warranties or conditions of title +and non-infringement, and implied warranties or conditions of merchantability +and fitness for a particular purpose; + + ii) effectively excludes on behalf of all Contributors all liability for +damages, including direct, indirect, special, incidental and consequential +damages, such as lost profits; + + iii) states that any provisions which differ from this Agreement are +offered by that Contributor alone and not by any other party; and + + iv) states that source code for the Program is available from such +Contributor, and informs licensees how to obtain it in a reasonable manner on +or through a medium customarily used for software exchange. + +When the Program is made available in source code form: + + a) it must be made available under this Agreement; and + + b) a copy of this Agreement must be included with each copy of the +Program. + +Contributors may not remove or alter any copyright notices contained within the +Program. + +Each Contributor must identify itself as the originator of its Contribution, if +any, in a manner that reasonably allows subsequent Recipients to identify the +originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities with +respect to end users, business partners and the like. While this license is +intended to facilitate the commercial use of the Program, the Contributor who +includes the Program in a commercial product offering should do so in a manner +which does not create potential liability for other Contributors. Therefore, if +a Contributor includes the Program in a commercial product offering, such +Contributor ("Commercial Contributor") hereby agrees to defend and indemnify +every other Contributor ("Indemnified Contributor") against any losses, damages +and costs (collectively "Losses") arising from claims, lawsuits and other legal +actions brought by a third party against the Indemnified Contributor to the +extent caused by the acts or omissions of such Commercial Contributor in +connection with its distribution of the Program in a commercial product +offering. The obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In order +to qualify, an Indemnified Contributor must: a) promptly notify the Commercial +Contributor in writing of such claim, and b) allow the Commercial Contributor +to control, and cooperate with the Commercial Contributor in, the defense and +any related settlement negotiations. The Indemnified Contributor may +participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product +offering, Product X. That Contributor is then a Commercial Contributor. If that +Commercial Contributor then makes performance claims, or offers warranties +related to Product X, those performance claims and warranties are such +Commercial Contributor's responsibility alone. Under this section, the +Commercial Contributor would have to defend claims against the other +Contributors related to those performance claims and warranties, and if a court +requires any other Contributor to pay any damages as a result, the Commercial +Contributor must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR +IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, +NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each +Recipient is solely responsible for determining the appropriateness of using +and distributing the Program and assumes all risks associated with its exercise +of rights under this Agreement, including but not limited to the risks and +costs of program errors, compliance with applicable laws, damage to or loss of +data, programs or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY +CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST +PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY +WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS +GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under applicable +law, it shall not affect the validity or enforceability of the remainder of the +terms of this Agreement, and without further action by the parties hereto, such +provision shall be reformed to the minimum extent necessary to make such +provision valid and enforceable. + +If Recipient institutes patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging that the +Program itself (excluding combinations of the Program with other software or +hardware) infringes such Recipient's patent(s), then such Recipient's rights +granted under Section 2(b) shall terminate as of the date such litigation is +filed. + +All Recipient's rights under this Agreement shall terminate if it fails to +comply with any of the material terms or conditions of this Agreement and does +not cure such failure in a reasonable period of time after becoming aware of +such noncompliance. If all Recipient's rights under this Agreement terminate, +Recipient agrees to cease use and distribution of the Program as soon as +reasonably practicable. However, Recipient's obligations under this Agreement +and any licenses granted by Recipient relating to the Program shall continue +and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in +order to avoid inconsistency the Agreement is copyrighted and may only be +modified in the following manner. The Agreement Steward reserves the right to +publish new versions (including revisions) of this Agreement from time to time. +No one other than the Agreement Steward has the right to modify this Agreement. +The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to +serve as the Agreement Steward to a suitable separate entity. Each new version +of the Agreement will be given a distinguishing version number. The Program +(including Contributions) may always be distributed subject to the version of +the Agreement under which it was received. In addition, after a new version of +the Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly stated +in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to +the intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the Program not +expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the +intellectual property laws of the United States of America. No party to this +Agreement will bring a legal action under this Agreement more than one year +after the cause of action arose. Each party waives its rights to a jury trial +in any resulting litigation. \ No newline at end of file diff --git a/README-zh.md b/README-zh.md new file mode 100644 index 00000000..ca9b8c04 --- /dev/null +++ b/README-zh.md @@ -0,0 +1,201 @@ +polaris-go +======================================== +北极星polaris是一个支持多种开发语言、兼容主流开发框架的服务治理中心。polaris-go是北极星的Go语言嵌入式服务治理SDK + +## 概述 + +polaris-go提供以下功能特性: + +* ** 服务实例注册,心跳上报 + + 提供API接口供应用上下线时注册/反注册自身实例信息,并且可通过定时上报心跳来通知主调方自身健康状态。 + +* ** 服务发现 + + 提供多种API接口,通过API接口,用户可以获取服务下的全量服务实例,或者获取通过服务治理规则过滤后的一个服务实例,可供业务获取实例后马上发起调用。 + +* ** 故障熔断 + + 提供API接口供应用上报接口调用结果数据,并根据汇总数据快速对故障实例/分组进行隔离,以及在合适的时机进行探测恢复。 + +* ** 服务限流 + + 提供API接口供应用进行配额的检查及划扣,支持按服务级,以及接口级的限流策略。 + +## 快速入门 + +### 前置准备 + + - 在本地启动Polaris服务端。 + - 通过Polaris控制台创建好服务。 + +### 服务实例注册 + +完整的实例代码可参考组件examples下的provider/register的实现,以下为核心逻辑: +```` +//注册服务 +request := &api.InstanceRegisterRequest{} +request.Namespace = namespace +request.Service = service +request.ServiceToken = token +request.Host = ip +request.Port = port +request.SetTTL(2) +resp, err := provider.Register(request) +if nil != err { + log.Fatalf("fail to register instance, err %v", err) +} +log.Printf("success to register instance, id is %s", resp.InstanceID) +```` + +### 服务实例反注册 + +完整的实例代码可参考组件examples下的provider/deregister的实现,以下为核心逻辑: +```` +//反注册服务 +request := &api.InstanceDeRegisterRequest{} +request.Namespace = namespace +request.Service = service +request.ServiceToken = token +request.Host = ip +request.Port = port +err = provider.Deregister(request) +if nil != err { + log.Fatalf("fail to deregister instance, err %v", err) +} +log.Printf("success to deregister instance") +```` + +### 服务实例心跳上报 + +完整的实例代码可参考组件examples下的provider/deregister的实现,以下为核心逻辑: +```` +hbRequest := &api.InstanceHeartbeatRequest{} +hbRequest.Namespace = namespace +hbRequest.Service = service +hbRequest.Host = ip +hbRequest.Port = port +hbRequest.ServiceToken = token +if err = provider.Heartbeat(hbRequest); nil != err { + log.Printf("fail to heartbeat, error is %v", err) +} else { + log.Printf("success to call heartbeat for index %d", i) +} +```` + +### 服务发现 + +#### 获取单个服务实例(走路由和负载均衡) + +完整的实例代码可参考组件examples下的consumer/getoneinstance的实现,以下为核心逻辑: +```` +var getInstancesReq *api.GetOneInstanceRequest +getInstancesReq = &api.GetOneInstanceRequest{} +getInstancesReq.Namespace = namespace +getInstancesReq.Service = service +getInstancesReq.SourceService = svcInfo +getInstancesReq.LbPolicy = lbPolicy +getInstancesReq.HashKey = []byte(hashKey) +startTime := time.Now() +//进行服务发现,获取单一服务实例 +getInstResp, err := consumer.GetOneInstance(getInstancesReq) +if nil != err { + log.Fatalf("fail to sync GetOneInstance, err is %v", err) +} +consumeDuration := time.Since(startTime) +log.Printf("success to sync GetOneInstance, count is %d, consume is %v\n", + len(getInstResp.Instances), consumeDuration) +targetInstance := getInstResp.Instances[0] +log.Printf("sync instance is id=%s, address=%s:%d\n", + targetInstance.GetId(), targetInstance.GetHost(), targetInstance.GetPort()) +```` + +#### 获取全量服务实例 + +完整的实例代码可参考组件examples下的consumer/getallinstances的实现,以下为核心逻辑: +```` +var getAllInstancesReq *api.GetAllInstancesRequest +getAllInstancesReq = &api.GetAllInstancesRequest{} +getAllInstancesReq.Namespace = namespace +getAllInstancesReq.Service = service + +getAllInstResp, err := consumer.GetAllInstances(getAllInstancesReq) +if nil != err { + log.Fatalf("fail to sync GetAllInstances, err is %v", err) +} +log.Printf("success to sync GetAllInstances, count is %d, revision is %s\n", len(getAllInstResp.Instances), + getAllInstResp.Revision) +```` + +### 故障熔断 + +完整的实例代码可参考组件examples下的consumer/circuitbreak的实现,以下为核心逻辑: +```` +//执行服务发现,拉取服务实例,以及上报调用结果 +var getInstancesReq *api.GetOneInstanceRequest +getInstancesReq = &api.GetOneInstanceRequest{} +getInstancesReq.Namespace = namespace +getInstancesReq.Service = service +resp, err := consumer.GetOneInstance(getInstancesReq) +if nil != err { + log.Fatal(err) +} +targetInstance := resp.GetInstances()[0] +addr := fmt.Sprintf("%s:%d", targetInstance.GetHost(), targetInstance.GetPort()) +fmt.Printf("select address is %s\n", addr) +var retStatus model.RetStatus +var retCode int32 +if target == addr { + retStatus = api.RetFail + retCode = 500 +} else { + retStatus = api.RetSuccess + retCode = 200 +} +//构造请求,进行服务调用结果上报 +svcCallResult := &api.ServiceCallResult{} +//设置被调的实例信息 +svcCallResult.SetCalledInstance(targetInstance) +//设置服务调用结果,枚举,成功或者失败 +svcCallResult.SetRetStatus(retStatus) +//设置服务调用返回码 +svcCallResult.SetRetCode(retCode) +//设置服务调用时延信息 +svcCallResult.SetDelay(30 * time.Millisecond) +err = consumer.UpdateServiceCallResult(svcCallResult) +if nil != err { + log.Fatal(err) +} +```` + +### 服务限流 + +完整的实例代码可参考组件examples下的provider/ratelimit的实现,以下为核心逻辑: +```` +//创建访问限流请求 +quotaReq := api.NewQuotaRequest() +//设置命名空间 +quotaReq.SetNamespace(namespace) +//设置服务名 +quotaReq.SetService(service) +//设置标签值 +quotaReq.SetLabels(labels) +//调用配额获取接口 +future, err := limitAPI.GetQuota(quotaReq) +if nil != err { + log.Fatalf("fail to getQuota, err %v", err) +} +resp := future.Get() +if api.QuotaResultOk == resp.Code { + //本次调用不限流,放通,接下来可以处理业务逻辑 + log.Printf("quota result ok") +} else { + //本次调用限流判定不通过,调用受限,需返回错误给主调端 + log.Printf("quota result fail, info is %s", resp.Info) +} +```` + +## License + +The polaris-go is licensed under the BSD 3-Clause License. Copyright and license information can be found in the file [LICENSE](LICENSE) + diff --git a/README.md b/README.md index 8b7c590a..0b09b4f4 100644 --- a/README.md +++ b/README.md @@ -1,257 +1,185 @@ -# Polaris Go +polaris-go +======================================== +Polaris is an operation centre that supports multiple programming languages, with high compatibility to different application framework. Polaris-go is golang SDK for Polaris. -## QuickStart +## Overview -#### 什么是polaris-go +Polaris-go provide features listed as below: -polaris-go是名字服务北极星(Polaris)的GO语言数据面组件,主要提供服务发现、动态路由、负载均衡、故障熔断、服务限流等功能。 +* ** Service instance registration, and health check + + Provides API on/offline registration instance information, with regular report to inform caller server's healthy status. -#### 获取polaris-go +* ** Service discovery + + Provides multiple API, for users to get a full list of server instance, or get one server instance after route rule filtering and loadbalancing, which can be applied to srevice invocation soon. -polaris-go属于GO语言组件,可以通过go modules以及go path的方式进行获取,建议使用go modules进行获取。 +* ** Service circuitbreaking + + Provide API to report the invocation result, and conduct circuit breaker instance/group insolation based on collected data, eventually recover when the system allows. -- go modules: - - 导入"github.com/polarismesh/polaris-go/api"的包,执行go mod tidy +* ** Service ratelimiting -#### 使用polaris-go + Provides API for applications to conduct quota check and deduction, supports rate limit policies that are based on server level and port. -##### 1.使用北极星上下文 +## Quick Guide -北极星的所有的接口方法都是通过API对象来进行提供。由于北极星的所有接口方法都是协程安全的。 -因此,业务程序只需要将API对象声明为一个单例来使用即可,无需每次调用接口方法前都创建一个API对象。 -API对象分为客户端API对象(ConsumerAPI),以及服务端API对象(ProviderAPI)两类,分别对应不同的使用场景。 +### Preconditions -- ConsumerAPI: 客户端API对象,提供服务发现,动态路由,负载均衡,服务熔断的能力。 -- ProviderAPI: 服务端API对象,提供服务注册反注册、心跳上报,服务限流的能力 -- 使用方式: + - Launch Polaris server locally. + - Create services from polaris console -```go -import ( - "github.com/polarismesh/polaris-go/api" -) - -func useSDK() { - // 作为主调端使用,直接创建ConsumerAPI - consumer, err := api.NewConsumerAPI() - // 销毁consumerAPI对象 - // 切记,consumerAPI对象是可以作为全局变量使用的,因此建议销毁操作只有当进程退出才进行销毁 - consumer.Destroy() - - // 作为被调端使用,直接创建ProviderAPI - provider, err := api.NewProviderAPI() - //销毁providerAPI对象 - provider.Destroy() - - // 同时作为主调和被调使用 - // 由于北极星的API对象都是通过Context来进行资源(包括协程、缓存)管理的,每个Context对象所管理的资源都是独立的 - // 因此为节省资源的损耗,对于同时作为主调端和被调端的场景,可以使用同一个Context来创建API - // 1.创建consumerAPI - consumer, err := api.NewConsumerAPI() - // 2. 使用consumerAPI的Context创建providerAPI - provider := api.NewProviderAPIByContext(consumer.SDKContext()) - // 由于consumer和provider都使用了同一个context,因此,销毁的时候,只需要销毁其中一个就行 - consumer.Destroy() - // 使用相同context的情况下,consumer销毁后,provider也紧接着会被销毁 -} -``` - -##### 2.配置北极星api对象 - -一般直接使用api.NewProviderAPI()和api.NewConsumerAPI()两个方法创建的使用默认配置的api对象就可以满足大多数需求,但是对于需要定制化配置的用户,polaris-go也提供了相应的接口。 - -ConsumerAPI和ProviderAPI本质上都是对于一个SDKContext对象的封装,使用同一个底层,由于这样的设计,它们的配置也是一样的,用户可以通过创建一个配置对象,修改配置对象,再使用这个配置对象创建ConsumerAPI和ProviderAPI,从而实现定制两种api对象的行为。 - -```go -import ( - "github.com/polarismesh/polaris-go/api" -) - -func useSDK() { - //创建默认的配置对象 - configuration := api.NewConfiguration() - //设置北极星server的地址 - configuration.GetGlobal().GetServerConnector().SetAddresses([]string{"127.0.0.1:8090"}) - //设置连接北极星server的超时时间 - configuration.GetGlobal().GetServerConnector().SetConnectTimeout(2*time.Second) - // 利用修改了的配置对象,创建ConsumerAPI - consumer, err := api.NewConsumerAPIByConfig(configuration) - // 销毁consumerAPI对象 - // 切记,consumerAPI对象是可以作为全局变量使用的,因此建议销毁操作只有当进程退出才进行销毁 - consumer.Destroy() - - // 利用修改了的配置对象,创建ProviderAPI - provider, err := api.NewProviderAPIByConfig(configuration) - //销毁providerAPI对象 - provider.Destroy() - - // 同时作为主调和被调使用 - // 由于北极星的API对象都是通过Context来进行资源(包括协程、缓存)管理的,每个Context对象所管理的资源都是独立的 - // 因此为节省资源的损耗,对于同时作为主调端和被调端的场景,可以使用同一个Context来创建API - // 1.创建consumerAPI - consumer, err := api.NewConsumerAPIByConfig(configuration) - // 2. 使用consumerAPI的Context创建providerAPI - provider := api.NewProviderAPIByContext(consumer.SDKContext()) - // 由于consumer和provider都使用了同一个context,因此,销毁的时候,只需要销毁其中一个就行 - consumer.Destroy() - // 使用相同context的情况下,consumer销毁后,provider也紧接着会被销毁 -} -``` - -上面的示例里面,展示了修改api对象的北极星server地址和连接server超时时间的方式。实际上,api对象的配置还有其他类型,完整的配置结构参考 - -- [配置模型](https://iwiki.woa.com/pages/viewpage.action?pageId=459081537) - -基本上每种配置项都可以通过和上面类似的方法进行修改,即通过Get方法获取总体配置对象里面的具体配置项,再调用相应的Set方法设置配置项的值。 - -### 3.随机获取单个服务实例 - -北极星默认提供随机负载均衡策略,可以通过随机的方式从可用的服务实例中选择一个实例进行返回 -(走动态路由,以及随机负载均衡策略) -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/getinstance/syncrandom/main.go -使用方式: +### Service Instance Registration +For the entire code instance, please refer to component provider/register's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./syncrandom <命名空间> <服务名> -./syncrandom --namespace=Test --service=nearby-svc +request := &api.InstanceRegisterRequest{} +request.Namespace = namespace +request.Service = service +request.ServiceToken = token +request.Host = ip +request.Port = port +request.SetTTL(2) +resp, err := provider.Register(request) +if nil != err { + log.Fatalf("fail to register instance, err %v", err) +} +log.Printf("success to register instance, id is %s", resp.InstanceID) ```` -### 4.一致性hash(基于Hash环算法)获取单个服务实例 - -北极星默认提供基于割环法的一致性hash负载均衡策略,可以通过一致性hash的方式从可用的服务实例中选择一个实例进行返回 -(走动态路由,以及一致性hash负载均衡策略) -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/getinstance/synchashring/main.go -使用方式: +### Service Instance Deregistration +For the entire code instance, please refer to component provider/deregister's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./synchashring <命名空间> <服务名> 0 <执行时间> -./synchashring Test nearby-svc 0 1 +request := &api.InstanceDeRegisterRequest{} +request.Namespace = namespace +request.Service = service +request.ServiceToken = token +request.Host = ip +request.Port = port +err = provider.Deregister(request) +if nil != err { + log.Fatalf("fail to deregister instance, err %v", err) +} +log.Printf("success to deregister instance") ```` -### 5.一致性hash(基于Hash环算法)获取单个服务实例以及副本实例 - -北极星基于Hash环算法的一致性hash负载均衡策略,除了返回主节点外,还可以返回备份节点(当主节点不可用后,自动切换的下一个节点) -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/getinstance/synchashring/main.go -使用方式: +### Service Instance HeartBeating +For the entire code instance, please refer to component provider/deregister's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./synchashring <命名空间> <服务名> <备份节点数> <执行时间> -./synchashring Test nearby-svc 1 1 +hbRequest := &api.InstanceHeartbeatRequest{} +hbRequest.Namespace = namespace +hbRequest.Service = service +hbRequest.Host = ip +hbRequest.Port = port +hbRequest.ServiceToken = token +if err = provider.Heartbeat(hbRequest); nil != err { + log.Printf("fail to heartbeat, error is %v", err) +} else { + log.Printf("success to call heartbeat for index %d", i) +} ```` -### 6.一致性hash(基于Maglev算法)获取单个服务实例 +### Service Discovery -北极星默认提供基于谷歌Maglev算法的负载均衡策略(算法论文可参考https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44824.pdf), -可以通过随机的方式从可用的服务实例中选择一个实例进行返回 -(走动态路由,以及maglev负载均衡策略) -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/getinstance/syncmaglev/main.go -使用方式: +#### Get individual service instance(through service routing and loadbalancing) +For the entire code instance, please refer to component consumer/getoneinstance's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./syncmaglev <命名空间> <服务名> <执行时间> -./syncmaglev Test nearby-svc 1 -```` - -### 10. 获取服务token - -以下接口为服务生命周期管理接口,调用接口时,需要获取服务唯一token,获取token方式请参考链接:https://iwiki.oa.tencent.com/pages/viewpage.action?pageId=40342869(在打开的页面中搜索token关键字) - -##### 11.注册服务实例 - -获得了ProviderAPI之后,用户可以利用其方法向polaris server注册某个服务的实例。 -示例代码见:https://github.com/polarismesh/polaris-go/tree/master/sample/lifecycle/register/main.go - -```` -go build -mod=vendor -# 命令行格式:./register <命名空间> <服务名> -./register Test nearby-svc xxx-token 127.0.0.1 1010 +var getInstancesReq *api.GetOneInstanceRequest +getInstancesReq = &api.GetOneInstanceRequest{} +getInstancesReq.Namespace = namespace +getInstancesReq.Service = service +getInstancesReq.SourceService = svcInfo +getInstancesReq.LbPolicy = lbPolicy +getInstancesReq.HashKey = []byte(hashKey) +startTime := time.Now() +getInstResp, err := consumer.GetOneInstance(getInstancesReq) +if nil != err { + log.Fatalf("fail to sync GetOneInstance, err is %v", err) +} +consumeDuration := time.Since(startTime) +log.Printf("success to sync GetOneInstance, count is %d, consume is %v\n", + len(getInstResp.Instances), consumeDuration) +targetInstance := getInstResp.Instances[0] +log.Printf("sync instance is id=%s, address=%s:%d\n", + targetInstance.GetId(), targetInstance.GetHost(), targetInstance.GetPort()) ```` -##### 12.反注册服务实例 +#### Get whole list of service instances -与注册实例相对应的,ProviderAPI也可以反注册某个服务的实例。 -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/lifecycle/dereigster/main.go - -```` -go build -mod=vendor -# 命令行格式:./dereigster <命名空间> <服务名> -./dereigster Test nearby-svc xxx-token 127.0.0.1 1010 +For the entire code instance, please refer to component consumer/getallinstances's example, the key logics are listed below: ```` +var getAllInstancesReq *api.GetAllInstancesRequest +getAllInstancesReq = &api.GetAllInstancesRequest{} +getAllInstancesReq.Namespace = namespace +getAllInstancesReq.Service = service -##### 13.心跳上报 - -ProviderAPI还提供了向polaris server发送心跳以说明自身健康状态的功能 -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/lifecycle/heartbeat/main.go - -```` -go build -mod=vendor -# 命令行格式:./heartbeat <命名空间> <服务名> <上报次数> -./heartbeat Test nearby-svc xxx-token 127.0.0.1 1010 5 +getAllInstResp, err := consumer.GetAllInstances(getAllInstancesReq) +if nil != err { + log.Fatalf("fail to sync GetAllInstances, err is %v", err) +} +log.Printf("success to sync GetAllInstances, count is %d, revision is %s\n", len(getAllInstResp.Instances), + getAllInstResp.Revision) ```` -### 14.同时作为主调端和被调端 - -对于大部分业务场景,会存在同时作为被调端和主调端来使用,这时候,比较好的实践是ProviderAPI和ConsumerAPI使用同一个Context来进行创建 -示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/lifecycle/full/main.go +### Service CircuitBreaking +For the entire code instance, please refer to component consumer/circuitbreak's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./heartbeat <命名空间> <服务名> <上报次数> -./full Test nearby-svc xxx-token 127.0.0.1 1010 5 +//service discovery,pull instance, report invoke result +var getInstancesReq *api.GetOneInstanceRequest +getInstancesReq = &api.GetOneInstanceRequest{} +getInstancesReq.Namespace = namespace +getInstancesReq.Service = service +resp, err := consumer.GetOneInstance(getInstancesReq) +if nil != err { + log.Fatal(err) +} +targetInstance := resp.GetInstances()[0] +addr := fmt.Sprintf("%s:%d", targetInstance.GetHost(), targetInstance.GetPort()) +fmt.Printf("select address is %s\n", addr) +var retStatus model.RetStatus +var retCode int32 +if target == addr { + retStatus = api.RetFail + retCode = 500 +} else { + retStatus = api.RetSuccess + retCode = 200 +} +svcCallResult := &api.ServiceCallResult{} +svcCallResult.SetCalledInstance(targetInstance) +svcCallResult.SetRetStatus(retStatus) +svcCallResult.SetRetCode(retCode) +svcCallResult.SetDelay(30 * time.Millisecond) +err = consumer.UpdateServiceCallResult(svcCallResult) +if nil != err { + log.Fatal(err) +} ```` -### 15. 单线程进行服务限流 - -北极星提供了服务限流的能力,被调段通过申请配额接口可以进行申请分布式配额,以判断本次请求是否需要处理 - -简单的单线程限流示例代码见:https://github.com/polarismesh/polaris-go/blob/master/sample/ratelimit/singlethread/main.go -使用方式: +### Service Ratelimiting +For the entire code instance, please refer to component provider/ratelimit's example, the key logics are listed below: ```` -go build -mod=vendor -# 命令行格式:./singlethread <命名空间> <服务名> <标签> <执行次数> -./singlethread Test nearby-svc version:v1,tag:xxx 1 +quotaReq := api.NewQuotaRequest() +quotaReq.SetNamespace(namespace) +quotaReq.SetService(service) +quotaReq.SetLabels(labels) +future, err := limitAPI.GetQuota(quotaReq) +if nil != err { + log.Fatalf("fail to getQuota, err %v", err) +} +resp := future.Get() +if api.QuotaResultOk == resp.Code { + log.Printf("quota result ok") +} else { + log.Printf("quota result fail, info is %s", resp.Info) +} ```` -### 16.多线程进行服务限流 - -北极星也提供了模拟多个线程进行限流请求的实例代码:https://github.com/polarismesh/polaris-go/blob/master/sample/ratelimit/multithread/main.go - -使用方式: - -``` -go build -mod=vendor -# 命令行格式:./multithread <并发线程数量> <命名空间> <服务名> <限流统计周期> <统计周期数> <标签> -./multithread 10 Test nearby-svc 60s 5 version:v1,tag:xxx -``` - -### 17. 服务实例change消息订阅 -SDK提供了获取服务实例修改消息的接口: -ConsumerAPI WatchService -该接口返回一个buffer channel, 用户从channel中读取消息即可 - -####1.原理 -GO-SDK内部定时和北极星服务同步服务实例等,当发现服务实例对比SDK本地缓存有变化时,经过对比产生add、delete、update子事件类型(参考pkg\model\subscribe_event.go), -让后写进WatchService接口产生的消息订阅channel - -####2.使用demo -sample\subscribe\main.go -``` -go build -mod=vendor -# 命令行格式:./subscribe 命名空间> <服务名> -如: ./subscribe Test nearby-svc -``` - -#### sdk错误码 - -在使用sdk提供的各种功能时,有时会因为用户自身或者polaris server的原因发生一些错误,sdk归纳了不同类型的错误。 - -- [错误码列表](https://iwiki.woa.com/pages/viewpage.action?pageId=219385779) - -用户在初始化SDKContext时,最可能返回的错误码为INVALID_CONFIG、PLUGIN_NOT_FOUND、PLUGIN_INIT_ERROR,这主要是用户的配置出问题,导致SDKContext的初始插件等方面出错。 - -在使用ConsumerAPI和ProviderAPI的过程中,最可能返回的错误码为API_INVALID_ARGUMENT、API_TIMEOUT、SERVER_ERROR_RESPONSE、NETWORK_ERROR、INSTANCE_NOT_FOUND,可能由用户传的参数不对或者polaris server连接问题。 +## License +The polaris-go is licensed under the BSD 3-Clause License. Copyright and license information can be found in the file [LICENSE](LICENSE) \ No newline at end of file diff --git a/api/config.go b/api/config.go index 2b23d5aa..8a62a49d 100644 --- a/api/config.go +++ b/api/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/consumer.go b/api/consumer.go index 8803ba41..b85fd5a5 100644 --- a/api/consumer.go +++ b/api/consumer.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/consumer_impl.go b/api/consumer_impl.go index 496538e3..bf4001b9 100644 --- a/api/consumer_impl.go +++ b/api/consumer_impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/limit.go b/api/limit.go index 466ef330..3c1539ab 100644 --- a/api/limit.go +++ b/api/limit.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/limit_impl.go b/api/limit_impl.go index 6fb300b0..741ad9a1 100644 --- a/api/limit_impl.go +++ b/api/limit_impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/log.go b/api/log.go index 4230d601..6a2e63b0 100644 --- a/api/log.go +++ b/api/log.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/provider.go b/api/provider.go index a8bf225e..09d15431 100644 --- a/api/provider.go +++ b/api/provider.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/api/provider_impl.go b/api/provider_impl.go index e90b12fe..93421f69 100644 --- a/api/provider_impl.go +++ b/api/provider_impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/benchmain/main.go b/benchmark/benchmain/main.go index afa7601c..c0ac66cf 100644 --- a/benchmark/benchmain/main.go +++ b/benchmark/benchmain/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/benchsimple/main.go b/benchmark/benchsimple/main.go index 97ddc27e..caffb429 100644 --- a/benchmark/benchsimple/main.go +++ b/benchmark/benchsimple/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/flags/flags.go b/benchmark/flags/flags.go index d6df14f9..cc8f0f29 100644 --- a/benchmark/flags/flags.go +++ b/benchmark/flags/flags.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/stats/histogram.go b/benchmark/stats/histogram.go index 2e76ee65..a86443c5 100644 --- a/benchmark/stats/histogram.go +++ b/benchmark/stats/histogram.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/stats/stats.go b/benchmark/stats/stats.go index 2ad08546..b7ba9fd4 100644 --- a/benchmark/stats/stats.go +++ b/benchmark/stats/stats.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/benchmark/tools/deregisterServices.py b/benchmark/tools/deregisterServices.py index feedf36e..26b00222 100644 --- a/benchmark/tools/deregisterServices.py +++ b/benchmark/tools/deregisterServices.py @@ -1,5 +1,5 @@ # -# Tencent is pleased to support the open source community by making CL5 available. +# Tencent is pleased to support the open source community by making polaris-go available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. # diff --git a/benchmark/tools/registerServices.py b/benchmark/tools/registerServices.py index 2ce368e9..e83aa761 100644 --- a/benchmark/tools/registerServices.py +++ b/benchmark/tools/registerServices.py @@ -1,5 +1,5 @@ # -# Tencent is pleased to support the open source community by making CL5 available. +# Tencent is pleased to support the open source community by making polaris-go available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. # diff --git a/pkg/algorithm/hash/base.go b/pkg/algorithm/hash/base.go index 6ece19b0..8e2b44d9 100644 --- a/pkg/algorithm/hash/base.go +++ b/pkg/algorithm/hash/base.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/hash/murmur3.go b/pkg/algorithm/hash/murmur3.go index ae8941cc..a21a839b 100644 --- a/pkg/algorithm/hash/murmur3.go +++ b/pkg/algorithm/hash/murmur3.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/rand/rand.go b/pkg/algorithm/rand/rand.go index 44efee0c..5d084c07 100644 --- a/pkg/algorithm/rand/rand.go +++ b/pkg/algorithm/rand/rand.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/rand/rand_test.go b/pkg/algorithm/rand/rand_test.go index 731a1a59..dc5518c0 100644 --- a/pkg/algorithm/rand/rand_test.go +++ b/pkg/algorithm/rand/rand_test.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/rand/selector.go b/pkg/algorithm/rand/selector.go index 7eb21030..852725fc 100644 --- a/pkg/algorithm/rand/selector.go +++ b/pkg/algorithm/rand/selector.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/search/search.go b/pkg/algorithm/search/search.go index c002f725..e8629626 100644 --- a/pkg/algorithm/search/search.go +++ b/pkg/algorithm/search/search.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/algorithm/search/search_test.go b/pkg/algorithm/search/search_test.go index cafe7542..b7020a6c 100644 --- a/pkg/algorithm/search/search_test.go +++ b/pkg/algorithm/search/search_test.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/clock/clock.go b/pkg/clock/clock.go index 8dddeb66..b9d91241 100644 --- a/pkg/clock/clock.go +++ b/pkg/clock/clock.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/api.go b/pkg/config/api.go index 4f21a56e..2747f96c 100644 --- a/pkg/config/api.go +++ b/pkg/config/api.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/circuitbreaker.go b/pkg/config/circuitbreaker.go index 44c73ab3..94f21084 100644 --- a/pkg/config/circuitbreaker.go +++ b/pkg/config/circuitbreaker.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/default.go b/pkg/config/default.go index 2b105a93..75ec1092 100644 --- a/pkg/config/default.go +++ b/pkg/config/default.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/impl.go b/pkg/config/impl.go index 10edd1b7..6cd20d8b 100644 --- a/pkg/config/impl.go +++ b/pkg/config/impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/joinpoint_info.go b/pkg/config/joinpoint_info.go index e2aa54c4..4a799722 100644 --- a/pkg/config/joinpoint_info.go +++ b/pkg/config/joinpoint_info.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/loadbalancer.go b/pkg/config/loadbalancer.go index 773aa195..32b5a393 100644 --- a/pkg/config/loadbalancer.go +++ b/pkg/config/loadbalancer.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/localcache.go b/pkg/config/localcache.go index bf1ffe50..106ceea2 100644 --- a/pkg/config/localcache.go +++ b/pkg/config/localcache.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/outlierdetector.go b/pkg/config/outlierdetector.go index 4a03810e..eb5202c1 100644 --- a/pkg/config/outlierdetector.go +++ b/pkg/config/outlierdetector.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/plugin.go b/pkg/config/plugin.go index c3c2b9b4..e7cb4cec 100644 --- a/pkg/config/plugin.go +++ b/pkg/config/plugin.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/provider.go b/pkg/config/provider.go index 30156d49..e3c9d846 100644 --- a/pkg/config/provider.go +++ b/pkg/config/provider.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/ratelimiter.go b/pkg/config/ratelimiter.go index 3370c348..6bc0802c 100644 --- a/pkg/config/ratelimiter.go +++ b/pkg/config/ratelimiter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/serverconnector.go b/pkg/config/serverconnector.go index 77803dcb..0b6a49be 100644 --- a/pkg/config/serverconnector.go +++ b/pkg/config/serverconnector.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/service_specifc.go b/pkg/config/service_specifc.go index 4eb0cb28..18ba219f 100644 --- a/pkg/config/service_specifc.go +++ b/pkg/config/service_specifc.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/servicerouter.go b/pkg/config/servicerouter.go index fae27792..6c22dbd5 100644 --- a/pkg/config/servicerouter.go +++ b/pkg/config/servicerouter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/statreporter.go b/pkg/config/statreporter.go index 2dea1049..096ca305 100644 --- a/pkg/config/statreporter.go +++ b/pkg/config/statreporter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/config/subscribe.go b/pkg/config/subscribe.go index 4dcb378c..dea08108 100644 --- a/pkg/config/subscribe.go +++ b/pkg/config/subscribe.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/control/routines.go b/pkg/control/routines.go index 85f16b01..64f08160 100644 --- a/pkg/control/routines.go +++ b/pkg/control/routines.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/async_flow.go b/pkg/flow/async_flow.go index 072af75a..535f878a 100644 --- a/pkg/flow/async_flow.go +++ b/pkg/flow/async_flow.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/base_flow.go b/pkg/flow/base_flow.go index 365ecb03..5dc89780 100644 --- a/pkg/flow/base_flow.go +++ b/pkg/flow/base_flow.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/cbcheck/object.go b/pkg/flow/cbcheck/object.go index 38788852..d921cdf8 100644 --- a/pkg/flow/cbcheck/object.go +++ b/pkg/flow/cbcheck/object.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/cbcheck/realtime.go b/pkg/flow/cbcheck/realtime.go index 3e42d46b..0d0dad6f 100644 --- a/pkg/flow/cbcheck/realtime.go +++ b/pkg/flow/cbcheck/realtime.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/cbcheck/ticker.go b/pkg/flow/cbcheck/ticker.go index 3c836d70..a57de958 100644 --- a/pkg/flow/cbcheck/ticker.go +++ b/pkg/flow/cbcheck/ticker.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/data/compare.go b/pkg/flow/data/compare.go index be0e81d0..6a460fec 100644 --- a/pkg/flow/data/compare.go +++ b/pkg/flow/data/compare.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/data/object.go b/pkg/flow/data/object.go index 8f1f2806..11cf85df 100644 --- a/pkg/flow/data/object.go +++ b/pkg/flow/data/object.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/data/param.go b/pkg/flow/data/param.go index 228a91c3..0b4859e4 100644 --- a/pkg/flow/data/param.go +++ b/pkg/flow/data/param.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/data/util.go b/pkg/flow/data/util.go index 0e2aafbd..38d12f3e 100644 --- a/pkg/flow/data/util.go +++ b/pkg/flow/data/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/detect/object.go b/pkg/flow/detect/object.go index 2739ab1d..e617229f 100644 --- a/pkg/flow/detect/object.go +++ b/pkg/flow/detect/object.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/detect/ticker.go b/pkg/flow/detect/ticker.go index 823cf79b..f17ed8b6 100644 --- a/pkg/flow/detect/ticker.go +++ b/pkg/flow/detect/ticker.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/impl.go b/pkg/flow/impl.go index 2cfe9766..642b5f8f 100644 --- a/pkg/flow/impl.go +++ b/pkg/flow/impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/notify.go b/pkg/flow/notify.go index bace1a16..bccae97d 100644 --- a/pkg/flow/notify.go +++ b/pkg/flow/notify.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/assist.go b/pkg/flow/quota/assist.go index 45d31ba8..8839b7f8 100644 --- a/pkg/flow/quota/assist.go +++ b/pkg/flow/quota/assist.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/bucket_qps.go b/pkg/flow/quota/bucket_qps.go index 2c5e9d3a..b6f7675b 100644 --- a/pkg/flow/quota/bucket_qps.go +++ b/pkg/flow/quota/bucket_qps.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/ratelimit_slice_window.go b/pkg/flow/quota/ratelimit_slice_window.go index 6020d63a..c4dc5b02 100644 --- a/pkg/flow/quota/ratelimit_slice_window.go +++ b/pkg/flow/quota/ratelimit_slice_window.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/rl.go b/pkg/flow/quota/rl.go index f7637b85..530211cb 100644 --- a/pkg/flow/quota/rl.go +++ b/pkg/flow/quota/rl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/statistics_bucket.go b/pkg/flow/quota/statistics_bucket.go index 8173ed67..f109b1ba 100644 --- a/pkg/flow/quota/statistics_bucket.go +++ b/pkg/flow/quota/statistics_bucket.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/ticker.go b/pkg/flow/quota/ticker.go index f52f75a3..b28240d5 100644 --- a/pkg/flow/quota/ticker.go +++ b/pkg/flow/quota/ticker.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/quota/window.go b/pkg/flow/quota/window.go index 409c727f..384e604f 100644 --- a/pkg/flow/quota/window.go +++ b/pkg/flow/quota/window.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/schedule/event.go b/pkg/flow/schedule/event.go index 3c7da85e..fc77a40c 100644 --- a/pkg/flow/schedule/event.go +++ b/pkg/flow/schedule/event.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/schedule/routines.go b/pkg/flow/schedule/routines.go index 5d8112bf..be46e823 100644 --- a/pkg/flow/schedule/routines.go +++ b/pkg/flow/schedule/routines.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/startup/client_report.go b/pkg/flow/startup/client_report.go index f16b1288..9b97309e 100644 --- a/pkg/flow/startup/client_report.go +++ b/pkg/flow/startup/client_report.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/startup/config_report.go b/pkg/flow/startup/config_report.go index 7af20521..49c01230 100644 --- a/pkg/flow/startup/config_report.go +++ b/pkg/flow/startup/config_report.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/startup/server_service.go b/pkg/flow/startup/server_service.go index 9e719530..e17466cc 100644 --- a/pkg/flow/startup/server_service.go +++ b/pkg/flow/startup/server_service.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/sync_flow.go b/pkg/flow/sync_flow.go index dd9832c4..964b7d60 100644 --- a/pkg/flow/sync_flow.go +++ b/pkg/flow/sync_flow.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/flow/timing_flow.go b/pkg/flow/timing_flow.go index b8277847..8a4ab17f 100644 --- a/pkg/flow/timing_flow.go +++ b/pkg/flow/timing_flow.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/log/default.go b/pkg/log/default.go index b9894e15..e5d179bb 100644 --- a/pkg/log/default.go +++ b/pkg/log/default.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/log/log.go b/pkg/log/log.go index 593be21e..89db2df1 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/metric/bucket.go b/pkg/metric/bucket.go index 1fcd8acf..d1ff40c4 100644 --- a/pkg/metric/bucket.go +++ b/pkg/metric/bucket.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/metric/window.go b/pkg/metric/window.go index 07a85b1b..78df56cd 100644 --- a/pkg/metric/window.go +++ b/pkg/metric/window.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/buffer.go b/pkg/model/buffer.go index e04285bd..fb8caf73 100644 --- a/pkg/model/buffer.go +++ b/pkg/model/buffer.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/cluster.go b/pkg/model/cluster.go index 1c4ab577..cefa7b7a 100644 --- a/pkg/model/cluster.go +++ b/pkg/model/cluster.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/context.go b/pkg/model/context.go index 242f33fd..b3f12d25 100644 --- a/pkg/model/context.go +++ b/pkg/model/context.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/core.go b/pkg/model/core.go index de9cc45b..13b68985 100644 --- a/pkg/model/core.go +++ b/pkg/model/core.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/engine.go b/pkg/model/engine.go index a2efaffc..85c3bd14 100644 --- a/pkg/model/engine.go +++ b/pkg/model/engine.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/error.go b/pkg/model/error.go index 1f1c9469..c282dae1 100644 --- a/pkg/model/error.go +++ b/pkg/model/error.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/local/value.go b/pkg/model/local/value.go index e5027123..c32f5210 100644 --- a/pkg/model/local/value.go +++ b/pkg/model/local/value.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/now.go b/pkg/model/now.go index e0005e9a..f473533d 100644 --- a/pkg/model/now.go +++ b/pkg/model/now.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/metric/code.go b/pkg/model/pb/metric/code.go index 769ee842..88526f95 100644 --- a/pkg/model/pb/metric/code.go +++ b/pkg/model/pb/metric/code.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/metric/v2/code.go b/pkg/model/pb/metric/v2/code.go index 471cc775..a71ca978 100644 --- a/pkg/model/pb/metric/v2/code.go +++ b/pkg/model/pb/metric/v2/code.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/metric/v2/wrapper.go b/pkg/model/pb/metric/v2/wrapper.go index b3392194..d486dc49 100644 --- a/pkg/model/pb/metric/v2/wrapper.go +++ b/pkg/model/pb/metric/v2/wrapper.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/ratelimiting.go b/pkg/model/pb/ratelimiting.go index 34809238..21d8a63c 100644 --- a/pkg/model/pb/ratelimiting.go +++ b/pkg/model/pb/ratelimiting.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/routing.go b/pkg/model/pb/routing.go index d48e359d..97bbf86c 100644 --- a/pkg/model/pb/routing.go +++ b/pkg/model/pb/routing.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/rule.go b/pkg/model/pb/rule.go index a49db95a..0fb174f4 100644 --- a/pkg/model/pb/rule.go +++ b/pkg/model/pb/rule.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/service.go b/pkg/model/pb/service.go index 8b21bba1..9a540bda 100644 --- a/pkg/model/pb/service.go +++ b/pkg/model/pb/service.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/util.go b/pkg/model/pb/util.go index 534b75ca..74c467bf 100644 --- a/pkg/model/pb/util.go +++ b/pkg/model/pb/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/v1/codeinfo.go b/pkg/model/pb/v1/codeinfo.go index a370da87..3b3ed2d7 100644 --- a/pkg/model/pb/v1/codeinfo.go +++ b/pkg/model/pb/v1/codeinfo.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/pb/validate.go b/pkg/model/pb/validate.go index 80ddfe6f..ac53f936 100644 --- a/pkg/model/pb/validate.go +++ b/pkg/model/pb/validate.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/quota.go b/pkg/model/quota.go index bb967dec..f7da933a 100644 --- a/pkg/model/quota.go +++ b/pkg/model/quota.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/rule.go b/pkg/model/rule.go index 2e36e2ca..d91f4969 100644 --- a/pkg/model/rule.go +++ b/pkg/model/rule.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/service.go b/pkg/model/service.go index 73623eab..d034d36d 100644 --- a/pkg/model/service.go +++ b/pkg/model/service.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/stat.go b/pkg/model/stat.go index 025cd232..3ac49cb7 100644 --- a/pkg/model/stat.go +++ b/pkg/model/stat.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/subscribe_event.go b/pkg/model/subscribe_event.go index fb48e5ed..4bff2d8d 100644 --- a/pkg/model/subscribe_event.go +++ b/pkg/model/subscribe_event.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/task.go b/pkg/model/task.go index 5279ad33..4f613442 100644 --- a/pkg/model/task.go +++ b/pkg/model/task.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/model/util.go b/pkg/model/util.go index 983d9743..ffa2b8fd 100644 --- a/pkg/model/util.go +++ b/pkg/model/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/network/conn.go b/pkg/network/conn.go index 282b789e..13d6b173 100644 --- a/pkg/network/conn.go +++ b/pkg/network/conn.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/network/creator.go b/pkg/network/creator.go index b8ea6fd3..6f9b625c 100644 --- a/pkg/network/creator.go +++ b/pkg/network/creator.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/network/impl.go b/pkg/network/impl.go index fb34dede..645804dd 100644 --- a/pkg/network/impl.go +++ b/pkg/network/impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/network/manager.go b/pkg/network/manager.go index e68d0d7d..f98b10e8 100644 --- a/pkg/network/manager.go +++ b/pkg/network/manager.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/alarmreporter/alarmreporter.go b/pkg/plugin/alarmreporter/alarmreporter.go index 043503ec..e28c7300 100644 --- a/pkg/plugin/alarmreporter/alarmreporter.go +++ b/pkg/plugin/alarmreporter/alarmreporter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/alarmreporter/proxy.go b/pkg/plugin/alarmreporter/proxy.go index 11dc0320..0aa8a00c 100644 --- a/pkg/plugin/alarmreporter/proxy.go +++ b/pkg/plugin/alarmreporter/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/circuitbreaker/circuitbreaker.go b/pkg/plugin/circuitbreaker/circuitbreaker.go index 243023ed..e9ba3ac1 100644 --- a/pkg/plugin/circuitbreaker/circuitbreaker.go +++ b/pkg/plugin/circuitbreaker/circuitbreaker.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/circuitbreaker/proxy.go b/pkg/plugin/circuitbreaker/proxy.go index 8b906788..bd8cccdd 100644 --- a/pkg/plugin/circuitbreaker/proxy.go +++ b/pkg/plugin/circuitbreaker/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/common/plugin.go b/pkg/plugin/common/plugin.go index e679b1cc..95bc0563 100644 --- a/pkg/plugin/common/plugin.go +++ b/pkg/plugin/common/plugin.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/loadbalancer/loadbalancer.go b/pkg/plugin/loadbalancer/loadbalancer.go index 11a44066..a800aa58 100644 --- a/pkg/plugin/loadbalancer/loadbalancer.go +++ b/pkg/plugin/loadbalancer/loadbalancer.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/loadbalancer/proxy.go b/pkg/plugin/loadbalancer/proxy.go index 8257ee54..e8d54136 100644 --- a/pkg/plugin/loadbalancer/proxy.go +++ b/pkg/plugin/loadbalancer/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/loadbalancer/util.go b/pkg/plugin/loadbalancer/util.go index 46445517..e987be7f 100644 --- a/pkg/plugin/loadbalancer/util.go +++ b/pkg/plugin/loadbalancer/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/localregistry/localregistry.go b/pkg/plugin/localregistry/localregistry.go index aa03d5b0..d10eaa5f 100644 --- a/pkg/plugin/localregistry/localregistry.go +++ b/pkg/plugin/localregistry/localregistry.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/localregistry/proxy.go b/pkg/plugin/localregistry/proxy.go index 1cb27a07..e82cacb1 100644 --- a/pkg/plugin/localregistry/proxy.go +++ b/pkg/plugin/localregistry/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/manage.go b/pkg/plugin/manage.go index 47f5e02f..67ffba0e 100644 --- a/pkg/plugin/manage.go +++ b/pkg/plugin/manage.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/outlierdetection/outlierdetection.go b/pkg/plugin/outlierdetection/outlierdetection.go index a23ee1e6..1ff21327 100644 --- a/pkg/plugin/outlierdetection/outlierdetection.go +++ b/pkg/plugin/outlierdetection/outlierdetection.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/outlierdetection/proxy.go b/pkg/plugin/outlierdetection/proxy.go index 6a197867..80375abe 100644 --- a/pkg/plugin/outlierdetection/proxy.go +++ b/pkg/plugin/outlierdetection/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/ratelimiter/proxy.go b/pkg/plugin/ratelimiter/proxy.go index ac037d53..310a814d 100644 --- a/pkg/plugin/ratelimiter/proxy.go +++ b/pkg/plugin/ratelimiter/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/ratelimiter/ratelimiter.go b/pkg/plugin/ratelimiter/ratelimiter.go index 203e3114..60db3070 100644 --- a/pkg/plugin/ratelimiter/ratelimiter.go +++ b/pkg/plugin/ratelimiter/ratelimiter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/register/plugins.go b/pkg/plugin/register/plugins.go index efc1c20b..c4f12ef0 100644 --- a/pkg/plugin/register/plugins.go +++ b/pkg/plugin/register/plugins.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/register/plugins.temp b/pkg/plugin/register/plugins.temp index c9beeb53..20e34e92 100644 --- a/pkg/plugin/register/plugins.temp +++ b/pkg/plugin/register/plugins.temp @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/serverconnector/proxy.go b/pkg/plugin/serverconnector/proxy.go index 51c6aa62..ebe35454 100644 --- a/pkg/plugin/serverconnector/proxy.go +++ b/pkg/plugin/serverconnector/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/serverconnector/serverconnector.go b/pkg/plugin/serverconnector/serverconnector.go index da1a66b6..c721e84c 100644 --- a/pkg/plugin/serverconnector/serverconnector.go +++ b/pkg/plugin/serverconnector/serverconnector.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/servicerouter/proxy.go b/pkg/plugin/servicerouter/proxy.go index e41a903f..e33a97a6 100644 --- a/pkg/plugin/servicerouter/proxy.go +++ b/pkg/plugin/servicerouter/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/servicerouter/servicerouter.go b/pkg/plugin/servicerouter/servicerouter.go index d88c4caa..b2a5151c 100644 --- a/pkg/plugin/servicerouter/servicerouter.go +++ b/pkg/plugin/servicerouter/servicerouter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/servicerouter/util.go b/pkg/plugin/servicerouter/util.go index 22b2eadd..a0469bfc 100644 --- a/pkg/plugin/servicerouter/util.go +++ b/pkg/plugin/servicerouter/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/statreporter/proxy.go b/pkg/plugin/statreporter/proxy.go index d63d461e..987571ea 100644 --- a/pkg/plugin/statreporter/proxy.go +++ b/pkg/plugin/statreporter/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/statreporter/statreporter.go b/pkg/plugin/statreporter/statreporter.go index 4b524ed3..81a86b30 100644 --- a/pkg/plugin/statreporter/statreporter.go +++ b/pkg/plugin/statreporter/statreporter.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/subscribe/proxy.go b/pkg/plugin/subscribe/proxy.go index 3822eadd..78f74520 100644 --- a/pkg/plugin/subscribe/proxy.go +++ b/pkg/plugin/subscribe/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/subscribe/subscribe.go b/pkg/plugin/subscribe/subscribe.go index 872f8ac1..19bbd56e 100644 --- a/pkg/plugin/subscribe/subscribe.go +++ b/pkg/plugin/subscribe/subscribe.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/weightadjuster/proxy.go b/pkg/plugin/weightadjuster/proxy.go index d72a6163..4dd25fe2 100644 --- a/pkg/plugin/weightadjuster/proxy.go +++ b/pkg/plugin/weightadjuster/proxy.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/plugin/weightadjuster/weightadjuster.go b/pkg/plugin/weightadjuster/weightadjuster.go index dddee41d..0e46c64c 100644 --- a/pkg/plugin/weightadjuster/weightadjuster.go +++ b/pkg/plugin/weightadjuster/weightadjuster.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/stat/loadbalance/lb.go b/pkg/stat/loadbalance/lb.go index 75031382..8c160dc0 100644 --- a/pkg/stat/loadbalance/lb.go +++ b/pkg/stat/loadbalance/lb.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/stat/plugin/plug.go b/pkg/stat/plugin/plug.go index b2f8d0f5..2e7e45b1 100644 --- a/pkg/stat/plugin/plug.go +++ b/pkg/stat/plugin/plug.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/pkg/version/version.go b/pkg/version/version.go index 9e797526..10d7b457 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/alarmreporter/file/alarm_file.go b/plugin/alarmreporter/file/alarm_file.go index 7c29d501..7b385343 100644 --- a/plugin/alarmreporter/file/alarm_file.go +++ b/plugin/alarmreporter/file/alarm_file.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/circuitbreaker/common/half_open.go b/plugin/circuitbreaker/common/half_open.go index c05c5f4b..7739c667 100644 --- a/plugin/circuitbreaker/common/half_open.go +++ b/plugin/circuitbreaker/common/half_open.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/circuitbreaker/errorcount/config.go b/plugin/circuitbreaker/errorcount/config.go index db50bf3f..a831e6dd 100644 --- a/plugin/circuitbreaker/errorcount/config.go +++ b/plugin/circuitbreaker/errorcount/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/circuitbreaker/errorcount/err_count.go b/plugin/circuitbreaker/errorcount/err_count.go index 748953e2..5098e1d7 100644 --- a/plugin/circuitbreaker/errorcount/err_count.go +++ b/plugin/circuitbreaker/errorcount/err_count.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/circuitbreaker/errorrate/config.go b/plugin/circuitbreaker/errorrate/config.go index 12955afd..6476c549 100644 --- a/plugin/circuitbreaker/errorrate/config.go +++ b/plugin/circuitbreaker/errorrate/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/circuitbreaker/errorrate/err_rate.go b/plugin/circuitbreaker/errorrate/err_rate.go index 3303fa0b..33107135 100644 --- a/plugin/circuitbreaker/errorrate/err_rate.go +++ b/plugin/circuitbreaker/errorrate/err_rate.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/common/half_open.go b/plugin/loadbalancer/common/half_open.go index 9f0abc77..5dc1c243 100644 --- a/plugin/loadbalancer/common/half_open.go +++ b/plugin/loadbalancer/common/half_open.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/common/hash.go b/plugin/loadbalancer/common/hash.go index 24a2b5b5..9015aa86 100644 --- a/plugin/loadbalancer/common/hash.go +++ b/plugin/loadbalancer/common/hash.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/hash/config.go b/plugin/loadbalancer/hash/config.go index 6c8f8b47..d61598c3 100644 --- a/plugin/loadbalancer/hash/config.go +++ b/plugin/loadbalancer/hash/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/hash/hash.go b/plugin/loadbalancer/hash/hash.go index 3abdf7b4..3b75d679 100644 --- a/plugin/loadbalancer/hash/hash.go +++ b/plugin/loadbalancer/hash/hash.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/maglev/config.go b/plugin/loadbalancer/maglev/config.go index 1d9856be..3cef9ebc 100644 --- a/plugin/loadbalancer/maglev/config.go +++ b/plugin/loadbalancer/maglev/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/maglev/maglev.go b/plugin/loadbalancer/maglev/maglev.go index dfd2e862..9edeb4d3 100644 --- a/plugin/loadbalancer/maglev/maglev.go +++ b/plugin/loadbalancer/maglev/maglev.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/maglev/table.go b/plugin/loadbalancer/maglev/table.go index 5d3efb1e..e7b1f39d 100644 --- a/plugin/loadbalancer/maglev/table.go +++ b/plugin/loadbalancer/maglev/table.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/ringhash/config.go b/plugin/loadbalancer/ringhash/config.go index 40526222..0c1052b2 100644 --- a/plugin/loadbalancer/ringhash/config.go +++ b/plugin/loadbalancer/ringhash/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/ringhash/continuum.go b/plugin/loadbalancer/ringhash/continuum.go index 3c025b15..967fc5cd 100644 --- a/plugin/loadbalancer/ringhash/continuum.go +++ b/plugin/loadbalancer/ringhash/continuum.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/ringhash/l5continuum.go b/plugin/loadbalancer/ringhash/l5continuum.go index 84598260..e5146e52 100644 --- a/plugin/loadbalancer/ringhash/l5continuum.go +++ b/plugin/loadbalancer/ringhash/l5continuum.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/ringhash/l5cst.go b/plugin/loadbalancer/ringhash/l5cst.go index d36c5242..3215dc4e 100644 --- a/plugin/loadbalancer/ringhash/l5cst.go +++ b/plugin/loadbalancer/ringhash/l5cst.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/ringhash/ringhash.go b/plugin/loadbalancer/ringhash/ringhash.go index a0507d20..dd547cfb 100644 --- a/plugin/loadbalancer/ringhash/ringhash.go +++ b/plugin/loadbalancer/ringhash/ringhash.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/loadbalancer/weightedrandom/wr.go b/plugin/loadbalancer/weightedrandom/wr.go index 6d663ee2..46fcd8b5 100644 --- a/plugin/loadbalancer/weightedrandom/wr.go +++ b/plugin/loadbalancer/weightedrandom/wr.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/localregistry/common/cache_persist.go b/plugin/localregistry/common/cache_persist.go index 9d9f87e9..e798187b 100644 --- a/plugin/localregistry/common/cache_persist.go +++ b/plugin/localregistry/common/cache_persist.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/localregistry/inmemory/inmemory.go b/plugin/localregistry/inmemory/inmemory.go index cd049844..879017f2 100644 --- a/plugin/localregistry/inmemory/inmemory.go +++ b/plugin/localregistry/inmemory/inmemory.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/localregistry/inmemory/model.go b/plugin/localregistry/inmemory/model.go index 9f2bd349..ff1fbd5c 100644 --- a/plugin/localregistry/inmemory/model.go +++ b/plugin/localregistry/inmemory/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/logger/zaplog/logger.go b/plugin/logger/zaplog/logger.go index ca94d686..f3e425b3 100644 --- a/plugin/logger/zaplog/logger.go +++ b/plugin/logger/zaplog/logger.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/http/config.go b/plugin/outlierdetection/http/config.go index b8154c6a..7a0ac348 100644 --- a/plugin/outlierdetection/http/config.go +++ b/plugin/outlierdetection/http/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/http/http.go b/plugin/outlierdetection/http/http.go index d4459c6e..78702add 100644 --- a/plugin/outlierdetection/http/http.go +++ b/plugin/outlierdetection/http/http.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/tcp/config.go b/plugin/outlierdetection/tcp/config.go index 8c0a3c93..393dc0e2 100644 --- a/plugin/outlierdetection/tcp/config.go +++ b/plugin/outlierdetection/tcp/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/tcp/tcp.go b/plugin/outlierdetection/tcp/tcp.go index 82c3f417..b13e6aba 100644 --- a/plugin/outlierdetection/tcp/tcp.go +++ b/plugin/outlierdetection/tcp/tcp.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/udp/config.go b/plugin/outlierdetection/udp/config.go index d74052e4..f443c629 100644 --- a/plugin/outlierdetection/udp/config.go +++ b/plugin/outlierdetection/udp/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/udp/udp.go b/plugin/outlierdetection/udp/udp.go index 1657424b..b7786333 100644 --- a/plugin/outlierdetection/udp/udp.go +++ b/plugin/outlierdetection/udp/udp.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/utils/detection_utils.go b/plugin/outlierdetection/utils/detection_utils.go index 90b9eb2d..686afb6d 100644 --- a/plugin/outlierdetection/utils/detection_utils.go +++ b/plugin/outlierdetection/utils/detection_utils.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/outlierdetection/utils/detection_utils_test.go b/plugin/outlierdetection/utils/detection_utils_test.go index df73e456..d97e2944 100644 --- a/plugin/outlierdetection/utils/detection_utils_test.go +++ b/plugin/outlierdetection/utils/detection_utils_test.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/ratelimiter/reject/reject.go b/plugin/ratelimiter/reject/reject.go index 3f37d260..9c621f89 100644 --- a/plugin/ratelimiter/reject/reject.go +++ b/plugin/ratelimiter/reject/reject.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/ratelimiter/unirate/config.go b/plugin/ratelimiter/unirate/config.go index 540f507a..5f2eac43 100644 --- a/plugin/ratelimiter/unirate/config.go +++ b/plugin/ratelimiter/unirate/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/ratelimiter/unirate/unirate.go b/plugin/ratelimiter/unirate/unirate.go index c4841199..f1ea7ead 100644 --- a/plugin/ratelimiter/unirate/unirate.go +++ b/plugin/ratelimiter/unirate/unirate.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/common/client.go b/plugin/serverconnector/common/client.go index 08e0a673..df98225e 100644 --- a/plugin/serverconnector/common/client.go +++ b/plugin/serverconnector/common/client.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/common/convert.go b/plugin/serverconnector/common/convert.go index 837be215..90fa3161 100644 --- a/plugin/serverconnector/common/convert.go +++ b/plugin/serverconnector/common/convert.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/common/discover.go b/plugin/serverconnector/common/discover.go index d110e200..aba61e7f 100644 --- a/plugin/serverconnector/common/discover.go +++ b/plugin/serverconnector/common/discover.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/common/util.go b/plugin/serverconnector/common/util.go index 33686545..d82aa2ae 100644 --- a/plugin/serverconnector/common/util.go +++ b/plugin/serverconnector/common/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/grpc/config.go b/plugin/serverconnector/grpc/config.go index b82d54d4..f2c914bb 100644 --- a/plugin/serverconnector/grpc/config.go +++ b/plugin/serverconnector/grpc/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/grpc/convert.go b/plugin/serverconnector/grpc/convert.go index 4b153c13..74decba9 100644 --- a/plugin/serverconnector/grpc/convert.go +++ b/plugin/serverconnector/grpc/convert.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/grpc/creator.go b/plugin/serverconnector/grpc/creator.go index c2560810..22d3419f 100644 --- a/plugin/serverconnector/grpc/creator.go +++ b/plugin/serverconnector/grpc/creator.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/grpc/operation_async.go b/plugin/serverconnector/grpc/operation_async.go index b3764ae4..51c70238 100644 --- a/plugin/serverconnector/grpc/operation_async.go +++ b/plugin/serverconnector/grpc/operation_async.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/grpc/operation_sync.go b/plugin/serverconnector/grpc/operation_sync.go index b34756e8..6b210298 100644 --- a/plugin/serverconnector/grpc/operation_sync.go +++ b/plugin/serverconnector/grpc/operation_sync.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/async.go b/plugin/serverconnector/sidecar/client/async.go index 5ff0937b..bc8f5f8b 100644 --- a/plugin/serverconnector/sidecar/client/async.go +++ b/plugin/serverconnector/sidecar/client/async.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/client.go b/plugin/serverconnector/sidecar/client/client.go index 9859bb3b..fc0ba0dd 100644 --- a/plugin/serverconnector/sidecar/client/client.go +++ b/plugin/serverconnector/sidecar/client/client.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/conn.go b/plugin/serverconnector/sidecar/client/conn.go index 8add61a0..a06520b4 100644 --- a/plugin/serverconnector/sidecar/client/conn.go +++ b/plugin/serverconnector/sidecar/client/conn.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/convert.go b/plugin/serverconnector/sidecar/client/convert.go index 74eb7ba8..ba787602 100644 --- a/plugin/serverconnector/sidecar/client/convert.go +++ b/plugin/serverconnector/sidecar/client/convert.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/impl.go b/plugin/serverconnector/sidecar/client/impl.go index 7fe5d5f6..95fb2215 100644 --- a/plugin/serverconnector/sidecar/client/impl.go +++ b/plugin/serverconnector/sidecar/client/impl.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/client/sync.go b/plugin/serverconnector/sidecar/client/sync.go index cdcf8eb3..6d5a996f 100644 --- a/plugin/serverconnector/sidecar/client/sync.go +++ b/plugin/serverconnector/sidecar/client/sync.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/RR.go b/plugin/serverconnector/sidecar/dns/RR.go index efd2aeb6..f14eeaac 100644 --- a/plugin/serverconnector/sidecar/dns/RR.go +++ b/plugin/serverconnector/sidecar/dns/RR.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/RR_helper.go b/plugin/serverconnector/sidecar/dns/RR_helper.go index 6b34b294..3ed2b02f 100644 --- a/plugin/serverconnector/sidecar/dns/RR_helper.go +++ b/plugin/serverconnector/sidecar/dns/RR_helper.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/dns_RR.go b/plugin/serverconnector/sidecar/dns/dns_RR.go index 6ec2f913..ecd04363 100644 --- a/plugin/serverconnector/sidecar/dns/dns_RR.go +++ b/plugin/serverconnector/sidecar/dns/dns_RR.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/edns.go b/plugin/serverconnector/sidecar/dns/edns.go index 036011f2..f96ab470 100644 --- a/plugin/serverconnector/sidecar/dns/edns.go +++ b/plugin/serverconnector/sidecar/dns/edns.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/error.go b/plugin/serverconnector/sidecar/dns/error.go index 2d1ded25..f2858635 100644 --- a/plugin/serverconnector/sidecar/dns/error.go +++ b/plugin/serverconnector/sidecar/dns/error.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/msg.go b/plugin/serverconnector/sidecar/dns/msg.go index b19711a7..4174495e 100644 --- a/plugin/serverconnector/sidecar/dns/msg.go +++ b/plugin/serverconnector/sidecar/dns/msg.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/msg_helper.go b/plugin/serverconnector/sidecar/dns/msg_helper.go index 071effb5..faa5ca9d 100644 --- a/plugin/serverconnector/sidecar/dns/msg_helper.go +++ b/plugin/serverconnector/sidecar/dns/msg_helper.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/question.go b/plugin/serverconnector/sidecar/dns/question.go index 6064c9d7..7b6b263e 100644 --- a/plugin/serverconnector/sidecar/dns/question.go +++ b/plugin/serverconnector/sidecar/dns/question.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/reverse.go b/plugin/serverconnector/sidecar/dns/reverse.go index afbdeee7..d87a9c1f 100644 --- a/plugin/serverconnector/sidecar/dns/reverse.go +++ b/plugin/serverconnector/sidecar/dns/reverse.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/serverconnector/sidecar/dns/types.go b/plugin/serverconnector/sidecar/dns/types.go index 25ad67cf..7b5308e2 100644 --- a/plugin/serverconnector/sidecar/dns/types.go +++ b/plugin/serverconnector/sidecar/dns/types.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/dstmeta/router.go b/plugin/servicerouter/dstmeta/router.go index 1eda4a1b..77ec40c4 100644 --- a/plugin/servicerouter/dstmeta/router.go +++ b/plugin/servicerouter/dstmeta/router.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/filteronly/router.go b/plugin/servicerouter/filteronly/router.go index d59bceac..b4cd88ba 100644 --- a/plugin/servicerouter/filteronly/router.go +++ b/plugin/servicerouter/filteronly/router.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/nearbybase/model.go b/plugin/servicerouter/nearbybase/model.go index 76774bd5..41c80a28 100644 --- a/plugin/servicerouter/nearbybase/model.go +++ b/plugin/servicerouter/nearbybase/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/nearbybase/nearby.go b/plugin/servicerouter/nearbybase/nearby.go index a45344ba..f75e69db 100644 --- a/plugin/servicerouter/nearbybase/nearby.go +++ b/plugin/servicerouter/nearbybase/nearby.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/rulebase/base.go b/plugin/servicerouter/rulebase/base.go index b356e590..a85731f1 100644 --- a/plugin/servicerouter/rulebase/base.go +++ b/plugin/servicerouter/rulebase/base.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/rulebase/rule.go b/plugin/servicerouter/rulebase/rule.go index c7ad53f4..92cb3607 100644 --- a/plugin/servicerouter/rulebase/rule.go +++ b/plugin/servicerouter/rulebase/rule.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/setdivision/base.go b/plugin/servicerouter/setdivision/base.go index a4f25e2b..a893dee7 100644 --- a/plugin/servicerouter/setdivision/base.go +++ b/plugin/servicerouter/setdivision/base.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/servicerouter/setdivision/setdivision.go b/plugin/servicerouter/setdivision/setdivision.go index 4f80f33f..fb89b51f 100644 --- a/plugin/servicerouter/setdivision/setdivision.go +++ b/plugin/servicerouter/setdivision/setdivision.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/basereporter/base.go b/plugin/statreporter/basereporter/base.go index 80ffbb1a..cfa34ab5 100644 --- a/plugin/statreporter/basereporter/base.go +++ b/plugin/statreporter/basereporter/base.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/monitor/config.go b/plugin/statreporter/monitor/config.go index a755c637..82035c87 100644 --- a/plugin/statreporter/monitor/config.go +++ b/plugin/statreporter/monitor/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/monitor/model.go b/plugin/statreporter/monitor/model.go index 676a508c..b0a6d8ba 100644 --- a/plugin/statreporter/monitor/model.go +++ b/plugin/statreporter/monitor/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/monitor/stat_monitor.go b/plugin/statreporter/monitor/stat_monitor.go index 8e8fc2f7..92b41a66 100644 --- a/plugin/statreporter/monitor/stat_monitor.go +++ b/plugin/statreporter/monitor/stat_monitor.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/monitor/utils.go b/plugin/statreporter/monitor/utils.go index 4ea65be0..5b65bfd6 100644 --- a/plugin/statreporter/monitor/utils.go +++ b/plugin/statreporter/monitor/utils.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/pb/util/util.go b/plugin/statreporter/pb/util/util.go index 13675185..088fc831 100644 --- a/plugin/statreporter/pb/util/util.go +++ b/plugin/statreporter/pb/util/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/pb/v1/codeinfo.go b/plugin/statreporter/pb/v1/codeinfo.go index e26042a0..cbf80dd9 100644 --- a/plugin/statreporter/pb/v1/codeinfo.go +++ b/plugin/statreporter/pb/v1/codeinfo.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/pb/v1/response.go b/plugin/statreporter/pb/v1/response.go index 0e07a35d..474f9a86 100644 --- a/plugin/statreporter/pb/v1/response.go +++ b/plugin/statreporter/pb/v1/response.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/ratelimit/config.go b/plugin/statreporter/ratelimit/config.go index d78ccecb..cf63f944 100644 --- a/plugin/statreporter/ratelimit/config.go +++ b/plugin/statreporter/ratelimit/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/ratelimit/model.go b/plugin/statreporter/ratelimit/model.go index 9da026a7..5c3ee7eb 100644 --- a/plugin/statreporter/ratelimit/model.go +++ b/plugin/statreporter/ratelimit/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/ratelimit/ratelimit.go b/plugin/statreporter/ratelimit/ratelimit.go index 29965dae..ddbc6279 100644 --- a/plugin/statreporter/ratelimit/ratelimit.go +++ b/plugin/statreporter/ratelimit/ratelimit.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/ratelimit/util.go b/plugin/statreporter/ratelimit/util.go index ad191db0..6d6c9813 100644 --- a/plugin/statreporter/ratelimit/util.go +++ b/plugin/statreporter/ratelimit/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceinfo/config.go b/plugin/statreporter/serviceinfo/config.go index 39b05156..9dd2aad0 100644 --- a/plugin/statreporter/serviceinfo/config.go +++ b/plugin/statreporter/serviceinfo/config.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceinfo/model.go b/plugin/statreporter/serviceinfo/model.go index 8c584269..052dbb6c 100644 --- a/plugin/statreporter/serviceinfo/model.go +++ b/plugin/statreporter/serviceinfo/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceinfo/recoverall.go b/plugin/statreporter/serviceinfo/recoverall.go index d0c1ae60..d71c3783 100644 --- a/plugin/statreporter/serviceinfo/recoverall.go +++ b/plugin/statreporter/serviceinfo/recoverall.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceinfo/service_info.go b/plugin/statreporter/serviceinfo/service_info.go index 442d54ab..5ce1befa 100644 --- a/plugin/statreporter/serviceinfo/service_info.go +++ b/plugin/statreporter/serviceinfo/service_info.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceroute/model.go b/plugin/statreporter/serviceroute/model.go index 2ccda238..eb09db50 100644 --- a/plugin/statreporter/serviceroute/model.go +++ b/plugin/statreporter/serviceroute/model.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/statreporter/serviceroute/route.go b/plugin/statreporter/serviceroute/route.go index 537da3a3..7d03656b 100644 --- a/plugin/statreporter/serviceroute/route.go +++ b/plugin/statreporter/serviceroute/route.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/subscribe/localchannel/localchannel.go b/plugin/subscribe/localchannel/localchannel.go index 910b5c51..7cc91a88 100644 --- a/plugin/subscribe/localchannel/localchannel.go +++ b/plugin/subscribe/localchannel/localchannel.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/subscribe/utils/utils.go b/plugin/subscribe/utils/utils.go index baaf6bfc..04631bd0 100644 --- a/plugin/subscribe/utils/utils.go +++ b/plugin/subscribe/utils/utils.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin/weightadjuster/ratedelay/ratedelay.go b/plugin/weightadjuster/ratedelay/ratedelay.go index 259e9885..9200ef5f 100644 --- a/plugin/weightadjuster/ratedelay/ratedelay.go +++ b/plugin/weightadjuster/ratedelay/ratedelay.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/plugin_register_generate.go b/plugin_register_generate.go index f41b66c7..b5ce1b91 100644 --- a/plugin_register_generate.go +++ b/plugin_register_generate.go @@ -1,7 +1,7 @@ //+build ignore /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/ratelimit_daemon_test/daemon/main.go b/ratelimit_daemon_test/daemon/main.go index f2bd6172..ae936e22 100644 --- a/ratelimit_daemon_test/daemon/main.go +++ b/ratelimit_daemon_test/daemon/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/ratelimit_daemon_test/divide/main.go b/ratelimit_daemon_test/divide/main.go index 81a08139..315a5280 100644 --- a/ratelimit_daemon_test/divide/main.go +++ b/ratelimit_daemon_test/divide/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/ratelimit_daemon_test/failover/main.go b/ratelimit_daemon_test/failover/main.go index 2c8b032d..2270d447 100644 --- a/ratelimit_daemon_test/failover/main.go +++ b/ratelimit_daemon_test/failover/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/ratelimit_daemon_test/regex/main.go b/ratelimit_daemon_test/regex/main.go index e5dde5cb..4c2a01eb 100644 --- a/ratelimit_daemon_test/regex/main.go +++ b/ratelimit_daemon_test/regex/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/ratelimit_daemon_test/whole/main.go b/ratelimit_daemon_test/whole/main.go index cdc3cbd4..c280a6fa 100644 --- a/ratelimit_daemon_test/whole/main.go +++ b/ratelimit_daemon_test/whole/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getallinstances/main.go b/sample/getallinstances/main.go index edf5091d..be2ca0e7 100644 --- a/sample/getallinstances/main.go +++ b/sample/getallinstances/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getinstance/synchashring/main.go b/sample/getinstance/synchashring/main.go index 61df1ac4..094113dc 100644 --- a/sample/getinstance/synchashring/main.go +++ b/sample/getinstance/synchashring/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getinstance/syncl5cst/main.go b/sample/getinstance/syncl5cst/main.go index d1f72f26..c59049fd 100644 --- a/sample/getinstance/syncl5cst/main.go +++ b/sample/getinstance/syncl5cst/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getinstance/syncmaglev/main.go b/sample/getinstance/syncmaglev/main.go index 2e719cfd..70497832 100644 --- a/sample/getinstance/syncmaglev/main.go +++ b/sample/getinstance/syncmaglev/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getinstance/syncrandom/main.go b/sample/getinstance/syncrandom/main.go index 164666d0..24c34230 100644 --- a/sample/getinstance/syncrandom/main.go +++ b/sample/getinstance/syncrandom/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/getinstances/main.go b/sample/getinstances/main.go index ec123f54..01eb9745 100644 --- a/sample/getinstances/main.go +++ b/sample/getinstances/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/lifecycle/dereigster/main.go b/sample/lifecycle/dereigster/main.go index 39161e49..7aa48116 100644 --- a/sample/lifecycle/dereigster/main.go +++ b/sample/lifecycle/dereigster/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/lifecycle/heartbeat/main.go b/sample/lifecycle/heartbeat/main.go index d9c54ef6..10e38c78 100644 --- a/sample/lifecycle/heartbeat/main.go +++ b/sample/lifecycle/heartbeat/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/lifecycle/multicontext/main.go b/sample/lifecycle/multicontext/main.go index 095b4791..049773cc 100644 --- a/sample/lifecycle/multicontext/main.go +++ b/sample/lifecycle/multicontext/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/lifecycle/register/main.go b/sample/lifecycle/register/main.go index aff37228..f2dcd1da 100644 --- a/sample/lifecycle/register/main.go +++ b/sample/lifecycle/register/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/ratelimit/multithread/main.go b/sample/ratelimit/multithread/main.go index 25950286..cc0f830c 100644 --- a/sample/ratelimit/multithread/main.go +++ b/sample/ratelimit/multithread/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/ratelimit/singlethread/main.go b/sample/ratelimit/singlethread/main.go index 95984f42..a492bb73 100644 --- a/sample/ratelimit/singlethread/main.go +++ b/sample/ratelimit/singlethread/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/ratelimit/util/util.go b/sample/ratelimit/util/util.go index fb1da4f3..3e1f7e09 100644 --- a/sample/ratelimit/util/util.go +++ b/sample/ratelimit/util/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/subscribe/main.go b/sample/subscribe/main.go index f982699b..2e9f20f3 100644 --- a/sample/subscribe/main.go +++ b/sample/subscribe/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/tutorials/client/main.go b/sample/tutorials/client/main.go index 064a65f0..aa4971e9 100644 --- a/sample/tutorials/client/main.go +++ b/sample/tutorials/client/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/sample/tutorials/server/main.go b/sample/tutorials/server/main.go index 4bec135e..0994acf5 100644 --- a/sample/tutorials/server/main.go +++ b/sample/tutorials/server/main.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/all_suite_test.go b/test/all_suite_test.go index 2c7672fc..589b879b 100644 --- a/test/all_suite_test.go +++ b/test/all_suite_test.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/circuitbreak/circuitbreak_suite.go b/test/circuitbreak/circuitbreak_suite.go index 7cc8b640..f9976df1 100644 --- a/test/circuitbreak/circuitbreak_suite.go +++ b/test/circuitbreak/circuitbreak_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/circuitbreak/outlierdetection_suite.go b/test/circuitbreak/outlierdetection_suite.go index cae7e57f..4173527d 100644 --- a/test/circuitbreak/outlierdetection_suite.go +++ b/test/circuitbreak/outlierdetection_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/discover/api_consumer_mesh_suite.go b/test/discover/api_consumer_mesh_suite.go index 8866063a..8045ac16 100644 --- a/test/discover/api_consumer_mesh_suite.go +++ b/test/discover/api_consumer_mesh_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/discover/api_consumer_suite.go b/test/discover/api_consumer_suite.go index 1ec5ecb6..af2c0ba7 100644 --- a/test/discover/api_consumer_suite.go +++ b/test/discover/api_consumer_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/discover/api_provider_suite.go b/test/discover/api_provider_suite.go index a4bb9f7f..a14943e9 100644 --- a/test/discover/api_provider_suite.go +++ b/test/discover/api_provider_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/loadbalance/loadbalance_suite.go b/test/loadbalance/loadbalance_suite.go index 5aa82d7c..54d31f34 100644 --- a/test/loadbalance/loadbalance_suite.go +++ b/test/loadbalance/loadbalance_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/loadbalance/util.go b/test/loadbalance/util.go index c6d63061..4eb44d5d 100644 --- a/test/loadbalance/util.go +++ b/test/loadbalance/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/mock/meshconfig.go b/test/mock/meshconfig.go index d149ca0f..274b3b73 100644 --- a/test/mock/meshconfig.go +++ b/test/mock/meshconfig.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/mock/monitorServer.go b/test/mock/monitorServer.go index 2e60bc7f..620c4709 100644 --- a/test/mock/monitorServer.go +++ b/test/mock/monitorServer.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/mock/namingserver.go b/test/mock/namingserver.go index d1c13a8d..4d4414b9 100644 --- a/test/mock/namingserver.go +++ b/test/mock/namingserver.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/observability/monitor_report_suite.go b/test/observability/monitor_report_suite.go index c80622bb..961b2d19 100644 --- a/test/observability/monitor_report_suite.go +++ b/test/observability/monitor_report_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/common_vars.go b/test/ratelimit/common_vars.go index 08ce51d3..8b276d0f 100644 --- a/test/ratelimit/common_vars.go +++ b/test/ratelimit/common_vars.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/local_normal_suite.go b/test/ratelimit/local_normal_suite.go index a87bda3a..9d3607d5 100644 --- a/test/ratelimit/local_normal_suite.go +++ b/test/ratelimit/local_normal_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/mock_server.go b/test/ratelimit/mock_server.go index dc5cc9e8..f7126574 100644 --- a/test/ratelimit/mock_server.go +++ b/test/ratelimit/mock_server.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/network_fail_suite.go b/test/ratelimit/network_fail_suite.go index 0deba6c9..e5bf34a2 100644 --- a/test/ratelimit/network_fail_suite.go +++ b/test/ratelimit/network_fail_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/remote_normal_suite.go b/test/ratelimit/remote_normal_suite.go index 74080292..190b7c62 100644 --- a/test/ratelimit/remote_normal_suite.go +++ b/test/ratelimit/remote_normal_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/rule_change_suite.go b/test/ratelimit/rule_change_suite.go index 1271d56c..23970574 100644 --- a/test/ratelimit/rule_change_suite.go +++ b/test/ratelimit/rule_change_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/ratelimit/window_expire_suite.go b/test/ratelimit/window_expire_suite.go index 9751eda5..fe831e70 100644 --- a/test/ratelimit/window_expire_suite.go +++ b/test/ratelimit/window_expire_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/serviceroute/dstmetaRouting_suite.go b/test/serviceroute/dstmetaRouting_suite.go index 919c1206..d606d045 100644 --- a/test/serviceroute/dstmetaRouting_suite.go +++ b/test/serviceroute/dstmetaRouting_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/serviceroute/nearbyRouting_suite.go b/test/serviceroute/nearbyRouting_suite.go index 0f0ba9a0..edb18071 100644 --- a/test/serviceroute/nearbyRouting_suite.go +++ b/test/serviceroute/nearbyRouting_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/serviceroute/ruleRouting_suite.go b/test/serviceroute/ruleRouting_suite.go index ef242e1c..2eefdcc2 100644 --- a/test/serviceroute/ruleRouting_suite.go +++ b/test/serviceroute/ruleRouting_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/serviceroute/setdivision_router_suite.go b/test/serviceroute/setdivision_router_suite.go index c88864ec..53405cc4 100644 --- a/test/serviceroute/setdivision_router_suite.go +++ b/test/serviceroute/setdivision_router_suite.go @@ -1,6 +1,6 @@ // Package test mock test for set division /* - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/sidecar/dns_proto_suite.go b/test/sidecar/dns_proto_suite.go index 637e826c..c6c0ab4a 100644 --- a/test/sidecar/dns_proto_suite.go +++ b/test/sidecar/dns_proto_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/sidecar/mock_sidecar.go b/test/sidecar/mock_sidecar.go index 63f90237..3c1c3c3d 100644 --- a/test/sidecar/mock_sidecar.go +++ b/test/sidecar/mock_sidecar.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/sidecar/sidecar_client_suite.go b/test/sidecar/sidecar_client_suite.go index 5f9a797b..a34157bc 100644 --- a/test/sidecar/sidecar_client_suite.go +++ b/test/sidecar/sidecar_client_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/cache_persist_suite.go b/test/stability/cache_persist_suite.go index 54d72779..f54aeea0 100644 --- a/test/stability/cache_persist_suite.go +++ b/test/stability/cache_persist_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/cache_update_fast_suite.go b/test/stability/cache_update_fast_suite.go index 49d84078..2d2b4a10 100644 --- a/test/stability/cache_update_fast_suite.go +++ b/test/stability/cache_update_fast_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/default_server_suite.go b/test/stability/default_server_suite.go index 98cbd88e..b0bdaaf6 100644 --- a/test/stability/default_server_suite.go +++ b/test/stability/default_server_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/sdkcontext_destroy_suite.go b/test/stability/sdkcontext_destroy_suite.go index 42f3aa88..089d3878 100644 --- a/test/stability/sdkcontext_destroy_suite.go +++ b/test/stability/sdkcontext_destroy_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/server_failover_suite.go b/test/stability/server_failover_suite.go index 9f594806..91be9d59 100644 --- a/test/stability/server_failover_suite.go +++ b/test/stability/server_failover_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/server_switch_suite.go b/test/stability/server_switch_suite.go index 297f18b4..aab1653a 100644 --- a/test/stability/server_switch_suite.go +++ b/test/stability/server_switch_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/stability/service_update_suite.go b/test/stability/service_update_suite.go index e4e87852..2ba0d060 100644 --- a/test/stability/service_update_suite.go +++ b/test/stability/service_update_suite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/util/namesuite.go b/test/util/namesuite.go index f4114693..50a37af6 100644 --- a/test/util/namesuite.go +++ b/test/util/namesuite.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/test/util/util.go b/test/util/util.go index 22ecc944..9643b612 100644 --- a/test/util/util.go +++ b/test/util/util.go @@ -1,5 +1,5 @@ /** - * Tencent is pleased to support the open source community by making CL5 available. + * Tencent is pleased to support the open source community by making polaris-go available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * diff --git a/vert.sh b/vert.sh new file mode 100644 index 00000000..02f5b30b --- /dev/null +++ b/vert.sh @@ -0,0 +1,141 @@ +#!/bin/bash + +set -ex # Exit on error; debugging enabled. +set -o pipefail # Fail a pipe if any sub-command fails. + +# not makes sure the command passed to it does not exit with a return code of 0. +not() { + # This is required instead of the earlier (! $COMMAND) because subshells and + # pipefail don't work the same on Darwin as in Linux. + ! "$@" +} + +die() { + echo "$@" >&2 + exit 1 +} + +fail_on_output() { + tee /dev/stderr | not read +} + +# Check to make sure it's safe to modify the user's git repo. +git status --porcelain | fail_on_output + +# Undo any edits made by this script. +cleanup() { + git reset --hard HEAD +} +trap cleanup EXIT + +PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}" +go version + +if [[ "$1" = "-install" ]]; then + # Install the pinned versions as defined in module tools. + pushd ./test/tools + go install \ + golang.org/x/lint/golint \ + golang.org/x/tools/cmd/goimports \ + honnef.co/go/tools/cmd/staticcheck \ + github.com/client9/misspell/cmd/misspell + popd + exit 0 +elif [[ "$#" -ne 0 ]]; then + die "Unknown argument(s): $*" +fi + +# - Ensure all source files contain a copyright message. +not git grep -L "\(Copyright \\(C\\) [0-9]\{4,\} THL A29 Limited, a Tencent company. All rights reserved.\)\|DO NOT EDIT" -- '*.go' + +# - Make sure all tests in grpc and grpc/test use leakcheck via Teardown. +not grep 'func Test[^(]' *_test.go +not grep 'func Test[^(]' test/*.go + +# - Do not import x/net/context. +not git grep -l 'x/net/context' -- "*.go" + +# - Do not import math/rand for real library code. Use internal/grpcrand for +# thread safety. +git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test' + +# - Do not call grpclog directly. Use grpclog.Component instead. +git grep -l 'grpclog.I\|grpclog.W\|grpclog.E\|grpclog.F\|grpclog.V' -- "*.go" | not grep -v '^grpclog/component.go\|^internal/grpctest/tlogger_test.go' + +# - Ensure all ptypes proto packages are renamed when importing. +not git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go" + +# - Ensure all xds proto imports are renamed to *pb or *grpc. +git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "' + +# - Check imports that are illegal in appengine (until Go 1.11). +# TODO: Remove when we drop Go 1.10 support +go list -f {{.Dir}} ./... | xargs go run test/go_vet/vet.go + +misspell -error . + +# - Check that generated proto files are up to date. +if [[ -z "${VET_SKIP_PROTO}" ]]; then + PATH="/home/travis/bin:${PATH}" make proto && \ + git status --porcelain 2>&1 | fail_on_output || \ + (git status; git --no-pager diff; exit 1) +fi + +# - gofmt, goimports, golint (with exceptions for generated code), go vet, +# go mod tidy. +# Perform these checks on each module inside gRPC. +for MOD_FILE in $(find . -name 'go.mod'); do + MOD_DIR=$(dirname ${MOD_FILE}) + pushd ${MOD_DIR} + go vet -all ./... | fail_on_output + gofmt -s -d -l . 2>&1 | fail_on_output + goimports -l . 2>&1 | not grep -vE "\.pb\.go" + golint ./... 2>&1 | not grep -vE "/testv3\.pb\.go:" + + go mod tidy + git status --porcelain 2>&1 | fail_on_output || \ + (git status; git --no-pager diff; exit 1) + popd +done + +# - Collection of static analysis checks +# +# TODO(dfawley): don't use deprecated functions in examples or first-party +# plugins. +SC_OUT="$(mktemp)" +staticcheck -go 1.9 -checks 'inherit,-ST1015' ./... > "${SC_OUT}" || true +# Error if anything other than deprecation warnings are printed. +not grep -v "is deprecated:.*SA1019" "${SC_OUT}" + +# - special golint on package comments. +lint_package_comment_per_package() { + # Number of files in this go package. + fileCount=$(go list -f '{{len .GoFiles}}' $1) + if [ ${fileCount} -eq 0 ]; then + return 0 + fi + # Number of package errors generated by golint. + lintPackageCommentErrorsCount=$(golint --min_confidence 0 $1 | grep -c "should have a package comment") + # golint complains about every file that's missing the package comment. If the + # number of files for this package is greater than the number of errors, there's + # at least one file with package comment, good. Otherwise, fail. + if [ ${fileCount} -le ${lintPackageCommentErrorsCount} ]; then + echo "Package $1 (with ${fileCount} files) is missing package comment" + return 1 + fi +} +lint_package_comment() { + set +ex + + count=0 + for i in $(go list ./...); do + lint_package_comment_per_package "$i" + ((count += $?)) + done + + set -ex + return $count +} +lint_package_comment + +echo SUCCESS \ No newline at end of file