Versions in this module Expand all Collapse all v0 v0.1.6 Mar 29, 2021 Changes in this version + var ErrMaxDepth = fmt.Errorf("attempted to traverse hamt beyond max depth") + var ErrNotFound = fmt.Errorf("not found") + type KV struct + Key []byte + Value *cbg.Deferred + func (t *KV) MarshalCBOR(w io.Writer) error + func (t *KV) UnmarshalCBOR(r io.Reader) error + type Node struct + Bitfield *big.Int + Pointers []*Pointer + func LoadNode(ctx context.Context, cs cbor.IpldStore, c cid.Cid, options ...Option) (*Node, error) + func NewNode(cs cbor.IpldStore, options ...Option) *Node + func (n *Node) Copy() *Node + func (n *Node) Delete(ctx context.Context, k string) error + func (n *Node) Find(ctx context.Context, k string, out interface{}) error + func (n *Node) FindRaw(ctx context.Context, k string) ([]byte, error) + func (n *Node) Flush(ctx context.Context) error + func (n *Node) ForEach(ctx context.Context, f func(k string, val interface{}) error) error + func (n *Node) Set(ctx context.Context, k string, v interface{}) error + func (n *Node) SetRaw(ctx context.Context, k string, raw []byte) error + func (t *Node) MarshalCBOR(w io.Writer) error + func (t *Node) UnmarshalCBOR(r io.Reader) error + type Option func(*Node) + func UseHashFunction(hash func([]byte) []byte) Option + func UseTreeBitWidth(bitWidth int) Option + type Pointer struct + KVs []*KV + Link cid.Cid + func (t *Pointer) MarshalCBOR(w io.Writer) error + func (t *Pointer) UnmarshalCBOR(br io.Reader) error Other modules containing this package github.com/chenjianmei111/go-hamt-ipld/v2 github.com/chenjianmei111/go-hamt-ipld/v3