func (g *gregorHandler) notifyFavoritesChanged(ctx context.Context, uid gregor.UID) error { kbUID, err := keybase1.UIDFromString(hex.EncodeToString(uid.Bytes())) if err != nil { return err } g.G().NotifyRouter.HandleFavoritesChanged(kbUID) return nil }
func (o ObjFactory) MakeReminderID(u gregor.UID, msgid gregor.MsgID, seqno int) (gregor.ReminderID, error) { return ReminderID{Uid_: u.Bytes(), MsgID_: msgid.Bytes(), Seqno_: seqno}, nil }
func (db *LevelDBStorageEngine) Load(user gregor.UID) ([]byte, error) { return db.Get(user.Bytes(), nil) }
func (db *LevelDBStorageEngine) Store(user gregor.UID, value []byte) error { return db.Put(user.Bytes(), value, nil) }
func dbKey(u gregor.UID) libkb.DbKey { return libkb.DbKey{Typ: libkb.DBGregor, Key: hex.EncodeToString(u.Bytes())} }
func uidToString(u gregor.UID) string { return hex.EncodeToString(u.Bytes()) }