justxuewei opened a new pull request #1507: URL: https://github.com/apache/dubbo-go/pull/1507
<!-- Thanks for sending a pull request! Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request. --> **What this PR does**: The new directory structure is shown at below. ``` ├── cluster // abstract cluster │ ├── cluster // cluster interface & implementation │ │ ├── available // available cluster implementation │ │ │ ├── ... │ │ ├── base // base cluster implementation │ │ │ ├── ... │ │ ├── broadcast // broadcast cluster implementation │ │ │ ├── ... │ │ ├── failback // failback cluster implementation │ │ │ ├── ... │ │ ├── failfast // failfast cluster implementation │ │ │ ├── ... │ │ ├── failover // failover cluster implementation │ │ │ ├── ... │ │ ├── failsafe // failsafe cluster implementation │ │ │ ├── ... │ │ ├── forking // forking cluster implementation │ │ │ ├── ... │ │ └── zoneaware // zoneaware cluster implementation │ │ ├── ... │ ├── cluster_impl // compatible with legacy imports, will be REMOVED in the future │ │ └── import.go │ ├── directory // directory interface & implementation │ │ ├── base │ │ │ ├── ... │ │ └── static │ │ ├── ... │ ├── loadbalance // load balance interface & implementation │ │ ├── consistenthashing // consistenthashing load balance implementation │ │ │ ├── ... │ │ ├── leastactive // leastactive load balance implementation │ │ │ ├── ... │ │ ├── random // random load balance implementation │ │ │ ├── ... │ │ ├── roundrobin // roundrobin load balance implementation │ │ │ ├── ... │ └── router // NOT modified in this PR │ ├── ... ``` _PS: This refactor will be transparent for Dubbo-Go users._ **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. _If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_* --> Fixes #1503 **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required: Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". --> ```release-note Please note that importing "_ dubbo.apache.org/dubbo-go/v3/cluster/loadbalance" for loadbalance initialization couldn't work anymore. Users must import used loadbalances respectively, or import `_ dubbo.apache.org/dubbo-go/v3/imports`(highly recommended way) instead. Here are an example of importing all of loadbalances respectively: import ( _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/consistenthashing" _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/leastactive" _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random" _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/roundrobin" ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
