# Packages
No description provided by the author
Package mock defines types that are used by different implementations of mock storages.
Handler is the API for Mutable Resources It enables creating, updating, syncing and retrieving resources and their update data.
# 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
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
No description provided by the author
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
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
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.
No description provided by the author
# 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
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
Peer is the recorded as Source on the chunk should probably not be here? but network should wrap chunk object.
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
No description provided by the author