Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + const LocalCommand + const PP2TypeAWS + const PP2TypeAzure + const PP2TypeGCP + const PP2TypeNOOP + const PP2TypeTeleport + const ProtocolTCP4 + const ProtocolTCP6 + const ProxyCommand + const TCP4 + const TCP6 + const UNKNOWN + const Version2 + var ErrTruncatedTLV = errors.New("TLV value was truncated") + func MarshalTLVs(tlvs []TLV) ([]byte, error) + type Config struct + Clock clockwork.Clock + Context context.Context + EnableProxyProtocol bool + ID string + Listener net.Listener + ReadDeadline time.Duration + func (c *Config) CheckAndSetDefaults() error + type Conn struct + func NewConn(conn net.Conn) *Conn + func (c *Conn) Detect() (Protocol, error) + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Protocol() Protocol + func (c *Conn) Read(p []byte) (int, error) + func (c *Conn) ReadProxyLine() (*ProxyLine, error) + func (c *Conn) RemoteAddr() net.Addr + type Listener struct + func (l *Listener) Accept() (net.Conn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error + func (l *Listener) HandleConnection(ctx context.Context, conn net.Conn) + type Mux struct + func New(cfg Config) (*Mux, error) + func (m *Mux) Close() error + func (m *Mux) DB() net.Listener + func (m *Mux) SSH() net.Listener + func (m *Mux) Serve() error + func (m *Mux) TLS() net.Listener + func (m *Mux) Wait() + type PP2Type byte + type Protocol int + const ProtoHTTP + const ProtoPostgres + const ProtoProxy + const ProtoProxyV2 + const ProtoSSH + const ProtoTLS + const ProtoUnknown + func (p Protocol) String() string + type ProxyLine struct + Destination net.TCPAddr + Protocol string + Source net.TCPAddr + TLVs []TLV + func ReadProxyLine(reader *bufio.Reader) (*ProxyLine, error) + func ReadProxyLineV2(reader *bufio.Reader) (*ProxyLine, error) + func (p *ProxyLine) Bytes() ([]byte, error) + func (p *ProxyLine) String() string + type TLSListener struct + func NewTLSListener(cfg TLSListenerConfig) (*TLSListener, error) + func (l *TLSListener) Addr() net.Addr + func (l *TLSListener) Close() error + func (l *TLSListener) HTTP() net.Listener + func (l *TLSListener) HTTP2() net.Listener + func (l *TLSListener) Serve() error + type TLSListenerConfig struct + Clock clockwork.Clock + ID string + Listener net.Listener + ReadDeadline time.Duration + func (c *TLSListenerConfig) CheckAndSetDefaults() error + type TLV struct + Type PP2Type + Value []byte + func UnmarshalTLVs(rawBytes []byte) ([]TLV, error) + type TestProxy struct + func NewTestProxy(target string, v2 bool) (*TestProxy, error) + func (p *TestProxy) Address() string + func (p *TestProxy) Close() error + func (p *TestProxy) Serve() error + type WebListener struct + func NewWebListener(cfg WebListenerConfig) (*WebListener, error) + func (l *WebListener) Addr() net.Addr + func (l *WebListener) Close() error + func (l *WebListener) DB() net.Listener + func (l *WebListener) Serve() error + func (l *WebListener) Web() net.Listener + type WebListenerConfig struct + Clock clockwork.Clock + Listener net.Listener + ReadDeadline time.Duration + func (c *WebListenerConfig) CheckAndSetDefaults() error Other modules containing this package github.com/zmb3/teleport