package
1.58.0
Repository: https://github.com/anacrolix/torrent.git
Documentation: pkg.go.dev

# Packages

# Functions

A helper to create zero-length files which won't appear for file-orientated storage since no writes will ever occur to them (no torrent data is associated with a zero-length file).
All Torrent data stored in this baseDir.
File storage with data partitioned by infohash.
NewFileOpts creates a new ClientImplCloser that stores files using the OS native filesystem.
Deprecated: Allows passing a function to determine the path for storing torrent data.
Deprecated: Allows passing custom PieceCompletion.
TODO: Support all the same native filepath configuration that NewFileOpts provides.
Combines file info path components, ensuring the result won't escape into parent directories.
Combines a mmapped region and file into a storage Mmap abstraction, which handles closing the mmap file handle.

# Structs

Info passed to a FilePathMaker.
Data storage bound to a torrent.

# Interfaces

Represents data storage for an unspecified torrent.
Implementations track the completion of pieces.
Interacts with torrent piece data.
Allows a storage backend to override hashing (i.e.

# Type aliases

Determines the filepath to be used for each file in a torrent.
Determines the directory for a given torrent within a storage client.