Versions in this module Expand all Collapse all v2 v2.1.0 Jul 22, 2020 Changes in this version type Root + func (r *Root) FirstSetIndex(ctx context.Context) (uint64, error) + func (r *Root) ForEachAt(ctx context.Context, start uint64, cb func(uint64, *cbg.Deferred) error) error v2.0.0 Jan 16, 2020 Changes in this version + var MaxIndex = uint64(1 << 48) + func FromArray(bs Blocks, vals []cbg.CBORMarshaler) (cid.Cid, error) + type Blocks interface + Get func(cid.Cid, cbg.CBORUnmarshaler) error + Put func(cbg.CBORMarshaler) (cid.Cid, error) + func WrapBlockstore(bs blockstore.Blockstore) Blocks + type ErrNotFound struct + Index uint64 + func (e ErrNotFound) Error() string + func (e ErrNotFound) NotFound() bool + type Node struct + Bmap []byte + Links []cid.Cid + Values []*cbg.Deferred + func (n *Node) Flush(bs Blocks, depth int) error + func (t *Node) MarshalCBOR(w io.Writer) error + func (t *Node) UnmarshalCBOR(br io.Reader) error + type Root struct + Count uint64 + Height uint64 + Node Node + func LoadAMT(bs Blocks, c cid.Cid) (*Root, error) + func NewAMT(bs Blocks) *Root + func (r *Root) BatchDelete(indices []uint64) error + func (r *Root) BatchSet(vals []cbg.CBORMarshaler) error + func (r *Root) Delete(i uint64) error + func (r *Root) Flush() (cid.Cid, error) + func (r *Root) ForEach(cb func(uint64, *cbg.Deferred) error) error + func (r *Root) Get(i uint64, out interface{}) error + func (r *Root) Set(i uint64, val interface{}) error + func (r *Root) Subtract(or *Root) error + func (t *Root) MarshalCBOR(w io.Writer) error + func (t *Root) UnmarshalCBOR(br io.Reader) error Other modules containing this package github.com/filecoin-project/go-amt-ipld github.com/filecoin-project/go-amt-ipld/v3 github.com/filecoin-project/go-amt-ipld/v4