Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore interface { io.ReaderAt io.Closer WritePiece(buffer []byte, piece int) (written int, err error) }
A torrent file store. WritePiece should be called for full, verified pieces only;
func NewFileStore ¶
func NewFileStore(info *InfoDict, fileSystem FileSystem) (FileStore, int64, error)
type FileSystem ¶
Interface for a file system. A file system contains files.
type FsProvider ¶
type FsProvider interface {
NewFS(directory string) (FileSystem, error)
}
Interface for a provider of filesystems.
type InfoDict ¶
type OsFsProvider ¶
type OsFsProvider struct{}
func (OsFsProvider) NewFS ¶
func (o OsFsProvider) NewFS(directory string) (fs FileSystem, err error)
Click to show internal directories.
Click to hide internal directories.