README.md in grpc-rest-0.1.21 vs README.md in grpc-rest-0.1.22
- old
+ new
@@ -152,11 +152,26 @@
}
```
## Gruf Interceptors
-grpc-rest supports [gruf](https://github.com/bigcommerce/gruf) Interceptors. As long as you're not using a custom interceptor
+grpc-rest supports [gruf](https://github.com/bigcommerce/gruf) Interceptors through a custom `GrpcRest::BaseInterceptor` class. As long as you're not using a custom interceptor
registry, your interceptors will be called normally around the controller.
+
+```ruby
+require 'grpc_rest/base_interceptor'
+
+module Interceptors
+ # Interceptor for catching errors from controllers
+ class ErrorInterceptor < GrpcRest::BaseInterceptor
+
+ def call
+ # Your code here
+ end
+
+ end
+end
+```
## To Do
* Replace Go implementation with Ruby (+ executable)