(kind TaskKind, status TaskStatus)
| 333 | type TaskMeta uint64 |
| 334 | |
| 335 | func newTaskMeta(kind TaskKind, status TaskStatus) TaskMeta { |
| 336 | now := time.Now().UTC().Unix() |
| 337 | return TaskMeta(now)<<32 | TaskMeta(kind)<<16 | TaskMeta(status) |
| 338 | } |
| 339 | |
| 340 | // Timestamp returns the timestamp of the last status change of the task. |
| 341 | func (t TaskMeta) Timestamp() time.Time { |