iter

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnixFSDirMapIterator

func NewUnixFSDirMapIterator(itr pbLinkItr, transformName TransformNameFunc) ipld.MapIterator

Types

type TransformNameFunc

type TransformNameFunc func(dagpb.String) dagpb.String

type UnixFSDir__Itr

type UnixFSDir__Itr struct {
	// contains filtered or unexported fields
}

func NewUnixFSDirIterator

func NewUnixFSDirIterator(itr pbLinkItr, transformName TransformNameFunc) *UnixFSDir__Itr

func (*UnixFSDir__Itr) Done

func (itr *UnixFSDir__Itr) Done() bool

func (*UnixFSDir__Itr) Next

func (itr *UnixFSDir__Itr) Next() (k dagpb.String, v dagpb.Link)

type UnixFSDir__MapItr

type UnixFSDir__MapItr struct {
	// contains filtered or unexported fields
}

UnixFSDir__MapItr throught the links as if they were a map Note: for now it does return links with no name, where the key is just String("")

func (*UnixFSDir__MapItr) Done

func (itr *UnixFSDir__MapItr) Done() bool

func (*UnixFSDir__MapItr) Next

func (itr *UnixFSDir__MapItr) Next() (k ipld.Node, v ipld.Node, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL