# Packages

Package db implements a mock store that keeps all chunk data in LevelDB database.
Package mem implements a mock store that keeps all chunk data in memory.
Package rpc implements an RPC client that connect to a centralized mock store.
Package test provides functions that are used for testing GlobalStorer implementations.

# Functions

NewNodeStore creates a new instance of NodeStore that keeps chunk data using GlobalStorer with a provided address.

# Variables

ErrNotFound indicates that the chunk is not found.

# Structs

ExportedChunk is the structure that is saved in tar archive for each chunk as JSON-encoded bytes.
NodeStore holds the node address and a reference to the GlobalStore in order to access and store chunk data only for one node.

# Interfaces

Exporter defines method for exporting mock store data to a tar archive.
GlobalStorer defines methods for mock db store that stores chunk data for all swarm nodes.
Importer defines method for importing mock store data from an exported tar archive.