forensics

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 7 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Uniq added in v0.27.0

func Uniq(source storage.KVIterator) *uniqueIterator

Types

type CacheDB added in v0.27.0

type CacheDB struct {
	// contains filtered or unexported fields
}

func NewCacheDB added in v0.27.0

func NewCacheDB(backend storage.KVIterableReader) *CacheDB

func (*CacheDB) Close added in v0.27.0

func (cdb *CacheDB) Close()

func (*CacheDB) Commit added in v0.27.0

func (cdb *CacheDB) Commit(writer storage.KVWriter)

func (*CacheDB) Delete added in v0.27.0

func (cdb *CacheDB) Delete(key []byte)

func (*CacheDB) DeleteSync added in v0.27.0

func (cdb *CacheDB) DeleteSync(key []byte)

func (*CacheDB) Get added in v0.27.0

func (cdb *CacheDB) Get(key []byte) []byte

DB implementation

func (*CacheDB) Has added in v0.27.0

func (cdb *CacheDB) Has(key []byte) bool

func (*CacheDB) Iterator added in v0.27.0

func (cdb *CacheDB) Iterator(low, high []byte) storage.KVIterator

func (*CacheDB) NewBatch added in v0.27.0

func (cdb *CacheDB) NewBatch() dbm.Batch

func (*CacheDB) Print added in v0.27.0

func (cdb *CacheDB) Print()

func (*CacheDB) ReverseIterator added in v0.27.0

func (cdb *CacheDB) ReverseIterator(low, high []byte) storage.KVIterator

func (*CacheDB) Set added in v0.27.0

func (cdb *CacheDB) Set(key, value []byte)

func (*CacheDB) SetSync added in v0.27.0

func (cdb *CacheDB) SetSync(key, value []byte)

func (*CacheDB) Stats added in v0.27.0

func (cdb *CacheDB) Stats() map[string]string

type ChannelIterator added in v0.27.0

type ChannelIterator struct {
	// contains filtered or unexported fields
}

func NewChannelIterator added in v0.27.0

func NewChannelIterator(ch <-chan KVPair, start, end []byte) *ChannelIterator

ChannelIterator wraps a stream of kvp KVPairs over a channel as a stateful KVIterator. The start and end keys provided are purely indicative (for Domain()) and are assumed to be honoured by the input channel - they are not checked and keys are not sorted. NewChannelIterator will block until the first value is received over the channel.

func (*ChannelIterator) Close added in v0.27.0

func (it *ChannelIterator) Close()

func (*ChannelIterator) Domain added in v0.27.0

func (it *ChannelIterator) Domain() ([]byte, []byte)

func (*ChannelIterator) Key added in v0.27.0

func (it *ChannelIterator) Key() []byte

func (*ChannelIterator) Next added in v0.27.0

func (it *ChannelIterator) Next()

func (*ChannelIterator) Valid added in v0.27.0

func (it *ChannelIterator) Valid() bool

func (*ChannelIterator) Value added in v0.27.0

func (it *ChannelIterator) Value() []byte

type KVCache added in v0.27.0

type KVCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewKVCache added in v0.27.0

func NewKVCache() *KVCache

Creates an in-memory cache wrapping a map that stores the provided tombstone value for deleted keys

func (*KVCache) Delete added in v0.27.0

func (kvc *KVCache) Delete(key []byte)

func (*KVCache) Get added in v0.27.0

func (kvc *KVCache) Get(key []byte) []byte

func (*KVCache) Has added in v0.27.0

func (kvc *KVCache) Has(key []byte) bool

func (*KVCache) Info added in v0.27.0

func (kvc *KVCache) Info(key []byte) (value []byte, deleted bool)

func (*KVCache) Iterator added in v0.27.0

func (kvc *KVCache) Iterator(low, high []byte) storage.KVIterator

func (*KVCache) Reset added in v0.27.0

func (kvc *KVCache) Reset()

func (*KVCache) ReverseIterator added in v0.27.0

func (kvc *KVCache) ReverseIterator(low, high []byte) storage.KVIterator

func (*KVCache) Set added in v0.27.0

func (kvc *KVCache) Set(key, value []byte)

func (*KVCache) WriteTo added in v0.27.0

func (kvc *KVCache) WriteTo(writer storage.KVWriter)

Writes contents of cache to backend without flushing the cache

type KVCacheIterator added in v0.27.0

type KVCacheIterator struct {
	// contains filtered or unexported fields
}

func (*KVCacheIterator) Close added in v0.27.0

func (kvi *KVCacheIterator) Close()

func (*KVCacheIterator) Domain added in v0.27.0

func (kvi *KVCacheIterator) Domain() ([]byte, []byte)

func (*KVCacheIterator) Info added in v0.27.0

func (kvi *KVCacheIterator) Info() (key, value []byte, deleted bool)

func (*KVCacheIterator) Key added in v0.27.0

func (kvi *KVCacheIterator) Key() []byte

func (*KVCacheIterator) Next added in v0.27.0

func (kvi *KVCacheIterator) Next()

func (*KVCacheIterator) Valid added in v0.27.0

func (kvi *KVCacheIterator) Valid() bool

func (*KVCacheIterator) Value added in v0.27.0

func (kvi *KVCacheIterator) Value() []byte

type KVPair added in v0.27.0

type KVPair struct {
	Key   []byte
	Value []byte
}

func (KVPair) String added in v0.27.0

func (kv KVPair) String() string

type KVPairs added in v0.27.0

type KVPairs []KVPair

func (KVPairs) Len added in v0.27.0

func (kvp KVPairs) Len() int

func (KVPairs) Less added in v0.27.0

func (kvp KVPairs) Less(i, j int) bool

func (KVPairs) Sorted added in v0.27.0

func (kvp KVPairs) Sorted() KVPairs

func (KVPairs) Swap added in v0.27.0

func (kvp KVPairs) Swap(i, j int)

type MultiIterator added in v0.27.0

type MultiIterator struct {
	// contains filtered or unexported fields
}

func NewMultiIterator added in v0.27.0

func NewMultiIterator(reverse bool, iterators ...storage.KVIterator) *MultiIterator

MultiIterator iterates in order over a series o

func (*MultiIterator) Close added in v0.27.0

func (mi *MultiIterator) Close()

func (*MultiIterator) Domain added in v0.27.0

func (mi *MultiIterator) Domain() ([]byte, []byte)

func (*MultiIterator) Key added in v0.27.0

func (mi *MultiIterator) Key() []byte

func (*MultiIterator) Len added in v0.27.0

func (mi *MultiIterator) Len() int

sort.Interface implementation

func (*MultiIterator) Less added in v0.27.0

func (mi *MultiIterator) Less(i, j int) bool

func (*MultiIterator) Next added in v0.27.0

func (mi *MultiIterator) Next()

func (*MultiIterator) Peek added in v0.27.0

func (mi *MultiIterator) Peek() storage.KVIterator

func (*MultiIterator) Pop added in v0.27.0

func (mi *MultiIterator) Pop() interface{}

func (*MultiIterator) Push added in v0.27.0

func (mi *MultiIterator) Push(x interface{})

func (*MultiIterator) Swap added in v0.27.0

func (mi *MultiIterator) Swap(i, j int)

func (*MultiIterator) Valid added in v0.27.0

func (mi *MultiIterator) Valid() bool

func (*MultiIterator) Value added in v0.27.0

func (mi *MultiIterator) Value() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL