Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Piece ¶
type Piece interface { // Should return io.EOF only at end of torrent. Short reads due to missing // data should return io.ErrUnexpectedEOF. io.ReaderAt io.WriterAt // Called when the client believes the piece data will pass a hash check. // The storage can move or mark the piece data as read-only as it sees // fit. MarkComplete() error // Returns true if the piece is complete. GetIsComplete() bool }
Interacts with torrent piece data.
Click to show internal directories.
Click to hide internal directories.