Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PartSize is a cache-optimized length that is used to send and share parts of a block amongst a group of nodes. // It is also used during uploads and downloads as the segment sizes to avoid buffering gigabytes of data in memory. PartSize = 64 * Kibibyte )
Functions ¶
Types ¶
type Block ¶
type Block struct { Segments []*FileSegment Size int64 }
Block allows data to be read from directly from file segments.
type FileSegment ¶
FileSegment defines a part of a file used to construct a block.
Click to show internal directories.
Click to hide internal directories.