Skip to content

ploverjs/plover-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
  }
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published