class
GRPC::Reflection::Service
- GRPC::Reflection::Service
- GRPC::Service
- Reference
- Object
Defined in:
grpc/reflection.crConstant Summary
-
SERVICE_FULL_NAME =
"grpc.reflection.v1alpha.ServerReflection"
Constructors
Instance Method Summary
- #add_file_descriptor(bytes : Bytes) : self
-
#bidi_streaming?(method : String) : Bool
bidi_streaming? returns true if method is a bidirectional streaming RPC.
-
#dispatch(method : String, request_body : Bytes, ctx : GRPC::ServerContext) : Tuple(Bytes, GRPC::Status)
dispatch routes an incoming unary RPC call to the correct method implementation.
-
#dispatch_bidi_stream(method : String, requests : GRPC::RawRequestStream, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::Status
dispatch_bidi_stream dispatches a bidirectional streaming RPC.
- #register_service(service_name : String) : self
-
#service_full_name : String
service_full_name returns the full gRPC service name (e.g.
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
Instance Method Detail
bidi_streaming? returns true if method is a bidirectional streaming RPC. Generated service base classes override this; the default is false (unary).
dispatch routes an incoming unary RPC call to the correct method implementation. Returns {response_body : Bytes, status : Status}.
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.
service_full_name returns the full gRPC service name (e.g. "helloworld.Greeter").