class GRPC::ServerInterceptor
ServerInterceptor
allows for wrapping gRPC server execution handling. This is an EXPERIMENTAL API.
Public Instance Methods
bidi_streamer(requests: nil, call: nil, method: nil) { || ... }
click to toggle source
Intercept a BiDi streaming call
@param [Enumerable<Object>] requests @param [GRPC::ActiveCall::MultiReqView] call @param [Method] method
# File 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) { || ... }
click to toggle source
Intercept a client streaming call
@param [GRPC::ActiveCall::MultiReqView] call @param [Method] method
# File 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) { || ... }
click to toggle source
Intercept a unary request response call.
@param [Object] request @param [GRPC::ActiveCall::SingleReqView] call @param [Method] method
# File 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) { || ... }
click to toggle source
Intercept a server streaming call
@param [Object] request @param [GRPC::ActiveCall::SingleReqView] call @param [Method] method
# File 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