Class: GrpcKit::Interceptors::Server::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:



39
40
41
# File 'lib/grpc_kit/interceptors.rb', line 39

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

Instance Method Details

#intercept(call, &block) ⇒ Object



43
44
45
# File 'lib/grpc_kit/interceptors.rb', line 43

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