Awilix helpers, router and scope-instanatiating middleware for groa. This does for groa and groa-router what awilix-koa does for koa and koa-router, i.e. enables grpc server development using middleware and dependency injection, with routing support.
Requires Node v7.6+, as groa
depends on async/await support.
npm install --save awilix-koa
See the discussion in awilix-koa
.
This library mimics awilix-koa
wherever possible, and it uses the same underlying awilix-router-core library.
The main difference is that grpc does not use verbs (i.e GET, POST, etc.) so the the verb-related builder methods and decorators are not supported. Instead, the builder supports an rpc method (builder pattern) and there is an @RPC decorator to declare rpc methods (decorator pattern).
More detailed library documentation is here (in progress).