Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateWireguardConfig ¶
func GenerateWireguardConfig(wgParams WgConfigParams) (string, error)
Types ¶
type PrivatePeer ¶
type PublicPeer ¶
type WgConfigParams ¶
type WgConfigParams struct {
IPAddr string
PrivateKey string
ListenPort uint16
DNS string
WithDNS bool
PostUp []string
PostDown []string
PublicPeers []PublicPeer
PrivatePeers []PrivatePeer
}
Click to show internal directories.
Click to hide internal directories.