Versions in this module Expand all Collapse all v0 v0.4.2 Jun 28, 2019 v0.4.1 Jun 13, 2019 Changes in this version + const DefaultLimit + const MaxLimit + 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 + KeyNodes func(key []byte, startAddr *common.Address, limit int) (nodes Nodes, err error) + Keys func(startKey []byte, limit int) (keys Keys, err error) + NewNodeStore func(addr common.Address) *NodeStore + NodeKeys func(addr common.Address, startKey []byte, limit int) (keys Keys, err error) + Nodes func(startAddr *common.Address, limit int) (nodes Nodes, err error) + Put func(addr common.Address, key []byte, data []byte) error + type Importer interface + Import func(r io.Reader) (n int, err error) + type Keys struct + Keys [][]byte + Next []byte + 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) Keys(startKey []byte, limit int) (keys Keys, err error) + func (n *NodeStore) Put(key []byte, data []byte) error + type Nodes struct + Addrs []common.Address + Next *common.Address