@bampich.ok/endpoint

    1.0.1 • Public • Published

    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.

    Install

    npm i @bampich.ok/endpoint

    DownloadsWeekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    19 kB

    Total Files

    11

    Last publish

    Collaborators

    • adriana.jovane
    • sarah.morales
    • alexandra.aragon
    • hk6an6