没有合适的资源?快使用搜索试试~ 我知道了~
总站:针对任何Node.js HTTP应用程序的正常关机和Kubernetes准备就绪状态检查
共67个文件
js:31个
json:14个
dockerfile:6个
需积分: 9 0 下载量 178 浏览量
2021-02-03
15:48:13
上传
评论
收藏 125KB ZIP 举报
温馨提示
总站 为任何HTTP应用程序添加正常关闭和Kubernetes就绪/活跃性检查。 安装 通过npm安装: $ npm i @godaddy/terminus --save 用法 const http = require ( 'http' ) ; const { createTerminus } = require ( '@godaddy/terminus' ) ; function onSignal ( ) { console . log ( 'server is starting cleanup' ) ; return Promise . all ( [ // your clean logic, like closing database connections ] ) ; } function onShutdown ( ) { console . log ( 'cleanup finished, server is shutting down' ) ; } function healthCheck ( ) { return Promise . reso
资源推荐
资源详情
资源评论
收起资源包目录
terminus-master.zip (67个子文件)
terminus-master
.gitignore 54B
.eslintrc 131B
package.json 1KB
.npmrc 43B
package-lock.json 381KB
.travis.yml 444B
LICENSE 1KB
index.js 187B
.github
workflows
codeql-analysis.yml 2KB
release.yml 715B
cicd.yml 507B
README.md 6KB
example
postgres
Dockerfile 89B
package.json 249B
package-lock.json 5KB
index.js 1KB
index.js 353B
oracle
.gitignore 31B
package.json 606B
index.js 1KB
redis
Dockerfile 18B
package.json 250B
package-lock.json 6KB
index.js 1KB
cassandra
Dockerfile 15B
package.json 322B
package-lock.json 612B
index.js 945B
README.md 143B
mongoose
Dockerfile 11B
package.json 198B
index.js 122B
mongoose.js 164B
express.js 1KB
koa.js 1KB
mysql
Dockerfile 117B
package.json 257B
package-lock.json 3KB
index.js 1KB
mongo
Dockerfile 11B
package.json 251B
package-lock.json 3KB
index.js 1022B
lib
standalone-tests
terminus.onshutdown.sigint.js 442B
terminus.onsignal.nofail.js 498B
terminus.multiserver.js 920B
terminus.onsendfailureduringshutdown.js 519B
terminus.nofailuresduringshutdown.js 556B
terminus.onshutdown.sigterm.js 404B
terminus.onsignal.fail.js 461B
terminus.onshutdown.sigusr2.js 444B
terminus.onsendfailureduringshutdown.failed-health.js 453B
terminus.onsigusr2.js 381B
terminus.onsigint.js 379B
terminus.onshutdown.multiple.js 522B
terminus.onmultiple.js 408B
terminus.onsigterm.js 341B
terminus.js 4KB
terminus.spec.js 14KB
terminus-error.js 208B
terminus-error.spec.js 363B
.npmignore 72B
index.spec.js 322B
typings
koa.test.ts 388B
express.test.ts 439B
index.test.ts 931B
index.d.ts 941B
共 67 条
- 1
资源评论
谢平凡
- 粉丝: 17
- 资源: 4598
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功