Versions in this module Expand all Collapse all v1 v1.8.23 Feb 11, 2019 v1.8.22 Feb 11, 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 + Delete func(addr common.Address, key []byte) error + 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 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) Delete(key []byte) error + func (n *NodeStore) Get(key []byte) (data []byte, err error) + func (n *NodeStore) Put(key []byte, data []byte) error