class

MinknowApi::Keystore::KeyStoreService::Service

Inherits GRPC::Service < Reference < Object

Service is the generated abstract base class for server implementations. Subclass it and implement each RPC method, then register with GRPC::Server#handle.

Instance methods

dispatch(method : String, body : Bytes, ctx : GRPC::ServerContext) : Tuple(Bytes, GRPC::Status)

dispatch routes an incoming unary RPC call to the correct method implementation. Returns {response_body : Bytes, status : Status}.

Source
dispatch_server_stream(method : String, body : Bytes, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::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.

Source
get(request : GetRequest, ctx : GRPC::ServerContext) : GetResponse
Source
get_one(request : GetOneRequest, ctx : GRPC::ServerContext) : GetOneResponse
Source
remove(request : RemoveRequest, ctx : GRPC::ServerContext) : RemoveResponse
Source
server_streaming?(method : String) : Bool

server_streaming? returns true if method is a server-streaming RPC. Generated service base classes override this; the default is false (unary).

Source
service_full_name

service_full_name returns the full gRPC service name (e.g. "helloworld.Greeter").

Source
store(request : StoreRequest, ctx : GRPC::ServerContext) : StoreResponse
Source
watch(request : WatchRequest, writer : GRPC::ResponseStream(WatchResponse), ctx : GRPC::ServerContext) : GRPC::Status
Source