egg-healthy
Version:
Liveness and Readiness health check for egg application
14 lines (11 loc) • 339 B
JavaScript
;
const HealthStatus = require('../../lib/health_status');
const SERVER_HEALTH_STATUS = Symbol('Application#serverHealthStatus');
module.exports = {
get serverHealthStatus() {
if (!this[SERVER_HEALTH_STATUS]) {
this[SERVER_HEALTH_STATUS] = new HealthStatus();
}
return this[SERVER_HEALTH_STATUS];
},
};