Sha256: 302193abcaf1934041cf2ccc432a417811a4ea8ef76cac2c1a7c98a53996978a

Contents?: true

Size: 695 Bytes

Versions: 7

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

require 'timeout'
require 'grpc_kit/errors'
require 'grpc_kit/status_codes'

module GrpcKit
  module Rpcs
    class ClientRpc
      # @return [GrpcKit::MethodConfig]
      attr_reader :config

      # @param config [GrpcKit::MethodConfig]
      def initialize(config)
        @config = config
      end

      def invoke(stream, request, metadata: {}, timeout: nil); end
    end

    class ServerRpc
      # @param handler [GrpcKit::GRPC::GenericService]
      # @param config [GrpcKit::MethodConfig]
      def initialize(handler, config)
        @handler = handler
        @config = config
      end

      def invoke(stream, metadata: {}); end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
grpc_kit-0.2.0 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.14 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.13 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.12 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.11 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.10 lib/grpc_kit/rpcs.rb
grpc_kit-0.1.9 lib/grpc_kit/rpcs.rb