Documentation ¶
Index ¶
- func Proxy(dst io.ReadWriter, src io.ReadWriter) chan error
- type ReadOnlyConn
- func (conn ReadOnlyConn) Close() error
- func (conn ReadOnlyConn) LocalAddr() net.Addr
- func (conn ReadOnlyConn) Read(p []byte) (int, error)
- func (conn ReadOnlyConn) RemoteAddr() net.Addr
- func (conn ReadOnlyConn) SetDeadline(t time.Time) error
- func (conn ReadOnlyConn) SetReadDeadline(t time.Time) error
- func (conn ReadOnlyConn) SetWriteDeadline(t time.Time) error
- func (conn ReadOnlyConn) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Proxy ¶
func Proxy(dst io.ReadWriter, src io.ReadWriter) chan error
Types ¶
type ReadOnlyConn ¶
Stolen from https://www.agwa.name/blog/post/writing_an_sni_proxy_in_go
func (ReadOnlyConn) Close ¶
func (conn ReadOnlyConn) Close() error
func (ReadOnlyConn) LocalAddr ¶
func (conn ReadOnlyConn) LocalAddr() net.Addr
func (ReadOnlyConn) RemoteAddr ¶
func (conn ReadOnlyConn) RemoteAddr() net.Addr
func (ReadOnlyConn) SetDeadline ¶
func (conn ReadOnlyConn) SetDeadline(t time.Time) error
func (ReadOnlyConn) SetReadDeadline ¶
func (conn ReadOnlyConn) SetReadDeadline(t time.Time) error
func (ReadOnlyConn) SetWriteDeadline ¶
func (conn ReadOnlyConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.