# Packages
Package grpchttp2 defines HTTP/2 types and a framer API and implementation.
Package networktype declares the network type to be used in the default dialer.
# Functions
ContextErr converts the error from context package into a status error.
GetConnection gets the connection from the context.
NewHTTP2Client constructs a connected ClientTransport to addr based on HTTP2 and starts to receive messages on it.
NewServerHandlerTransport returns a ServerTransport handling gRPC from inside an http.Handler, or writes an HTTP error to w and returns an error.
NewServerTransport creates a http2 transport with conn and configuration options from config.
SetConnection adds the connection to the context to be able to get information about the destination ip and port for an incoming RPC.
# 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.
ErrHeaderListSizeLimitViolation indicates that the header list size is larger than the limit set by peer.
ErrIllegalHeaderWrite indicates that setting header is illegal because of the stream's state.
HTTPStatusConvTab is the HTTP status code to gRPC error code conversion table.
MaxStreamID is the upper bound for the stream ID before the current transport gracefully closes and new transport is created for subsequent RPCs.
# Structs
CallHdr carries the information of a particular RPC.
ClientStream implements streaming functionality for a gRPC client.
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.
NewStreamError wraps an error and reports additional information.
ServerConfig consists of all the configurations to establish a server transport.
ServerStream implements streaming functionality for a gRPC server.
Stream represents an RPC in the transport layer.
WriteOptions provides additional hints and information for message transmission.
# 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.