Documentation ¶
Index ¶
- Variables
- func CheckRegisterNameAuthorization(txn *badger.Txn, originator, target, prev *easyecc.PublicKey) (bool, error)
- func CheckSelfOrParent(txn *badger.Txn, originator, target *easyecc.PublicKey) (bool, error)
- func GetParent(txn *badger.Txn, key *easyecc.PublicKey) (*easyecc.PublicKey, error)
- type BadgerDB
- func (b *BadgerDB) DisableKey(originator *easyecc.PublicKey, key *easyecc.PublicKey) error
- func (b *BadgerDB) GetAddress(name string, protocol pb.Protocol) (string, error)
- func (b *BadgerDB) GetKey(key *easyecc.PublicKey) (*pb.KeyRecord, error)
- func (b *BadgerDB) GetName(name string) (*easyecc.PublicKey, error)
- func (b *BadgerDB) RegisterAddress(originator, target *easyecc.PublicKey, name string, protocol pb.Protocol, ...) error
- func (b *BadgerDB) RegisterKey(publicKey *easyecc.PublicKey) error
- func (b *BadgerDB) RegisterKeyParent(childKey *easyecc.PublicKey, parentKey *easyecc.PublicKey) error
- func (b *BadgerDB) RegisterName(originator, target *easyecc.PublicKey, name string) error
- func (b *BadgerDB) WriteKeys(w protoio.Writer, cutoffTime uint64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthorized = fmt.Errorf("not authorized")
View Source
var ErrNotFound = fmt.Errorf("not found")
View Source
var ErrRecordExists = fmt.Errorf("record exists")
Functions ¶
func CheckSelfOrParent ¶
Types ¶
type BadgerDB ¶
type BadgerDB struct {
// contains filtered or unexported fields
}
func NewBadgerDB ¶
func NewBadgerDB(db *badger.DB) *BadgerDB
func (*BadgerDB) DisableKey ¶
func (*BadgerDB) GetAddress ¶
func (*BadgerDB) RegisterAddress ¶
func (*BadgerDB) RegisterKeyParent ¶
func (*BadgerDB) RegisterName ¶
Click to show internal directories.
Click to hide internal directories.