Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

sparkswap/grpc-methods

Repository files navigation

sparkswap - sparkswap.com

CircleCI Greenkeeper badge

Grpc Methods

Make writing Grpc Methods fun by using these handy wrappers

Quickstart

  1. Install
$ npm install --save kinesis-exchange/grpc-methods
  1. Require
const { GrpcUnaryMethod } = require('grpc-methods')
  1. Enjoy
const server = new grpc.Server()

server.addService(serviceDefinition, {
  myMethod: new GrpcUnaryMethod(myMethod, '[myMethod]').register()
})