Beispiel #1
0
func getTime(tx *bolt.Tx, thread string) (int64, error) {
	var stamp int64
	k := db.MustTob(thread)
	_, err := db.Get(tx, "keylibTS", k, &stamp)
	return stamp, err
}
Beispiel #2
0
//GetFromDB gets DB db.
func GetFromDB(tx *bolt.Tx, h *Head) (*DB, error) {
	d := DB{}
	_, err := db.Get(tx, "record", h.ToKey(), &d)
	return &d, err
}
Beispiel #3
0
func getThread(tx *bolt.Tx, stamp int64) (string, error) {
	var thread string
	k := db.MustTob(stamp)
	_, err := db.Get(tx, "keylibST", k, &thread)
	return thread, err
}