server.proto.ts 463 B

1234567891011121314
  1. "use strict";
  2. import * as path from 'path'
  3. import * as grpc from '@grpc/grpc-js'
  4. import * as protoLoader from '@grpc/proto-loader'
  5. const PROTO_PATH = path.join(__dirname, 'message.proto');
  6. const packageDefinition = protoLoader.loadSync(PROTO_PATH, {
  7. keepCase: true,
  8. longs: String,
  9. enums: String,
  10. defaults: true,
  11. oneofs: true,
  12. });
  13. export const message_proto: any = grpc.loadPackageDefinition(packageDefinition).message;
  14. //# sourceMappingURL=health.js.map