//
pkg.gl
Category
github.com/utilitywarehouse/semaphore-wireguard
wireguard
package
0.3.3
Repository:
https://github.com/utilitywarehouse/semaphore-wireguard.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
10
Dependents
1
Files
249 SLOC
#
Functions
NewDevice
NewDevice returns a new device struct.
NewPeerConfig
NewPeerConfig constructs and returns a wgtypes PeerConfig object.
SetPeers
SetPeers takes a device name and a list of peers and updates the device's peers list to match the passed one.
#
Structs
Device
Device is the struct to hold the link device and the wireguard attributes we need.