Class: GrpcKit::Rpcs::ServerRpc
- Inherits:
-
Object
- Object
- GrpcKit::Rpcs::ServerRpc
- Defined in:
- lib/grpc_kit/rpcs.rb
Direct Known Subclasses
GrpcKit::Rpcs::Server::BidiStreamer, GrpcKit::Rpcs::Server::ClientStreamer, GrpcKit::Rpcs::Server::RequestResponse, GrpcKit::Rpcs::Server::ServerStreamer
Instance Attribute Summary collapse
- #config ⇒ GrpcKit::MethodConfig readonly
Instance Method Summary collapse
-
#initialize(handler, config) ⇒ ServerRpc
constructor
A new instance of ServerRpc.
- #invoke(stream, metadata: {}) ⇒ Object
Constructor Details
#initialize(handler, config) ⇒ ServerRpc
Returns a new instance of ServerRpc.
27 28 29 30 |
# File 'lib/grpc_kit/rpcs.rb', line 27 def initialize(handler, config) @handler = handler @config = config end |
Instance Attribute Details
#config ⇒ GrpcKit::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 |