Documentation ¶
Index ¶
Constants ¶
View Source
const CidBufferSize = 64
Variables ¶
View Source
var IpfsCloseFile = func(clientId Client, contentId *Content) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsFileCid = func(clientId Client, contentId *Content, cidPtr *byte) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsNewContent = func(clientId Client, contentId *Content) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsOpenFile = func(clientId Client, contentId *Content, cid *byte, cidSize uint32) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsPushFile = func(clientId Client, contentId *Content, cidPtr *byte) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsReadFile = func(clientId Client, contentId *Content, buf *byte, bufLen uint32, dataPtr *byte, readPtr *int32) (error errno.Error) { return errno.ErrorNone }
View Source
var IpfsSeekFile = func(clientId Client, contentId *Content, offset int64, whence int, offsetPtr *int) (error errno.Error) { return errno.ErrorNone }
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.