possumTorrentStorage

package
v1.56.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

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
	Logger log.Logger
}

Extends possum resource.Provider with an efficient implementation of torrent storage.ConsecutiveChunkReader. TODO: This doesn't expose Capacity. TODO: Add a MarkComplete method that renames incomplete chunks rather than writing them to a single giant key and deleting them.

func (Provider) MovePrefix added in v1.56.0

func (pp Provider) MovePrefix(from, to string) (err error)

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?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL