Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrExpiredTTL indicates the key has expired ErrExpiredTTL = errors.New("Key has expired") // ErrOutdatedValue indicates the timestamp is less than the currently known timestamp ErrOutdatedValue = errors.New("outdated value attempting to be used as an update") // ErrPubkeyDoesNotMatch specified pubkey does not match provided addreess ErrPubkeyDoesNotMatch = errors.New("pubKey does not match address") // ErrSignatureMismatch indicates an invalid signature specified for the payload ErrSignatureMismatch = errors.New("Signature does match") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBPath string
}
Config is the configuration for creating a new keyDb instance
type KeyDB ¶
type KeyDB struct {
// contains filtered or unexported fields
}
KeyDB is an implementation of a kv store which is permissioned using pubkey based authentication
func (*KeyDB) Close ¶
func (db *KeyDB) Close()
Close closed down the db, and releases the lock on the db file
Click to show internal directories.
Click to hide internal directories.