Class: GRPC::ClientInterceptor

Inherits:
Interceptor show all
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

ClientInterceptor allows for wrapping outbound gRPC client stub requests. This is an EXPERIMENTAL API.

Direct Known Subclasses

TestClientInterceptor

Instance Method Summary collapse

Methods inherited from Interceptor

#initialize

Constructor Details

This class inherits a constructor from GRPC::Interceptor

Instance Method Details

#bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a BiDi streaming call

Parameters:



86
87
88
89
90
# 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 86

def bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil)
  GRPC.logger.debug "Intercepting bidi streamer method #{method}" \
    " for requests #{requests} with call #{call} and metadata: #{}"
  yield
end

#client_streamer(requests: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a client streaming call

Parameters:



58
59
60
61
62
# 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 58

def client_streamer(requests: nil, call: nil, method: nil, metadata: nil)
  GRPC.logger.debug "Intercepting client streamer method #{method}" \
   " for requests #{requests} with call #{call} and metadata: #{}"
  yield
end

#request_response(request: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a unary request response call

Parameters:



44
45
46
47
48
# 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 44

def request_response(request: nil, call: nil, method: nil, metadata: nil)
  GRPC.logger.debug "Intercepting request response method #{method}" \
    " for request #{request} with call #{call} and metadata: #{}"
  yield
end

#server_streamer(request: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a server streaming call

Parameters:



72
73
74
75
76
# 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 72

def server_streamer(request: nil, call: nil, method: nil, metadata: nil)
  GRPC.logger.debug "Intercepting server streamer method #{method}" \
    " for request #{request} with call #{call} and metadata: #{}"
  yield
end