RequiresCheck returns true if the heartbeat monitor requires a check
()
| 20 | |
| 21 | // RequiresCheck returns true if the heartbeat monitor requires a check |
| 22 | func (h *HeartbeatMonitor) RequiresCheck() bool { |
| 23 | return h.UpdatedAt.Add(2 * time.Hour).Before(time.Now()) |
| 24 | } |
| 25 | |
| 26 | // PhoneIsOffline returns true if the phone is offline |
| 27 | func (h *HeartbeatMonitor) PhoneIsOffline() bool { |