Sha256: 8e0aafdec7cc6bae9cf49ab3fb03852aa2c9d17dca3927b8d15625fb0a7baad9
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/interceptors' module GrpcKit module Interceptors::Client class ServerStreamer < Streaming private # @param interceptor [GrpcKit::GRPC::ClientInterceptor] # @param call [GrpcKit::Calls::Client::ServerStreamer] # @param metadata [Hash<String,String>] def invoke(interceptor, call, metadata) # We don't need a `:request` parameter but, # it shuoldn't remove from paramters due to having a compatibility of grpc gem. interceptor.server_streamer(request: nil, call: call, method: call.method, metadata: metadata) do |new_call = nil| yield(new_call || call, metadata) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems