abstract class
MinknowApi::Log::LogService::Service
- MinknowApi::Log::LogService::Service
- GRPC::Service
- Reference
- Object
Overview
Service is the generated abstract base class for server implementations. Subclass it and implement each RPC method, then register with GRPC::Server#handle.
Defined in:
generated/minknow_api/log.grpc.crInstance Method Summary
- #collect_pings(request : CollectPingsRequest, writer : GRPC::ResponseStream(CollectPingsResponse), ctx : GRPC::ServerContext) : GRPC::Status
-
#dispatch(method : String, body : Bytes, ctx : GRPC::ServerContext) : Tuple(Bytes, GRPC::Status)
dispatch routes an incoming unary RPC call to the correct method implementation.
-
#dispatch_server_stream(method : String, body : Bytes, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::Status
dispatch_server_stream dispatches a server-streaming RPC.
- #get_user_messages(request : GetUserMessagesRequest, writer : GRPC::ResponseStream(UserMessage), ctx : GRPC::ServerContext) : GRPC::Status
- #send_ping(request : SendPingRequest, ctx : GRPC::ServerContext) : SendPingResponse
- #send_user_message(request : SendUserMessageRequest, ctx : GRPC::ServerContext) : SendUserMessageResponse
-
#server_streaming?(method : String) : Bool
server_streaming? returns true if method is a server-streaming RPC.
-
#service_full_name : String
service_full_name returns the full gRPC service name (e.g.
Instance Method Detail
dispatch routes an incoming unary RPC call to the correct method implementation. Returns {response_body : Bytes, status : Status}.
dispatch_server_stream dispatches a server-streaming RPC. The transport passes a RawResponseStream; generated subclasses wrap it in a typed ResponseStream(T) before handing off to the user implementation.
server_streaming? returns true if method is a server-streaming RPC. Generated service base classes override this; the default is false (unary).
service_full_name returns the full gRPC service name (e.g. "helloworld.Greeter").