View Source Wireguardex.Device (Wireguardex v0.3.3)
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.
name
The interface name of the device.public_key
The public encryption key of the interface.private_key
The private encryption key of the interface.fwmark
The fwmark of this interface.listen_port
The port to listen for incoming connections.peers
The list of all peers registered to this interface with their configs and stats.linked_name
The associated "real" name of the interface.