GetRegisteredAt returns the timestamp when the instance has been registered to the ring or a zero value if unknown.
()
| 142 | // GetRegisteredAt returns the timestamp when the instance has been registered to the ring |
| 143 | // or a zero value if unknown. |
| 144 | func (i *InstanceDesc) GetRegisteredAt() time.Time { |
| 145 | if i == nil || i.RegisteredTimestamp == 0 { |
| 146 | return time.Time{} |
| 147 | } |
| 148 | |
| 149 | return time.Unix(i.RegisteredTimestamp, 0) |
| 150 | } |
| 151 | |
| 152 | // GetLastHeartbeatAt returns the timestamp of the last heartbeat sent by the instance |
| 153 | // or a zero value if unknown. |
no outgoing calls