Sha256: 7f04749620c9b6940da5804323d7133df1eedb44dc3b9f0a5e87465938327ef1

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit/interceptors'

module GrpcKit
  module Interceptors::Server
    class ClientStreamer < Streaming
      # @param interceptor [GrpcKit::GRPC::ServerInterceptor]
      # @param call [GrpcKit::Calls::Client::ClientStreamer]
      def invoke(interceptor, call)
        interceptor.client_streamer(call: call, method: call.method) do
          yield(call)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grpc_kit-0.1.9 lib/grpc_kit/interceptors/server_client_streamer.rb