Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UDPConnTrackTimeout is the timeout used for UDP connection tracking UDPConnTrackTimeout = 90 * time.Second // UDPBufSize is the buffer size for the UDP proxy UDPBufSize = 65507 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseWrapper ¶ added in v0.4.0
type CloseWrapper func() error
func (CloseWrapper) Close ¶ added in v0.4.0
func (w CloseWrapper) Close() error
type PortsForwarder ¶
type PortsForwarder struct {
// contains filtered or unexported fields
}
func NewPortsForwarder ¶
func NewPortsForwarder(s *stack.Stack) *PortsForwarder
func (*PortsForwarder) Expose ¶
func (f *PortsForwarder) Expose(protocol types.TransportProtocol, local, remote string) error
func (*PortsForwarder) Mux ¶
func (f *PortsForwarder) Mux() http.Handler
func (*PortsForwarder) Unexpose ¶
func (f *PortsForwarder) Unexpose(protocol types.TransportProtocol, local string) error
type UDPProxy ¶ added in v0.2.0
type UDPProxy struct {
// contains filtered or unexported fields
}
UDPProxy is proxy for which handles UDP datagrams. It implements the Proxy interface to handle UDP traffic forwarding between the frontend and backend addresses.
func NewUDPProxy ¶ added in v0.2.0
NewUDPProxy creates a new UDPProxy.
Click to show internal directories.
Click to hide internal directories.