consul-health-reporter-node:Node.js 的 Consul 健康报告器

时间:2021-06-26 05:50:55
【文件属性】:
文件名称:consul-health-reporter-node:Node.js 的 Consul 健康报告器
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-26 05:50:55
JavaScript 定期向报告 Node.js 应用程序的健康状态。 对 TTL 类型的很有用。 不执行服务注册,至少目前是这样。 如果您使用 Docker,请查看这个优秀的。 安装 $ npm install consul-health-reporter 源代码是用 ES6 编写的,但也提供了 ES5 版本(使用生成): // ES6 import Reporter from 'consul-health-reporter' // ES5 var Reporter = require ( 'consul-health-reporter/es5' ) 应用程序接口 构造函数 new Reporter(serviceId, opts) 返回一个新的记者实例。 serviceId ID,必须已经在Consul中注册; 必需的。 opts.consulAgentUrl本地 Consul 代理的 HTT
【文件预览】:
consul-health-reporter-node-master
----.gitignore(25B)
----package.json(782B)
----index.js(3KB)
----README.md(3KB)

网友评论