Documentation ¶
Index ¶
- type Bucket
- func (b Bucket) ChildBucket(component KeyComponent) Bucket
- func (b Bucket) Delete(key []byte) error
- func (b Bucket) DeleteBucket() error
- func (b Bucket) ForEach(fn func(item Item) error) error
- func (b Bucket) Get(key []byte) (Item, error)
- func (b Bucket) IsEmpty() bool
- func (b Bucket) Iterator() *BucketIterator
- func (b Bucket) IteratorWithModifiedOptions(fn func(options *badger.IteratorOptions)) *BucketIterator
- func (b Bucket) KeyInBucket(item Item) (KeyComponent, error)
- func (b Bucket) Prefix() Key
- func (b Bucket) Set(key, val []byte) error
- type BucketIterator
- type Counter
- type Item
- type Key
- type KeyComponent
- type Sequence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func MustNewBucket ¶
func (Bucket) ChildBucket ¶
func (b Bucket) ChildBucket(component KeyComponent) Bucket
func (Bucket) DeleteBucket ¶
func (Bucket) Iterator ¶
func (b Bucket) Iterator() *BucketIterator
func (Bucket) IteratorWithModifiedOptions ¶
func (b Bucket) IteratorWithModifiedOptions(fn func(options *badger.IteratorOptions)) *BucketIterator
func (Bucket) KeyInBucket ¶
func (b Bucket) KeyInBucket(item Item) (KeyComponent, error)
type BucketIterator ¶
type BucketIterator struct {
// contains filtered or unexported fields
}
func NewBucketIterator ¶
func NewBucketIterator(bucket Bucket) *BucketIterator
func NewBucketIteratorWithModifiedOptions ¶
func NewBucketIteratorWithModifiedOptions(bucket Bucket, fn func(options *badger.IteratorOptions)) *BucketIterator
func (BucketIterator) Close ¶
func (i BucketIterator) Close()
func (BucketIterator) Item ¶
func (i BucketIterator) Item() Item
func (BucketIterator) Next ¶
func (i BucketIterator) Next()
func (BucketIterator) Rewind ¶
func (i BucketIterator) Rewind()
func (BucketIterator) Seek ¶
func (i BucketIterator) Seek(key []byte)
func (BucketIterator) Valid ¶
func (i BucketIterator) Valid() bool
func (BucketIterator) ValidForBucket ¶
func (i BucketIterator) ValidForBucket() bool
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewCounter(bucket Bucket, key KeyComponent) (Counter, error)
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func MustNewKey ¶
func MustNewKey(components ...KeyComponent) Key
func NewKey ¶
func NewKey(components ...KeyComponent) (Key, error)
func NewKeyFromBytes ¶
func NewKeyFromBytesReusingComponents ¶
func NewKeyFromBytesReusingComponents(b []byte, components []KeyComponent) (Key, error)
func (Key) Append ¶
func (k Key) Append(component KeyComponent) Key
func (Key) Components ¶
func (k Key) Components() []KeyComponent
type KeyComponent ¶
type KeyComponent struct {
// contains filtered or unexported fields
}
func MustNewKeyComponent ¶
func MustNewKeyComponent(b []byte) KeyComponent
func NewKeyComponent ¶
func NewKeyComponent(b []byte) (KeyComponent, error)
func (KeyComponent) Bytes ¶
func (k KeyComponent) Bytes() []byte
func (KeyComponent) IsZero ¶
func (k KeyComponent) IsZero() bool
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
func NewSequence ¶
func NewSequence(bucket Bucket, key KeyComponent) (Sequence, error)
Click to show internal directories.
Click to hide internal directories.