Versions in this module Expand all Collapse all v0 v0.3.9 Jan 19, 2021 Changes in this version + type IPPool struct + func NewIPPool(kp identity.KeyPair) *IPPool + func (p *IPPool) Gateway() *net.IPNet + func (p *IPPool) Get(id []byte) (net.IP, error) + func (p *IPPool) Subnet() net.IPNet + type Mgr struct + func New(kp identity.KeyPair, ipAlloc *IPPool, endpoint string, wgIface string) (*Mgr, error) + func (m *Mgr) AddPeer(user, pubKey string) (PeerConfig, error) + func (m *Mgr) Close() error + func (m *Mgr) RemovePeer(pubKey string) error + type Peer struct + AllowedIPs []string + Endpoint string + PublicKey string + type PeerConfig struct + IPs []string + Peers []Peer