Class: GrpcKit::Rpcs::ServerRpc

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc_kit/rpcs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler, config) ⇒ ServerRpc

Returns a new instance of ServerRpc.

Parameters:



27
28
29
30
# File 'lib/grpc_kit/rpcs.rb', line 27

def initialize(handler, config)
  @handler = handler
  @config = config
end

Instance Attribute Details

#configGrpcKit::MethodConfig (readonly)



23
24
25
# File 'lib/grpc_kit/rpcs.rb', line 23

def config
  @config
end

Instance Method Details

#invoke(stream, metadata: {}) ⇒ Object



32
# File 'lib/grpc_kit/rpcs.rb', line 32

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