define initial peer type
This commit is contained in:
parent
2331c4ad7b
commit
33fbaa930b
19
types.go
Normal file
19
types.go
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user