Class: Gritz::Async::Service
- Inherits:
-
Protocol::GRPC::Interface
- Object
- Protocol::GRPC::Interface
- Gritz::Async::Service
- Defined in:
- /home/runner/work/gritz/gritz/sources/gritz-async/lib/gritz/async/service.rb
Overview
Protobuf service declarations that need no grpc C extension. Uses protocol-grpc's rpc/stream DSL, with the same service name as the .proto file.
Defined Under Namespace
Classes: Descriptor
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.service_name ⇒ Object
12 13 14 |
# File '/home/runner/work/gritz/gritz/sources/gritz-async/lib/gritz/async/service.rb', line 12 def service_name @service_name end |
Class Method Details
.rpc_descs ⇒ Object
14 15 16 17 18 |
# File '/home/runner/work/gritz/gritz/sources/gritz-async/lib/gritz/async/service.rb', line 14 def rpc_descs rpcs.transform_values do |rpc| Descriptor.new(rpc.request_class, rpc.response_class, rpc.streaming) end end |