Class: GrpcKit::Interceptors::Client::Streaming

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc_kit/interceptors.rb

Direct Known Subclasses

BidiStreamer, ClientStreamer, ServerStreamer

Instance Method Summary collapse

Constructor Details

#initialize(interceptors) ⇒ Streaming

Returns a new instance of Streaming.

Parameters:



10
11
12
# File 'lib/grpc_kit/interceptors.rb', line 10

def initialize(interceptors)
  @registry = GrpcKit::InterceptorRegistry.new(interceptors)
end

Instance Method Details

#intercept(call, metadata, &block) ⇒ Object

Parameters:

  • metadata (Hash<String,String>)


15
16
17
# File 'lib/grpc_kit/interceptors.rb', line 15

def intercept(call, , &block)
  do_intercept(@registry.build, call, , &block)
end