mirror of
https://github.com/netbirdio/netbird.git
synced 2025-07-28 19:10:21 +02:00
25 lines
343 B
Go
25 lines
343 B
Go
package configurer
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
type Peer struct {
|
|
PublicKey string
|
|
Endpoint net.UDPAddr
|
|
AllowedIPs []net.IPNet
|
|
TxBytes int64
|
|
RxBytes int64
|
|
LastHandshake time.Time
|
|
PresharedKey bool
|
|
}
|
|
|
|
type Stats struct {
|
|
DeviceName string
|
|
PublicKey string
|
|
ListenPort int
|
|
FWMark int
|
|
Peers []Peer
|
|
}
|