Documentation ¶
Index ¶
- func Close()
- func Delete(bucket, key []byte)
- func ForEach(bucket []byte, f FETCH_CALLBACK)
- func Get(bucket, key []byte) []byte
- func NextId(bucket []byte) int64
- func Prefix(bucket, prefix []byte, f FETCH_CALLBACK)
- func Range(bucket, from, to []byte, f FETCH_CALLBACK)
- func Set(bucket, key, value []byte)
- func Transaction(f TRANSACTION_CALLBACK)
- type Bucket
- func (b *Bucket) Bucket(name string) (*Bucket, error)
- func (b *Bucket) Delete(key []byte) error
- func (b *Bucket) DeleteBucket(name string) error
- func (b *Bucket) Get(key []byte) []byte
- func (b *Bucket) NextId() int64
- func (b *Bucket) Prefix(prefix []byte, f FETCH_CALLBACK)
- func (b *Bucket) Range(from, to []byte, f FETCH_CALLBACK)
- func (b *Bucket) Set(key, value []byte) error
- type Config
- type DB
- func (db *DB) Close()
- func (db *DB) Delete(bucket, key []byte)
- func (db *DB) ForEach(bucket []byte, f FETCH_CALLBACK)
- func (db *DB) Get(bucket, key []byte) []byte
- func (db *DB) NextId(bucket []byte) int64
- func (db *DB) Prefix(bucket, prefix []byte, f FETCH_CALLBACK)
- func (db *DB) Range(bucket, from, to []byte, f FETCH_CALLBACK)
- func (db *DB) Set(bucket, key, value []byte)
- func (db *DB) Transaction(f TRANSACTION_CALLBACK)
- type FETCH_CALLBACK
- type TRANSACTION_CALLBACK
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEach ¶
func ForEach(bucket []byte, f FETCH_CALLBACK)
func Prefix ¶
func Prefix(bucket, prefix []byte, f FETCH_CALLBACK)
func Range ¶
func Range(bucket, from, to []byte, f FETCH_CALLBACK)
func Transaction ¶
func Transaction(f TRANSACTION_CALLBACK)
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) DeleteBucket ¶
func (*Bucket) Prefix ¶
func (b *Bucket) Prefix(prefix []byte, f FETCH_CALLBACK)
func (*Bucket) Range ¶
func (b *Bucket) Range(from, to []byte, f FETCH_CALLBACK)
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ForEach ¶
func (db *DB) ForEach(bucket []byte, f FETCH_CALLBACK)
func (*DB) Prefix ¶
func (db *DB) Prefix(bucket, prefix []byte, f FETCH_CALLBACK)
func (*DB) Range ¶
func (db *DB) Range(bucket, from, to []byte, f FETCH_CALLBACK)
func (*DB) Transaction ¶
func (db *DB) Transaction(f TRANSACTION_CALLBACK)
type FETCH_CALLBACK ¶
type TRANSACTION_CALLBACK ¶
Click to show internal directories.
Click to hide internal directories.