(stat device.PeerStatus)
| 317 | } |
| 318 | |
| 319 | func wireGuardPeerStatsProto(stat device.PeerStatus) *protocol.WireGuardPeerStats { |
| 320 | return &protocol.WireGuardPeerStats{ |
| 321 | LatestHandshakeUnix: stat.LatestHandshakeTime().UnixNano(), |
| 322 | TxBytes: stat.TxBytes, |
| 323 | RxBytes: stat.RxBytes, |
| 324 | PersistentKeepaliveInterval: stat.PersistentKeepaliveInterval, |
| 325 | Endpoint: &stat.Endpoint, |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | func sourceProto(source state.Source) *protocol.Source { |
| 330 | return &protocol.Source{ |
no test coverage detected