package
1.8.27
Repository: https://github.com/julia2804/go-ethereum.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Handler is the API for feeds It enables creating, updating, syncing and retrieving feed updates and their data.
Package localstore provides disk storage layer for Swarm Chunk persistence.
Package mock defines types that are used by different implementations of mock storages.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constructor.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHasherStore creates a hasherStore object, which implements Putter and Getter interfaces.
No description provided by the author
TODO: Instead of passing the distance function, just pass the address from which distances are calculated to avoid the appearance of a pluggable distance metric and opportunities of bugs associated with providing a function different from the one that is actually used.
NewLDBStoreParams constructs LDBStoreParams with the specified values.
for testing locally.
This constructor uses MemStore and DbStore as components.
NewMemStore is instantiating a MemStore cache keeping all frequently requestedchunks in the `cache` LRU cache.
NewMockDbStore creates a new instance of DbStore with mockStore set to a provided value.
NewNetStore creates a new NetStore object using the given local store.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Proximity(x, y) returns the proximity order of the MSB distance between x and y The distance metric MSB(x, y) of two equal length byte sequences x an y is the value of the binary integer cast of the x^y, ie., x and y bitwise xor-ed.
No description provided by the author
When splitting, data is given as a SectionReader, and the key is a hashSize long byte slice (Address), the root hash of the entire content will fill this once processing finishes.
Join reconstructs original content based on a root key.
When splitting, data is given as a SectionReader, and the key is a hashSize long byte slice (Key), the root hash of the entire content will fill this once processing finishes.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
The DB schema we want to use.
"halloween" is here because we had a screw in the garbage collector index.
There was a time when we had no schema at all.
"purity" is the first formal schema of LevelDB we release together with Swarm 0.3.5.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
http://golang.org/pkg/hash/#Hash.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Provides method for validation of content address in chunks Holds the corresponding hasher to create the address.
FakeChunkStore doesn't store anything, just implements the ChunkStore interface It can be used to inject into a hasherStore if you don't want to actually store data just do the hashing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LazyChunkReader implements LazySectionReader.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocalStore is a combination of inmemory db over a disk persisted db implements a Get/Put with fallback (caching) logic using any 2 ChunkStores.
No description provided by the author
No description provided by the author
NetStore is an extension of local storage it implements the ChunkStore interface on request it initiates remote cloud retrieval using a fetcher fetchers are unique to a chunk and are stored in fetchers LRU memory cache fetchFuncFactory is a factory object to create a fetch function for a specific chunk address.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Entry to create a tree node.
No description provided by the author

# Interfaces

Chunk interface implemented by context.Contexts and data chunks.
No description provided by the author
No description provided by the author
Getter is an interface to retrieve a chunk's data by its reference.
Size, Seek, Read, ReadAt.
No description provided by the author
Putter is responsible to store data and create a reference for it.
No description provided by the author
SyncChunkStore is a ChunkStore which supports syncing.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author