CheckIn updates the _last_seen field of the machine
()
| 158 | |
| 159 | // CheckIn updates the _last_seen field of the machine |
| 160 | func (m *etcdMachineInterface) CheckIn() { |
| 161 | m.selfSet("_last_seen", strconv.FormatInt(time.Now().Unix(), 10)) |
| 162 | } |
| 163 | |
| 164 | // LastSeen returns the last time the machine has been seen, 0 for never |
| 165 | func (m *etcdMachineInterface) LastSeen() (int64, error) { |