etcd-registry:基于 etcd 的 Node.js 服务注册表

时间:2021-06-20 00:34:21
【文件属性】:
文件名称:etcd-registry:基于 etcd 的 Node.js 服务注册表
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-20 00:34:21
JavaScript etcd 注册表 基于Node.js 服务注册表 npm install etcd-registry 安装命令行工具 npm install -g etcd-registry etcd-registry help 用法 var registry = require ( 'etcd-registry' ) ; // Pass the nodes in your cluster in a connection string var services = registry ( '127.0.0.1:4001,127.0.0.1:4002,127.0.0.1:4003' ) ; // Join the registry services . join ( 'my-service-name' , { port : 8080 } ) ; // Wait a bit and do a lookup
【文件预览】:
etcd-registry-master
----example.js(355B)
----test.js(2KB)
----LICENSE(1KB)
----README.md(3KB)
----bin.js(3KB)
----.gitignore(13B)
----index.js(5KB)
----package.json(533B)

网友评论