Versions in this module Expand all Collapse all v0 v0.9.0 Sep 26, 2019 Changes in this version + var ErrNotFound = errors.New("not found") + type ExportedChunk struct + Addrs []common.Address + Data []byte + type Exporter interface + Export func(w io.Writer) (n int, err error) + type GlobalStorer interface + Get func(addr common.Address, key []byte) (data []byte, err error) + HasKey func(addr common.Address, key []byte) bool + NewNodeStore func(addr common.Address) *NodeStore + Put func(addr common.Address, key []byte, data []byte) error + type ImportExporter interface + type Importer interface + Import func(r io.Reader) (n int, err error) + type NodeStore struct + func NewNodeStore(addr common.Address, store GlobalStorer) *NodeStore + func (n *NodeStore) Get(key []byte) (data []byte, err error) + func (n *NodeStore) Put(key []byte, data []byte) error