abstract class MinknowApi::Keystore::KeyStoreService::Service

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/keystore.grpc.cr

Instance Method Summary

Instance Method Detail

def dispatch(method : String, body : Bytes, ctx : GRPC::ServerContext) : Tuple(Bytes, GRPC::Status) #
Description copied from class GRPC::Service

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


[View source]
def dispatch_server_stream(method : String, body : Bytes, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::Status #
Description copied from class GRPC::Service

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.


[View source]
abstract def get(request : GetRequest, ctx : GRPC::ServerContext) : GetResponse #

[View source]
abstract def get_one(request : GetOneRequest, ctx : GRPC::ServerContext) : GetOneResponse #

[View source]
abstract def remove(request : RemoveRequest, ctx : GRPC::ServerContext) : RemoveResponse #

[View source]
def server_streaming?(method : String) : Bool #
Description copied from class GRPC::Service

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


[View source]
def service_full_name : String #
Description copied from class GRPC::Service

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


[View source]
abstract def store(request : StoreRequest, ctx : GRPC::ServerContext) : StoreResponse #

[View source]
abstract def watch(request : WatchRequest, writer : GRPC::ResponseStream(WatchResponse), ctx : GRPC::ServerContext) : GRPC::Status #

[View source]