proxyprotocol

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BehindTCPProxyListenAndServe

func BehindTCPProxyListenAndServe(srv *http.Server) error

BehindTCPProxyListenAndServe listens on the TCP network address srv.Addr and then calls Serve to handle requests on incoming connections. If srv.Addr is blank, ":http" is used.

func BehindTCPProxyListenAndServeTLS

func BehindTCPProxyListenAndServeTLS(srv *http.Server, certFile, keyFile string) error

func NewListener

func NewListener(underlying net.Listener) net.Listener

Types

type Accept

type Accept struct {
	// contains filtered or unexported fields
}

type Conn

type Conn struct {
	io.Reader
	net.Conn
	// contains filtered or unexported fields
}

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr

LocalAddr returns the specified local addr, if there is one.

func (*Conn) Read

func (c *Conn) Read(bs []byte) (int, error)

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

RemoteAddr returns the specified remote addr, if there is one.

type Listener

type Listener struct {
	net.Listener
	// contains filtered or unexported fields
}

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Close

func (l *Listener) Close() error

Directories

Path Synopsis
Packet proxyProtocol implements Proxy Protocol parser and writer.
Packet proxyProtocol implements Proxy Protocol parser and writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL