Example #1
0
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
}
Example #2
0
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
}
Example #3
0
func (db *LevelDBStorageEngine) Load(user gregor.UID) ([]byte, error) {
	return db.Get(user.Bytes(), nil)
}
Example #4
0
func (db *LevelDBStorageEngine) Store(user gregor.UID, value []byte) error {
	return db.Put(user.Bytes(), value, nil)
}
Example #5
0
func dbKey(u gregor.UID) libkb.DbKey {
	return libkb.DbKey{Typ: libkb.DBGregor, Key: hex.EncodeToString(u.Bytes())}
}
Example #6
0
func uidToString(u gregor.UID) string {
	return hex.EncodeToString(u.Bytes())
}