isUp reports whether the device is up (or is attempting to come up). See device.state.state comments for how to interpret this value.
()
| 126 | // isUp reports whether the device is up (or is attempting to come up). |
| 127 | // See device.state.state comments for how to interpret this value. |
| 128 | func (device *Device) isUp() bool { |
| 129 | return device.deviceState() == deviceStateUp |
| 130 | } |
| 131 | |
| 132 | // Must hold device.peers.Lock() |
| 133 | func removePeerLocked(device *Device, peer *Peer, key NoisePublicKey) { |
no test coverage detected