Versions in this module Expand all Collapse all v1 v1.4.0 Dec 6, 2024 Changes in this version + var V1Identifier = []byte("PROXY ") + var V2Identifier = []byte("\r\n\r\n\x00\r\nQUIT\n") + type Conn struct + func (c *Conn) Header() (Header, error) + func (c *Conn) HeaderContext(ctx context.Context) (Header, error) + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(b []byte) (n int, err error) + func (c *Conn) ReadFrom(r io.Reader) (n int64, err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) Write(b []byte) (n int, err error) + func (c *Conn) WriteTo(w io.Writer) (n int64, err error) + type Header struct + Destination net.Addr + IsLocal bool + RawTLVs []byte + Source net.Addr + Unknown []byte + Version int + func ReadHeader(r io.Reader) (*Header, error) + func ReadV2Header(r io.Reader) (*Header, error) + func (h *Header) ParseTLVs() (map[byte][]byte, error) + type Listener struct + ReadHeaderTimeout time.Duration + TestingSkipConnfu bool + func (l *Listener) Accept() (net.Conn, error)