transport

package
v1.2.2-0...-70982f0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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

type ReadOnlyConn struct {
	Reader io.Reader
}

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) Read

func (conn ReadOnlyConn) Read(p []byte) (int, error)

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

func (ReadOnlyConn) Write

func (conn ReadOnlyConn) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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