Documentation ¶
Index ¶
- type WgClient
- func (wg *WgClient) FindPeerByRemoteIP(remoteIP string) (string, error)
- func (c *WgClient) GetInterfacePublicKey() (string, error)
- func (c *WgClient) GetPeers() ([]wgtypes.Peer, error)
- func (wg *WgClient) SetListenPort(listenPort int) error
- func (wg *WgClient) SetPeerRemotePort(peerPubKey string, remoteIP string, remotePort int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WgClient ¶
type WgClient struct {
// contains filtered or unexported fields
}
func NewWgClient ¶
func (*WgClient) FindPeerByRemoteIP ¶
returns peer's public key
func (*WgClient) GetInterfacePublicKey ¶
func (*WgClient) SetListenPort ¶
Click to show internal directories.
Click to hide internal directories.