Sha256: 8413950bede029ce2be9d6edf28c2de8ae5f32a396bddee617ecd816f9a576fa

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit/interceptors'

module GrpcKit
  module Interceptors::Server
    class BidiStreamer < Streaming
      # @param interceptor [GrpcKit::GRPC::ServerInterceptor]
      # @param call [GrpcKit::Calls::Client::BidiStreamer]
      def invoke(interceptor, call)
        interceptor.bidi_streamer(call: call, method: call.method) do |new_call = nil|
          yield(new_call || call)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grpc_kit-0.2.0 lib/grpc_kit/interceptors/server_bidi_streamer.rb
grpc_kit-0.1.14 lib/grpc_kit/interceptors/server_bidi_streamer.rb
grpc_kit-0.1.13 lib/grpc_kit/interceptors/server_bidi_streamer.rb
grpc_kit-0.1.12 lib/grpc_kit/interceptors/server_bidi_streamer.rb
grpc_kit-0.1.11 lib/grpc_kit/interceptors/server_bidi_streamer.rb
grpc_kit-0.1.10 lib/grpc_kit/interceptors/server_bidi_streamer.rb