Export health-check messages

To use in serviceMap

const grpcHealthCheck = require('grpc-health-check');
const statusMap = {
    '': grpcHealthCheck.messages.HealthCheckResponse.ServingStatus.SERVING,
};
This commit is contained in:
Aleksei Androsov 2020-04-12 12:38:11 +03:00
parent 7eca188ae1
commit ab09c552de
No known key found for this signature in database
GPG Key ID: 8FB84ED95D641490
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ HealthImplementation.prototype.check = function(call, callback){
module.exports = {
Client: health_service.HealthClient,
messages: health_messages,
service: health_service.HealthService,
Implementation: HealthImplementation
};