Class: GRPC::ServerInterceptor
- Inherits:
-
Interceptor
- Object
- Interceptor
- GRPC::ServerInterceptor
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/interceptors.rb
Overview
ServerInterceptor allows for wrapping gRPC server execution handling. This is an EXPERIMENTAL API.
Direct Known Subclasses
Instance Method Summary collapse
-
#bidi_streamer(requests: nil, call: nil, method: nil) ⇒ Object
Intercept a BiDi streaming call.
-
#client_streamer(call: nil, method: nil) ⇒ Object
Intercept a client streaming call.
-
#request_response(request: nil, call: nil, method: nil) ⇒ Object
Intercept a unary request response call.
-
#server_streamer(request: nil, call: nil, method: nil) ⇒ Object
Intercept a server streaming call.
Methods inherited from Interceptor
Constructor Details
This class inherits a constructor from GRPC::Interceptor
Instance Method Details
#bidi_streamer(requests: nil, call: nil, method: nil) ⇒ Object
Intercept a BiDi streaming call
143 144 145 146 147 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/interceptors.rb', line 143 def bidi_streamer(requests: nil, call: nil, method: nil) GRPC.logger.debug "Intercepting bidi streamer method #{method}" \ " for requests #{requests} with call #{call}" yield end |
#client_streamer(call: nil, method: nil) ⇒ Object
Intercept a client streaming call
117 118 119 120 121 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/interceptors.rb', line 117 def client_streamer(call: nil, method: nil) GRPC.logger.debug "Intercepting client streamer method #{method}" \ " with call #{call}" yield end |
#request_response(request: nil, call: nil, method: nil) ⇒ Object
Intercept a unary request response call.
105 106 107 108 109 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/interceptors.rb', line 105 def request_response(request: nil, call: nil, method: nil) GRPC.logger.debug "Intercepting request response method #{method}" \ " for request #{request} with call #{call}" yield end |
#server_streamer(request: nil, call: nil, method: nil) ⇒ Object
Intercept a server streaming call
130 131 132 133 134 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/interceptors.rb', line 130 def server_streamer(request: nil, call: nil, method: nil) GRPC.logger.debug "Intercepting server streamer method #{method}" \ " for request #{request} with call #{call}" yield end |