README ¶ proxylistener A Go net.Listener that understands the haproxy PROXY protocol. Uses go-proxyproto. Usage func serveHere() error { l, err := proxylistener.Listen("tcp", "localhost:8080") // you can also use a unix socket if you wish if err != nil { return err } return http.Serve(l, FileServer(".")) } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Listen(network, address string) (net.Listener, error) func ListenTCP(network string, laddr *net.TCPAddr) (net.Listener, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Listen ¶ func Listen(network, address string) (net.Listener, error) func ListenTCP ¶ func ListenTCP(network string, laddr *net.TCPAddr) (net.Listener, error) Types ¶ This section is empty. Source Files ¶ View all Source files proxylistener.go Click to show internal directories. Click to hide internal directories.