Documentation
¶
Index ¶
- func Btoi(v []byte) uint64
- func Itob(v uint64) []byte
- type Bucket
- func (b *Bucket) Delete(key []byte) error
- func (b *Bucket) DeleteWithTx(tx *bolt.Tx, key []byte) error
- func (b Bucket) Find(filter func(key, value []byte) bool) []byte
- func (b *Bucket) ForEach(f func(k, v []byte) error) error
- func (b Bucket) Get(key []byte) []byte
- func (b *Bucket) GetAll() map[interface{}][]byte
- func (b *Bucket) GetSlice(keys [][]byte) [][]byte
- func (b Bucket) GetWithTx(tx *bolt.Tx, key []byte) []byte
- func (b *Bucket) IsEmpty() bool
- func (b *Bucket) IsExist(k []byte) bool
- func (b *Bucket) Len() (len int)
- func (b Bucket) Put(key []byte, value []byte) error
- func (b Bucket) PutWithTx(tx *bolt.Tx, key []byte, value []byte) error
- func (b *Bucket) RangeUpdate(f func(k, v []byte) ([]byte, error)) error
- func (b *Bucket) Reset() error
- func (b *Bucket) Update(key []byte, f func([]byte) ([]byte, error)) error
- type Rollback
- type TxHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
Name []byte
// contains filtered or unexported fields
}
Bucket used for grouping the key values in boltdb. Also wrap some helper functions.
func (*Bucket) DeleteWithTx ¶
DeleteWithTx remove from bucket with tx
func (*Bucket) RangeUpdate ¶
RangeUpdate updates range of the values
Click to show internal directories.
Click to hide internal directories.