Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PeerConnectionStatus ¶
PeerConnectionStatus - get peer connection status from wireguard interface
Types ¶
type Proxy ¶
type Proxy struct {
Ctx context.Context
Cancel context.CancelFunc
Config models.Proxy
RemoteConn *net.UDPAddr
LocalConn net.Conn
}
Proxy - struct for wg proxy
func (*Proxy) Close ¶
func (p *Proxy) Close()
Proxy.Close - removes peer conn from proxy and closes all the opened connections locally
Click to show internal directories.
Click to hide internal directories.