// Update implements CurationRemarker. func (w *LevelDBCurationRemarker) Update(pair *curationKey, t clientmodel.Timestamp) error { k := &dto.CurationKey{} pair.dump(k) return w.LevelDBPersistence.Put(k, &dto.CurationValue{ LastCompletionTimestamp: proto.Int64(t.Unix()), }) }
// === time() clientmodel.SampleValue === func timeImpl(timestamp clientmodel.Timestamp, args []Node) interface{} { return clientmodel.SampleValue(timestamp.Unix()) }
// EncodeTimeInto writes the provided time into the specified buffer subject // to the LevelDB big endian key sort order requirement. func EncodeTimeInto(dst []byte, t clientmodel.Timestamp) { binary.BigEndian.PutUint64(dst, uint64(t.Unix())) }