module GRPC::Transport::ClientTransport

Overview

ClientTransport is the interface that Channel depends on. Concrete implementations (Http2ClientConnection) include this module. All methods return public stream types; PendingStream stays internal.

Direct including types

Defined in:

grpc/transport/interface.cr

Instance Method Summary

Instance Method Detail

def accepting_new_calls? : Bool #

Draining transports may still serve accepted RPCs.


[View source]
abstract def close : Nil #

[View source]
abstract def closed? : Bool #

[View source]
abstract def open_bidi_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawBidiCall #

[View source]
def open_bidi_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawBidiCall #

[View source]
abstract def open_client_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawClientCall #

[View source]
def open_client_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawClientCall #

[View source]
abstract def open_server_stream(service : String, method : String, request_bytes : Bytes, metadata : Metadata) : RawServerStream #

[View source]
def open_server_stream(service : String, method : String, request_bytes : Bytes, ctx : ClientContext) : RawServerStream #

[View source]
abstract def unary_call(service : String, method : String, request_body : Bytes, metadata : Metadata) : ResponseEnvelope #

[View source]
def unary_call(service : String, method : String, request_body : Bytes, ctx : ClientContext) : ResponseEnvelope #

Custom transports may override the context-aware overloads to observe cancellation after submission. Existing transports remain compatible.


[View source]