forward

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TransportName = "forward"

Variables

This section is empty.

Functions

func Attach added in v1.9.4

func Attach(d proxy.Dialer)

func New added in v1.9.4

func New() transport.Transport

Types

type Forward

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

func (*Forward) Attach

func (f *Forward) Attach(dialer proxy.Dialer)

func (*Forward) Close

func (f *Forward) Close() (err error)

func (*Forward) Dial

func (f *Forward) Dial(network, addr string) (net.Conn, error)

func (*Forward) Proxy

func (f *Forward) Proxy(ctx context.Context, req *transport.Request, localAddr chan<- string, dst io.Writer, src io.Reader) (err error)

func (*Forward) String

func (f *Forward) String() string

Jump to

Keyboard shortcuts

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