1.3.10 • Published 2 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months 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.10

2 months ago

1.3.7

7 months ago

1.3.6

7 months ago

1.3.8

7 months ago

1.3.5

7 months ago

1.3.4

10 months ago

1.3.3

1 year 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