plover-grpc

1.1.8 • Public • Published

plover-grpc

node rpc client based on grpc and eureka

Install

npm install plover-grpc -S

Usage

const data = await ctx.grpc.xxAPI.xxMethod({
    param: JSON.stringify({ "pageNum": 0, "pageSize": 1 }),
    apiName: "/documentAPI/query"
});

Config

const pkg = require('./../package.json')

exports.grpc = {
  root:join(__dirname,"../../../@grpc"),
  name: pkg.name,
  version: pkg.version,
  user:'xx',
  password:'xx',
  urls: 'http://xxx/eureka/apps/',
  services: {
    ServiceAPI: 'xxx:xxx:xxx'
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i plover-grpc

Weekly Downloads

1

Version

1.1.8

License

ISC

Last publish

Collaborators

  • bencode
  • yingjunjiao