Files
wireguard-go/src/peer.go
T

23 lines
421 B
Go
Raw Normal View History

2017-05-30 22:36:49 +02:00
package main
import (
2017-06-01 21:31:30 +02:00
"net"
2017-05-30 22:36:49 +02:00
"sync"
2017-06-04 21:48:15 +02:00
"time"
2017-05-30 22:36:49 +02:00
)
type KeyPair struct {
recieveKey NoiseSymmetricKey
recieveNonce NoiseNonce
sendKey NoiseSymmetricKey
sendNonce NoiseNonce
}
type Peer struct {
2017-06-04 21:48:15 +02:00
mutex sync.RWMutex
publicKey NoisePublicKey
presharedKey NoiseSymmetricKey
endpoint net.IP
persistentKeepaliveInterval time.Duration
2017-05-30 22:36:49 +02:00
}