Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAvailableUDPPort ¶
find an available UDP port in the range [minPort, maxPort] and also the next port for the wgtester
func NewFixedPortBind ¶
Types ¶
type PeerBandwidth ¶
type PeerReading ¶
type WireGuardService ¶
type WireGuardService struct {
Port uint16
// contains filtered or unexported fields
}
func NewWireGuardService ¶
func (*WireGuardService) Close ¶
func (s *WireGuardService) Close(rm bool)
func (*WireGuardService) LoadRemoteConfig ¶
func (s *WireGuardService) LoadRemoteConfig() error
func (*WireGuardService) SetToken ¶
func (s *WireGuardService) SetToken(token string)
func (*WireGuardService) StartHolepunch ¶
func (s *WireGuardService) StartHolepunch(serverPubKey string, endpoint string)
Click to show internal directories.
Click to hide internal directories.