Versions in this module Expand all Collapse all v0 v0.1.0 Feb 14, 2023 Changes in this version + type Config struct + Interface Interface + Peers Peers + func (cfg *Config) AddPeer(p *Peer) + func (cfg *Config) Read(r io.Reader) error + func (cfg *Config) ReadFile(file string) error + func (cfg *Config) Write(w io.Writer) (int64, error) + type Interface struct + Address string + DNS []string + ListenPort uint + MTU int + PostDown string + PostUp string + PreDown string + PreUp string + PrivateKey string + Table int + type Peer struct + AllowedIPs string + Comment string + Endpoint string + PersistentKeepalive int + PublicKey string + func (p Peer) ReflectINIStruct(f *ini.File) error + type Peers []Peer + func (p *Peers) Add(peer *Peer) + func (peers Peers) ReflectINIStruct(f *ini.File) error