🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

grpc-js-health-check

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-js-health-check

Implementation for gRPC health check using @grpc/grpc-js

1.2.2
latest
Source
npm
Version published
Weekly downloads
2K
2.26%
Maintainers
1
Weekly downloads
 
Created
Source

grpc-js-health-check

Implementation for gRPC health check using @grpc/grpc-js

This package is drop-in replacement for grpc-health-check

Example

const { servingStatus, Implementation, service } = require('grpc-js-health-check');

const statusMap = {
  '': servingStatus.SERVING,
  'ServiceFoo': servingStatus.NOT_SERVING,
  'ServiceBar': servingStatus.SERVING,
};
const healthImpl = new Implementation(statusMap);

// add to gRPC server
server.addService(service, healthImpl);

// set service status
healthImpl.setStatus('ServiceFoo', servingStatus.SERVING);

For more example, please take a look on the test

Change notes

Version 1.2.x

  • Implement watch method
  • Update the dependencies
  • Dependencies:
    • @grpc/grpc-js: 1.9.13
    • @grpc/proto-loader: 0.7.10

Version 1.1.x

  • Update the dependencies
  • Dependencies:
    • @grpc/grpc-js: 1.8.12
    • @grpc/proto-loader: 0.7.5

Version 1.0.x

  • First release, this package is drop-in replacement for grpc-health-check
  • Dependencies:
    • @grpc/grpc-js: 1.2.2
    • @grpc/proto-loader: 0.5.5

Keywords

gprc health check

FAQs

Package last updated on 13 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts