Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRangeStop = errors.New("range stop") ErrScanStop = ErrRangeStop )
View Source
var ErrNoUpdate = errors.New("no update")
View Source
var ErrNotFound = errors.New("not found")
View Source
var NoKey = Bucket{}.NewKey(nil)
View Source
var OffsetStart = []byte("")
Functions ¶
func NoSyncOption ¶
func NoSyncOption() storeOpt
Types ¶
type Bucket ¶
type Bucket struct { ID BucketID RangeOptions RangeOptions }
func NewBucket ¶
func NewBucket(id BucketID, opts ...*RangeOptions) Bucket
func (Bucket) WithRangeOptions ¶
func (b Bucket) WithRangeOptions(opt *RangeOptions) Bucket
type IndexedStore ¶
type IndexedStore interface { View(k *Key, fn PeekFunc) error Update(k *Key, fn ModifyFunc) error Delete(k *Key) error RangeKeys(b Bucket, fn KeyFunc) (*RangeOptions, error) RangePeek(b Bucket, fn PeekFunc) (*RangeOptions, error) RangeModify(b Bucket, fn ModifyFunc) (*RangeOptions, error) Close() error }
IndexedStore is an interface to internal node state. The state includes file names, version history, in other words it's a collection of indexed metadata. The state must be synchronised across all utility Atlant nodes.
func NewIndexedStoreBadger ¶
func NewIndexedStoreBadger(prefix string, opts ...storeOpt) (IndexedStore, error)
type Key ¶
func (*Key) WithinBucket ¶
type RangeOptions ¶
Click to show internal directories.
Click to hide internal directories.