define initial peer type

This commit is contained in:
Callan Bryant 2020-02-10 19:58:13 +00:00
parent 2331c4ad7b
commit 33fbaa930b
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

19
types.go Normal file
View File

@ -0,0 +1,19 @@
package dsnet
import (
"net"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)
// see https://github.com/WireGuard/wgctrl-go/blob/master/wgtypes/types.go for definitions
type Peer struct {
Name string
Description string
PublicKey wgtypes.Key
PresharedKey wgtypes.Key
Endpoint *net.UDPAddr
LastHandshakeTime time.Time
ReceiveBytes int64
TransmitBytes int64
AllowedIPs []net.IPNet
}