Documentation
¶
Index ¶
- Variables
- type Keystore
- func (k *Keystore) Begin() *Txn
- func (k *Keystore) Get(txn *Txn, key []byte) ([]byte, error)
- func (k *Keystore) HDel(txn *Txn, key, field []byte) error
- func (k *Keystore) HGet(txn *Txn, key, field []byte) ([]byte, error)
- func (k *Keystore) HGetAll(txn *Txn, key []byte) (map[string][]byte, error)
- func (k *Keystore) HSet(txn *Txn, key, field, value []byte) error
- func (k *Keystore) Incr(txn *Txn, key []byte) (int64, error)
- func (k *Keystore) LPop(txn *Txn, key []byte) ([]byte, error)
- func (k *Keystore) LPush(txn *Txn, key []byte, value []byte) error
- func (k *Keystore) RPop(txn *Txn, key []byte) ([]byte, error)
- func (k *Keystore) RPush(txn *Txn, key []byte, value []byte) error
- func (k *Keystore) SAdd(txn *Txn, key, member []byte) (int, error)
- func (k *Keystore) SMembers(txn *Txn, key []byte) ([][]byte, error)
- func (k *Keystore) SRem(txn *Txn, key, member []byte) (int, error)
- func (k *Keystore) Set(txn *Txn, key []byte, value []byte, ttl time.Duration) error
- type Txn
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Keystore ¶
type Keystore struct {
// contains filtered or unexported fields
}
Keystore abstracts multi-data-type operations over a raw KV engine.
func NewKeystore ¶
func NewKeystore(store ultimate_db.KVStore) *Keystore
Click to show internal directories.
Click to hide internal directories.