Versions in this module Expand all Collapse all v0 v0.1.1 Jan 11, 2022 Changes in this version + const KLibp2pHost + var Chooser = AddDagPBSupportToChooser(func(ipld.Link, ipld.LinkContext) (ipld.NodePrototype, error) { ... }) + var HAMTHashOption = hamt.UseHashFunction(func(input []byte) []byte { ... }) + var MimeTypes = map[string]FileType + func AddDagPBSupportToChooser(existing traversal.LinkTargetNodePrototypeChooser) traversal.LinkTargetNodePrototypeChooser + func AddrBytesToAddrInfo(b []byte) (*peer.AddrInfo, error) + func AddrStringToAddrInfo(s string) (*peer.AddrInfo, error) + func CodecFromString(name string) (uint64, error) + func FormatToken(tok string, tp string) string + func Libp2pKey(ks keystore.Keystore) (ci.PrivKey, error) + func ListValue(lst *[]string, defaultList []string) flag.Value + func MigrateBlocks(ctx context.Context, from blockstore.Blockstore, to blockstore.Blockstore) error + func MigrateSelectBlocks(from blockstore.Blockstore, to blockstore.Blockstore, root cid.Cid, ...) error + func RepoExists(path string) (bool, error) + func RepoPath() (string, error) + func StringsToPeerIDs(strIDs []string) ([]peer.ID, error) + func WalkDAG(root cid.Cid, bs blockstore.Blockstore, sel ipld.Node, ...) error + type DAGStat struct + NumBlocks int + Size int + func Stat(store *multistore.Store, root cid.Cid, sel ipld.Node) (DAGStat, error) + type FileType int + const FTApplication + const FTArchive + const FTAudio + const FTChemical + const FTFont + const FTImage + const FTMessage + const FTModel + const FTText + const FTUnknown + const FTVideo + func DetectFileType(path string, buf io.ReadSeeker) FileType + type KeyList []string + func MapLoadableKeys(root cid.Cid, lsys ipld.LinkSystem) (KeyList, error) + func MapMissingKeys(root cid.Cid, lsys ipld.LinkSystem) (KeyList, error) + func (kl KeyList) AsBytes() [][]byte + func (kl KeyList) Sorted() KeyList