Versions in this module Expand all Collapse all v1 v1.0.1 Oct 20, 2025 Changes in this version + func FindAvailableUDPPort(minPort, maxPort uint16) (uint16, error) + func NewFixedPortBind(port uint16) conn.Bind + type Peer struct + AllowedIPs []string + Endpoint string + PublicKey string + type PeerBandwidth struct + BytesIn float64 + BytesOut float64 + PublicKey string + type PeerReading struct + BytesReceived int64 + BytesTransmitted int64 + LastChecked time.Time + type TargetData struct + Targets []string + type TargetsByType struct + TCP []string + UDP []string + type WgConfig struct + IpAddress string + Peers []Peer + Targets TargetsByType + type WireGuardService struct + Port uint16 + TunnelIP string + func NewWireGuardService(interfaceName string, mtu int, generateAndSaveKeyTo string, host string, ...) (*WireGuardService, error) + func (s *WireGuardService) AddProxyTarget(proto, listenIP string, port int, targetAddr string) error + func (s *WireGuardService) Close(rm bool) + func (s *WireGuardService) GetNetstackNet() *netstack.Net + func (s *WireGuardService) GetProxyManager() *proxy.ProxyManager + func (s *WireGuardService) GetPublicKey() wgtypes.Key + func (s *WireGuardService) IsReady() bool + func (s *WireGuardService) LoadRemoteConfig() error + func (s *WireGuardService) RemoveProxyTarget(proto, listenIP string, port int) error + func (s *WireGuardService) ReplaceNetstack() error + func (s *WireGuardService) ReportRTT(seconds float64) + func (s *WireGuardService) SetOnNetstackClose(callback func()) + func (s *WireGuardService) SetOnNetstackReady(callback func(*netstack.Net)) + func (s *WireGuardService) SetOthertnet(tnet *netstack.Net) + func (s *WireGuardService) SetToken(token string) + func (s *WireGuardService) StartHolepunch(serverPubKey string, endpoint string)