Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy interface {
// Start forwarding traffic back and forth the front and back-end
// addresses.
Run()
// Stop forwarding traffic and close both ends of the Proxy.
Close()
// Return the address on which the proxy is listening.
FrontendAddr() net.Addr
// Return the proxied address.
BackendAddr() net.Addr
}
type StubProxy ¶
type StubProxy struct {
// contains filtered or unexported fields
}
type TCPProxy ¶
type TCPProxy struct {
// contains filtered or unexported fields
}
type UDPProxy ¶
type UDPProxy struct {
// contains filtered or unexported fields
}
Source Files
¶
- proxy.go
- stub_proxy.go
- tcp_proxy.go
- udp_proxy.go
Click to show internal directories.
Click to hide internal directories.