Documentation ¶
Index ¶
Constants ¶
View Source
const ( UDPConnTrackTimeout = 90 * time.Second UDPBufSize = 65507 )
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
}
func (*StubProxy) BackendAddr ¶
func (*StubProxy) FrontendAddr ¶
type TCPProxy ¶
type TCPProxy struct {
// contains filtered or unexported fields
}
func (*TCPProxy) BackendAddr ¶
func (*TCPProxy) FrontendAddr ¶
type UDPProxy ¶
type UDPProxy struct {
// contains filtered or unexported fields
}
func (*UDPProxy) BackendAddr ¶
func (*UDPProxy) FrontendAddr ¶
Click to show internal directories.
Click to hide internal directories.