Documentation
¶
Overview ¶
Package listenermux shares a TCP listener between plaintext HTTP/1 and native gRPC. HTTP/2 connections and TLS handshakes are passed unchanged to gRPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux owns a listener and any connections not yet handed to a protocol server. Close leaves handed-off connections open for those servers to drain. This is connection-level routing: HTTP/2 REST and HTTPS are not supported.
func (*Mux) GRPCListener ¶
func (*Mux) HTTPListener ¶
Click to show internal directories.
Click to hide internal directories.