Class: ChalkRuby::Grpc::ApiServerInterceptor
- Inherits:
-
GRPC::ClientInterceptor
- Object
- GRPC::ClientInterceptor
- ChalkRuby::Grpc::ApiServerInterceptor
- Defined in:
- lib/chalk_ruby/grpc/auth_interceptor.rb
Instance Method Summary collapse
-
#initialize ⇒ ApiServerInterceptor
constructor
A new instance of ApiServerInterceptor.
- #request_response(request:, call:, method:, metadata:) ⇒ Object
Constructor Details
#initialize ⇒ ApiServerInterceptor
Returns a new instance of ApiServerInterceptor.
51 52 |
# File 'lib/chalk_ruby/grpc/auth_interceptor.rb', line 51 def initialize() end |
Instance Method Details
#request_response(request:, call:, method:, metadata:) ⇒ Object
54 55 56 57 |
# File 'lib/chalk_ruby/grpc/auth_interceptor.rb', line 54 def request_response(request:, call:, method:, metadata:) ["x-chalk-server"] = "go-api" yield end |