@bampich.ok/endpoint
v1.0.1
Published
provides configuration for raising grpc endpoints
Downloads
8
Readme
About
Simplifies raising a GRPC server.
Install
npm install @bampich.ok/endpoint
Usage
const {Endpoint} = require('@bampich.ok/endpoint');
const {MyGRPCService} = require('../protos/mygrpcservice_grpc_pb');
const {ResultObject} = require('../protos/mygrpcservice_pb');
let endpoint = new Endpoint(
'0.0.0.0:50051',
MyGRPCService);
endpoint.start({
send: (request,callback)={
callback(null,new ResultObject());
}
});
Configure
No config options available for now. Use as is.