server.proto.ts 488 B

123456789101112131415
  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. const message_proto: any = grpc.loadPackageDefinition(packageDefinition).message;
  14. module.exports = message_proto;
  15. //# sourceMappingURL=health.js.map