Versions in this module Expand all Collapse all v0 v0.7.0 May 26, 2023 Changes in this version + const HashMurmur3 + func Logtwo(v int) (int, error) + type Shard struct + func NewHamtFromDag(dserv ipld.DAGService, nd ipld.Node) (*Shard, error) + func NewShard(dserv ipld.DAGService, size int) (*Shard, error) + func NewShardValue(dserv ipld.DAGService, size int, key string, value *ipld.Link) (*Shard, error) + func (ds *Shard) CidBuilder() cid.Builder + func (ds *Shard) EnumLinks(ctx context.Context) ([]*ipld.Link, error) + func (ds *Shard) EnumLinksAsync(ctx context.Context) <-chan format.LinkResult + func (ds *Shard) Find(ctx context.Context, name string) (*ipld.Link, error) + func (ds *Shard) ForEachLink(ctx context.Context, f func(*ipld.Link) error) error + func (ds *Shard) Link() (*ipld.Link, error) + func (ds *Shard) Node() (ipld.Node, error) + func (ds *Shard) Remove(ctx context.Context, name string) error + func (ds *Shard) Set(ctx context.Context, name string, nd ipld.Node) error + func (ds *Shard) SetCidBuilder(builder cid.Builder) + func (ds *Shard) SetLink(ctx context.Context, name string, lnk *ipld.Link) error + func (ds *Shard) Swap(ctx context.Context, name string, node ipld.Node) (*ipld.Link, error) + func (ds *Shard) Take(ctx context.Context, name string) (*ipld.Link, error)