Skip to content

Commit

Permalink
feat: add nacos v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Jan 11, 2024
1 parent 21fbed0 commit 517e264
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
23 changes: 7 additions & 16 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,11 @@
# returns an array contains mod path
function util::find_modules() {
find . -not \( \
\( \
-path './output' \
-o -path './.git' \
-o -path '*/third_party/*' \
-o -path '*/vendor/*' \
\) -prune \
\) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep './nacos/v2' && find . -not \( \
\( \
-path './output' \
-o -path './.git' \
-o -path '*/third_party/*' \
-o -path '*/vendor/*' \
\) -prune \
\) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep -v './nacos/v2'

\( \
-path './output' \
-o -path './.git' \
-o -path '*/third_party/*' \
-o -path '*/vendor/*' \
\) -prune \
\) -name 'go.mod' -print0 | xargs -0 -I {} dirname {}
}

10 changes: 8 additions & 2 deletions nacos/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,13 @@ func main() {
| serverPort | 8848 | nacos server port |
| namespace | | the namespaceId of nacos |


## Compatibility

The server of Nacos2.0 is fully compatible with 1.X
nacos-sdk-go. [see](https://nacos.io/en-us/docs/2.0.0-compatibility.html)
- This package use Nacos2.x client.

- Nacos2.x detail [see](https://nacos.io/en-us/docs/v2/upgrading/2.0.0-compatibility.html)

- Supported Go version over 1.16

- Supported Nacos version over 2.x
8 changes: 7 additions & 1 deletion nacos/v2/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,11 @@ func main() {

## 兼容性

Nacos 2.0 和 1.X 版本的 nacos-sdk-go 是完全兼容的,[详情](https://nacos.io/en-us/docs/2.0.0-compatibility.html)
- 使用 Nacos2.x 客户端

- Nacos 2.x [详细信息](https://nacos.io/en-us/docs/v2/upgrading/2.0.0-compatibility.html)

- Go 版本不低于 1.16

- 支持Nacos 2.x

0 comments on commit 517e264

Please sign in to comment.