class GRPC::Reflection::Service

Defined in:

grpc/reflection.cr

Constant Summary

SERVICE_FULL_NAME = "grpc.reflection.v1alpha.ServerReflection"

Constructors

Instance Method Summary

Instance methods inherited from class GRPC::Service

bidi_streaming?(method : String) : Bool bidi_streaming?, client_streaming?(method : String) : Bool client_streaming?, dispatch(method : String, request_body : Bytes, ctx : ServerContext) : Tuple(Bytes, Status) dispatch, dispatch_bidi_stream(method : String, requests : RawRequestStream, ctx : ServerContext, writer : RawResponseStream) : Status dispatch_bidi_stream, dispatch_client_stream(method : String, requests : RawRequestStream, ctx : ServerContext) : Tuple(Bytes, Status) dispatch_client_stream, dispatch_server_stream(method : String, request_body : Bytes, ctx : ServerContext, writer : RawResponseStream) : Status dispatch_server_stream, server_streaming?(method : String) : Bool server_streaming?, service_full_name : String service_full_name

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_file_descriptor(bytes : Bytes) : self #

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

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


[View source]
def dispatch(method : String, request_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_bidi_stream(method : String, requests : GRPC::RawRequestStream, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::Status #
Description copied from class GRPC::Service

dispatch_bidi_stream dispatches a bidirectional streaming RPC. requests is a RawRequestStream that yields raw message bytes as they arrive. The transport passes a RawResponseStream; generated subclasses wrap it in a typed ResponseStream(T) before handing off to the user implementation.


[View source]
def register_service(service_name : String) : self #

[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]