Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
possumResource.Provider
// Deprecated: Use Slogger.
Logger log.Logger
Slogger *slog.Logger
}
Extends possum resource.Provider with an efficient implementation of torrent storage.ConsecutiveChunkReader. TODO: This doesn't expose Capacity.
func (Provider) ChunksReader ¶
func (p Provider) ChunksReader(dir string) (ret storage.PieceReader, err error)
TODO: Should the parent ReadConsecutiveChunks method take the expected number of bytes to avoid trying to read discontinuous or incomplete sequences of chunks?
func (Provider) MovePrefix ¶
func (Provider) ReadConsecutiveChunks ¶
func (p Provider) ReadConsecutiveChunks(prefix string) (rc io.ReadCloser, err error)
TODO: Should the parent ReadConsecutiveChunks method take the expected number of bytes to avoid trying to read discontinuous or incomplete sequences of chunks?
Click to show internal directories.
Click to hide internal directories.