Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2022 v0.4.0 May 31, 2021 Changes in this version + func SetOutput(out bool) v0.2.0 May 30, 2021 Changes in this version + func GenerateKey() (string, error) + func PublicKey(a string) (string, error) + type Peer struct + Address []string + AllowedIPs []string + DNS string + Endpoint string + FwMark int + ListenPort int + MTU int + Name string + PostDown string + PostUp string + PreDown string + PreUp string + PrivateKey string + SaveConfig bool + Table string + type Peers []Peer + func LoadPeers(peersPath string) (Peers, error) + func (p Peers) AddPeer(pr Peer) error + func (p Peers) DeletePeer(pr string) + func (p Peers) DumpPeers(overwrite bool) error + func (p Peers) GenerateConfigs(folder string, id int) error + func (p Peers) PrettyPrint(brief bool)