MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / CheckIn

Method CheckIn

datasource/etcd_machine.go:160–162  ·  view source on GitHub ↗

CheckIn updates the _last_seen field of the machine

()

Source from the content-addressed store, hash-verified

158
159// CheckIn updates the _last_seen field of the machine
160func (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
165func (m *etcdMachineInterface) LastSeen() (int64, error) {

Callers

nothing calls this directly

Calls 1

selfSetMethod · 0.95

Tested by

no test coverage detected