Documentation ¶
Index ¶
Constants ¶
View Source
const CidBufferSize = 64
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client uint32
type Content ¶ added in v0.1.23
type Content struct { Id uint32 // contains filtered or unexported fields }
func (*Content) Close ¶ added in v0.1.23
Close closes the file associated with the content. Returns an error.
func (*Content) Push ¶ added in v0.1.23
Push adds the file into the network. Updates the cid of the file. Returns cid and an error
func (*Content) Read ¶ added in v0.1.23
Read reads up to len p in the file. Returns how much was read and an error.
func (*Content) Seek ¶ added in v0.1.23
Seek moves to a position inside the file. Offset is how much to move the current position Whence has three options: 0 = SeekStart, 1 = SeekCurrent, or 2 = SeekEnd Combines both offset and whence to find a new offset inside the file Returns the new offset and an error
Click to show internal directories.
Click to hide internal directories.