View Source Wireguardex.Device (Wireguardex v0.4.0)
Device represents all available information about a WireGuard device (interface).
This struct contains the current configuration of the interface and the current configuration and info for all of its peers.
nameThe interface name of the device.public_keyThe public encryption key of the interface.private_keyThe private encryption key of the interface.fwmarkThe fwmark of this interface.listen_portThe port to listen for incoming connections.peersThe list of all peers registered to this interface with their configs and stats.linked_nameThe associated "real" name of the interface.