package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
ContextErr converts the error from context package into a StreamError.
NewClientTransport establishes the transport with the required ConnectOptions and returns it to the caller.
NewServerHandlerTransport returns a ServerTransport handling gRPC from inside an http.Handler.
NewServerTransport creates a ServerTransport with conn or non-nil error if it fails.
# Constants
GoAwayInvalid indicates that no GoAway frame is received.
GoAwayNoReason is the default value when GoAway frame is received.
GoAwayTooManyPings indicates that a GoAway frame with ErrCodeEnhanceYourCalm was received and that the debug data said "too_many_pings".
# Variables
ErrConnClosing indicates that the transport is closing.
ErrIllegalHeaderWrite indicates that setting header is illegal because of the stream's state.
# Structs
CallHdr carries the information of a particular RPC.
ConnectionError is an error that results in the termination of the entire connection and the retry of all the active streams.
ConnectOptions covers all relevant options for communicating with the server.
Options provides additional hints and information for message transmission.
ServerConfig consists of all the configurations to establish a server transport.
Stream represents an RPC in the transport layer.
StreamError is an error that only affects one stream within a connection.
TargetInfo contains the information of the target such as network address and metadata.
# Interfaces
ClientTransport is the common interface for all gRPC client-side transport implementations.
ServerTransport is the common interface for all gRPC server-side transport implementations.
# Type aliases
GoAwayReason contains the reason for the GoAway frame received.