Giter Club home page Giter Club logo

node-grpc-health-check's Introduction

node-grpc-health-check

NPM version NPM downloads codecov JS Test

Health check client and service for use with @grpc/grpc-js.

Background

This package exports both a client and server that adhere to the gRPC Health Checking Protocol.

  • grpc-health-check is for deprecated native grpc package not for @grpc/grpc-js
  • grpc-health-check implements an expired protocol of gRPC Health Checking Protocol not the latest version

Features

  • 100% Typescript
  • implements the latest version of gRPC Health Checking Protocol
  • API is similar to grpc-health-check
  • support shutdown and resume method like grpc-go

Install

$ yarn add @zcong/node-grpc-health-check
# or npm
$ npm i @zcong/node-grpc-health-check --save

Usage

Server

import { HealthImplementation, service, ServingStatus } from '../src'

const server = new grpc.Server()
const h = new HealthImplementation({
  '': ServingStatus.NOT_SERVING,
  test1: ServingStatus.SERVING,
})
server.addService(service, h)

Client

Any gRPC-node client can use @zcong/node-grpc-health-check to run health checks against other servers that follow the protocol.

Full examples can be viewed at ./example.

License

MIT ยฉ zcong1993

node-grpc-health-check's People

Contributors

github-actions[bot] avatar renovate-bot avatar renovate[bot] avatar zcong1993 avatar

Watchers

 avatar  avatar  avatar

Forkers

tschamp31

node-grpc-health-check's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0
  • chore(deps): update codecov/codecov-action action to v4
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency husky to v9
  • chore(deps): update github/codeql-action action to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • styfle/cancel-workflow-action 0.11.0
  • styfle/cancel-workflow-action 0.11.0
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/js-test.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • codecov/codecov-action v3
.github/workflows/release.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • ubuntu 18.04
npm
package.json
  • google-protobuf ^3.18.0
  • @grpc/grpc-js ^1.3.7
  • @types/google-protobuf ^3.15.5
  • @types/jest ^29.0.0
  • @types/node ^18.0.0
  • @typescript-eslint/eslint-plugin ^5.0.0
  • @typescript-eslint/parser ^5.0.0
  • @zcong/js-release ^0.2.5
  • eslint ^8.0.0
  • eslint-config-prettier ^8.3.0
  • eslint-plugin-import ^2.24.2
  • grpc-tools ^1.11.2
  • husky ^8.0.0
  • jest ^29.0.0
  • lint-staged ^13.0.0
  • npm-run-all ^4.1.5
  • prettier ^2.4.1
  • prettier-plugin-organize-imports ^3.0.0
  • ts-jest ^29.0.0
  • ts-protoc-gen ^0.15.0
  • typescript ^4.4.3
  • @grpc/grpc-js ^1.3.7

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.