(pk key.NodePublic)
| 1105 | } |
| 1106 | |
| 1107 | func (e *userspaceEngine) getPeerStatusLite(pk key.NodePublic) (status ipnstate.PeerStatusLite, ok bool) { |
| 1108 | peer, ok := e.PeerByKey(pk) |
| 1109 | if !ok { |
| 1110 | return status, false |
| 1111 | } |
| 1112 | status.NodeKey = pk |
| 1113 | status.RxBytes = int64(peer.RxBytes()) |
| 1114 | status.TxBytes = int64(peer.TxBytes()) |
| 1115 | status.LastHandshake = peer.LastHandshake() |
| 1116 | return status, true |
| 1117 | } |
| 1118 | |
| 1119 | func (e *userspaceEngine) getStatus() (*Status, error) { |
| 1120 | // Grab derpConns before acquiring wgLock to not violate lock ordering; |
no test coverage detected