Documentation
¶
Index ¶
- type ProxyManager
- func (pm *ProxyManager) AddTarget(proto, listenIP string, port int, targetAddr string) error
- func (pm *ProxyManager) ClearTunnelID()
- func (pm *ProxyManager) PrintTargets()
- func (pm *ProxyManager) RemoveTarget(proto, listenIP string, port int) error
- func (pm *ProxyManager) SetAsyncBytes(b bool)
- func (pm *ProxyManager) SetTNet(tnet *netstack.Net)
- func (pm *ProxyManager) SetTunnelID(id string)
- func (pm *ProxyManager) Start() error
- func (pm *ProxyManager) Stop() error
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyManager ¶
type ProxyManager struct {
// contains filtered or unexported fields
}
ProxyManager handles the creation and management of proxy connections
func NewProxyManager ¶
func NewProxyManager(tnet *netstack.Net) *ProxyManager
NewProxyManager creates a new proxy manager instance
func NewProxyManagerWithoutTNet ¶
func NewProxyManagerWithoutTNet() *ProxyManager
init function without tnet
func (*ProxyManager) AddTarget ¶
func (pm *ProxyManager) AddTarget(proto, listenIP string, port int, targetAddr string) error
AddTarget adds as new target for proxying
func (*ProxyManager) ClearTunnelID ¶
func (pm *ProxyManager) ClearTunnelID()
ClearTunnelID clears cached attribute sets for the current tunnel.
func (*ProxyManager) PrintTargets ¶
func (pm *ProxyManager) PrintTargets()
write a function to print out the current targets in the ProxyManager
func (*ProxyManager) RemoveTarget ¶
func (pm *ProxyManager) RemoveTarget(proto, listenIP string, port int) error
func (*ProxyManager) SetAsyncBytes ¶
func (pm *ProxyManager) SetAsyncBytes(b bool)
func (*ProxyManager) SetTNet ¶
func (pm *ProxyManager) SetTNet(tnet *netstack.Net)
Function to add tnet to existing ProxyManager
func (*ProxyManager) SetTunnelID ¶
func (pm *ProxyManager) SetTunnelID(id string)
SetTunnelID sets the WireGuard peer public key used as tunnel_id label.
func (*ProxyManager) Start ¶
func (pm *ProxyManager) Start() error
Start begins listening for all configured proxy targets
func (*ProxyManager) Stop ¶
func (pm *ProxyManager) Stop() error
Click to show internal directories.
Click to hide internal directories.