An open API service indexing awesome lists of open source software.

https://github.com/opc-source/nacos-sdk-rust-binding-node

nacos-sdk-rust binding for NodeJs.
https://github.com/opc-source/nacos-sdk-rust-binding-node

nacos napi napi-rs nodejs rust sdk

Last synced: 30 days ago
JSON representation

nacos-sdk-rust binding for NodeJs.

Awesome Lists containing this project

README

          

# nacos-sdk-rust-binding-node
nacos-sdk-rust binding for NodeJs with napi.

Tip: nacos-sdk-nodejs 仓库暂未提供 2.x gRPC 交互模式,为了能升级它,故而通过 node addon 方式调用 nacos-sdk-rust

# Usage
**使用样例请看仓库内的 example 目录,完整 api 请看 index.d.ts**

npm 包 -> https://www.npmjs.com/package/nacos-sdk-rust-binding-node

环境变量 `NACOS_CLIENT_LOGGER_LEVEL=INFO` 可设置日志打印级别,默认 INFO
- 客户端日志请在目录 `$HOME/logs/nacos/` 查看

环境变量 `NACOS_CLIENT_COMMON_THREAD_CORES=4` 可设置客户端核心线程数,默认 1

环境变量 `NACOS_CLIENT_NAMING_PUSH_EMPTY_PROTECTION=false` 可关闭 Naming 防推空保护,默认 true

更多环境变量请看 `nacos-sdk-rust` 的[文档说明](https://github.com/nacos-group/nacos-sdk-rust)

# License
[Apache License Version 2.0](LICENSE)

# Acknowledgement
- binding for NodeJs with napi by [napi-rs](https://github.com/napi-rs/napi-rs.git)
- binding the [nacos-sdk-rust](https://github.com/nacos-group/nacos-sdk-rust.git)