Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamableByteNode ¶
A StreamableByteNode is an ipld.Node that can be streamed over. It is guaranteed to have a Bytes type.
func NewUnixFSFile ¶
func NewUnixFSFile(ctx context.Context, substrate ipld.Node, lsys *ipld.LinkSystem) (StreamableByteNode, error)
NewUnixFSFile attempts to construct an ipld node from the base protobuf node representing the root of a unixfs File. It provides a `bytes` view over the file, along with access to io.Reader streaming access to file data.
Click to show internal directories.
Click to hide internal directories.