Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // InterfaceName is the name of the wireguard interface to manage InterfaceName string // IP Address to assign to the interface IP string // External Port to have wireguard listen on ListenPort int // OverlayNetworks is the IP range(s) for the entire overlay network OverlayNetworks []net.IPNet }
func (*Config) CheckAndSetDefaults ¶
type Peer ¶
type PeerStatus ¶
type PeerStatus struct { // PublicKey is the wireguard public key of the peer PublicKey string SharedKey string // Endpoint is the IP:Port endpoint of the peer Endpoint string // AllowedIP is a CSV of the allowed IP ranges of the peer AllowedIP string // LastHandshakeTime is the timestamp of the last handshake with the peer LastHandshake time.Time // BytesTX is the number of bytes transmitted to the peer BytesTX int64 // BytesRX is the number of bytes received from the peer BytesRX int64 //Keepalive is the number of second to keep the connection alive Keepalive int }
func (PeerStatus) ToPeer ¶
func (p PeerStatus) ToPeer() Peer
Click to show internal directories.
Click to hide internal directories.