UNPKG

@aneoconsultingfr/armonik.api

Version:

gRPC API to interact with ArmoniK built for the web

28 lines (25 loc) 916 B
import { CheckHealthRequest, CheckHealthResponse } from "./chunk-U7OCWCFN.mjs"; // src/generated/health_checks_service.ts import _m0 from "protobufjs/minimal.js"; var protobufPackage = "armonik.api.grpc.v1.health_checks"; var HealthChecksServiceServiceName = "armonik.api.grpc.v1.health_checks.HealthChecksService"; var HealthChecksServiceClientImpl = class { constructor(rpc, opts) { this.service = (opts == null ? void 0 : opts.service) || HealthChecksServiceServiceName; this.rpc = rpc; this.CheckHealth = this.CheckHealth.bind(this); } CheckHealth(request) { const data = CheckHealthRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "CheckHealth", data); return promise.then((data2) => CheckHealthResponse.decode(_m0.Reader.create(data2))); } }; export { protobufPackage, HealthChecksServiceServiceName, HealthChecksServiceClientImpl };