Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2021 Changes in this version + var ErrIterClose = errors.New("iter closed") + type DataIndex struct + func NewDataIndex(p, pp prefixFunc) *DataIndex + func (di *DataIndex) Add(txn *badger.Txn, utxoID []byte, owner *objs.Owner, dataIndex []byte) error + func (di *DataIndex) AddFastSync(txn *badger.Txn, utxoID []byte, owner *objs.Owner, dataIndex []byte) error + func (di *DataIndex) Contains(txn *badger.Txn, owner *objs.Owner, dataIndex []byte) (bool, error) + func (di *DataIndex) Drop(txn *badger.Txn, utxoID []byte) error + func (di *DataIndex) GetUTXOID(txn *badger.Txn, owner *objs.Owner, dataIndex []byte) ([]byte, error) + func (di *DataIndex) PaginateDataStores(txn *badger.Txn, owner *objs.Owner, num int, startIndex []byte, ...) ([]*objs.PaginationResponse, error) + type DataIndexKey struct + func (dik *DataIndexKey) MarshalBinary() []byte + func (dik *DataIndexKey) UnmarshalBinary(data []byte) + type DataIndexRefKey struct + func (dirk *DataIndexRefKey) MarshalBinary() []byte + func (dirk *DataIndexRefKey) UnmarshalBinary(data []byte) + type EpochConstrainedList struct + func NewEpochConstrainedIndex(p, pp prefixFunc) *EpochConstrainedList + func (ecl *EpochConstrainedList) Append(txn *badger.Txn, epoch uint32, txHash []byte) error + func (ecl *EpochConstrainedList) Drop(txn *badger.Txn, txHash []byte) error + func (ecl *EpochConstrainedList) DropBefore(txn *badger.Txn, epoch uint32) ([][]byte, error) + func (ecl *EpochConstrainedList) GetEpoch(txn *badger.Txn, txHash []byte) (uint32, error) + type EpochConstrainedListKey struct + func (eclk *EpochConstrainedListKey) MarshalBinary() []byte + func (eclk *EpochConstrainedListKey) UnmarshalBinary(data []byte) + type EpochConstrainedListRefKey struct + func (eclrk *EpochConstrainedListRefKey) MarshalBinary() []byte + func (eclrk *EpochConstrainedListRefKey) UnmarshalBinary(data []byte) + type ExpSizeIndex struct + func NewExpSizeIndex(p, pp prefixFunc) *ExpSizeIndex + func (esi *ExpSizeIndex) Add(txn *badger.Txn, epoch uint32, utxoID []byte, size uint32) error + func (esi *ExpSizeIndex) Drop(txn *badger.Txn, utxoID []byte) error + func (esi *ExpSizeIndex) GetExpiredObjects(txn *badger.Txn, epoch uint32, maxBytes uint32) ([][]byte, uint32) + type ExpSizeIndexKey struct + func (esik *ExpSizeIndexKey) MarshalBinary() []byte + func (esik *ExpSizeIndexKey) UnmarshalBinary(data []byte) + type ExpSizeIndexRefKey struct + func (esirk *ExpSizeIndexRefKey) MarshalBinary() []byte + func (esirk *ExpSizeIndexRefKey) UnmarshalBinary(data []byte) + type HeightIdxIndex struct + func NewHeightIdxIndex(p, pp prefixFunc) *HeightIdxIndex + func (hii *HeightIdxIndex) Add(txn *badger.Txn, txHash []byte, height uint32, idx uint32) error + func (hii *HeightIdxIndex) Delete(txn *badger.Txn, txHash []byte) error + func (hii *HeightIdxIndex) GetHeightIdx(txn *badger.Txn, txHash []byte) (uint32, uint32, error) + func (hii *HeightIdxIndex) GetTxHashFromHeightIdx(txn *badger.Txn, height uint32, idx uint32) ([]byte, error) + type HeightIdxIndexKey struct + func (hiik *HeightIdxIndexKey) MarshalBinary() []byte + func (hiik *HeightIdxIndexKey) UnmarshalBinary(data []byte) + type HeightIdxIndexRefKey struct + func (hiirk *HeightIdxIndexRefKey) MarshalBinary() []byte + func (hiirk *HeightIdxIndexRefKey) UnmarshalBinary(data []byte) + type InsertionOrderIndexer struct + func NewInsertionOrderIndex(p, pp prefixFunc) *InsertionOrderIndexer + func (ioi *InsertionOrderIndexer) Add(txn *badger.Txn, txHash []byte) error + func (ioi *InsertionOrderIndexer) Delete(txn *badger.Txn, txHash []byte) error + func (ioi *InsertionOrderIndexer) NewIter(txn *badger.Txn) (*badger.Iterator, []byte) + type InsertionOrderIndexerKey struct + func (ioik *InsertionOrderIndexerKey) MarshalBinary() []byte + func (ioik *InsertionOrderIndexerKey) UnmarshalBinary(data []byte) + type InsertionOrderIndexerRevKey struct + func (ioirk *InsertionOrderIndexerRevKey) MarshalBinary() []byte + func (ioirk *InsertionOrderIndexerRevKey) UnmarshalBinary(data []byte) + type RefCounter struct + func NewRefCounter(p prefixFunc) *RefCounter + func (rc *RefCounter) Decrement(txn *badger.Txn, txHash []byte) (int64, error) + func (rc *RefCounter) Increment(txn *badger.Txn, txHash []byte) (int64, error) + type RefCounterKey struct + func (rck *RefCounterKey) MarshalBinary() []byte + func (rck *RefCounterKey) UnmarshalBinary(data []byte) + type RefLinker struct + func NewRefLinkerIndex(p, pp, ppp prefixFunc) *RefLinker + func (rl *RefLinker) Add(txn *badger.Txn, txHash []byte, utxoIDs [][]byte) (bool, [][]byte, error) + func (rl *RefLinker) Delete(txn *badger.Txn, txHash []byte) error + func (rl *RefLinker) DeleteMined(txn *badger.Txn, txHash []byte) ([][]byte, [][]byte, error) + type RefLinkerRefKey struct + func (rlrk *RefLinkerRefKey) MarshalBinary() []byte + func (rlrk *RefLinkerRefKey) UnmarshalBinary(data []byte) + type RefLinkerRevRefKey struct + func (rlrrk *RefLinkerRevRefKey) MarshalBinary() []byte + func (rlrrk *RefLinkerRevRefKey) UnmarshalBinary(data []byte) + func (rlrrk *RefLinkerRevRefKey) XXXIsKey() + type ValueIndex struct + func NewValueIndex(p, pp prefixFunc) *ValueIndex + func (vi *ValueIndex) Add(txn *badger.Txn, utxoID []byte, owner *objs.Owner, valueOrig *uint256.Uint256) error + func (vi *ValueIndex) Drop(txn *badger.Txn, utxoID []byte) error + func (vi *ValueIndex) GetValueForOwner(txn *badger.Txn, owner *objs.Owner, minValue *uint256.Uint256, ...) ([][]byte, *uint256.Uint256, error) + type ValueIndexKey struct + func (vik *ValueIndexKey) MarshalBinary() []byte + func (vik *ValueIndexKey) UnmarshalBinary(data []byte) + type ValueIndexRefKey struct + func (virk *ValueIndexRefKey) MarshalBinary() []byte + func (virk *ValueIndexRefKey) UnmarshalBinary(data []byte)