1.3.8 • Published 11 days ago

@himenon/ts-grpc-health-check v1.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@himenon/ts-grpc-health-check

Usage

npm i @himenon/ts-grpc-health-check
# or
pnpm i @himenon/ts-grpc-health-check
import health from "@himenon/ts-grpc-health-check";

const statusMap = {
  ServiceFoo: proto.grpc.health.v1.HealthCheckResponse.ServingStatus.SERVING,
  ServiceBar: proto.grpc.health.v1.HealthCheckResponse.ServingStatus.NOT_SERVING,
  "": proto.grpc.health.v1.HealthCheckResponse.ServingStatus.NOT_SERVING,
};

const healthImpl = health.createHealthServerImpl(statusMap);

// Add the service and implementation to your pre-existing gRPC-node server
server.addService(health.service, healthImpl);

Development

pnpm i
# For Apple Silicon
npm_config_target_arch=x64 npm_config_arch=x64 pnpm i

Release

  • Automatic version updates are performed when merged into the main branch.

LICENCE

@Himenon/template-esm-js・MIT

1.3.7

11 days ago

1.3.6

11 days ago

1.3.8

11 days ago

1.3.5

1 month ago

1.3.4

3 months ago

1.3.3

9 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago