Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieceStore ¶
type PieceStore struct { *sync.RWMutex Overall *TorrentStore Hash metainfo.Hash Length int64 // contains filtered or unexported fields }
func (*PieceStore) Completion ¶
func (ps *PieceStore) Completion() storage.Completion
func (*PieceStore) MarkComplete ¶
func (ps *PieceStore) MarkComplete() error
func (*PieceStore) MarkNotComplete ¶
func (ps *PieceStore) MarkNotComplete() error
type Store ¶
type Store struct {
ParentDir string
}
Store implements the ClientImpl interface of package anacrolix/torrent/storage. It abstracts a parent directory with a subdirectory for each TorrentStore
func (*Store) OpenTorrent ¶
type TorrentStore ¶
TorrentStore implements the TorrentImpl interface of package anacrolix/torrent/storage. It stores torrent pieces as individual files in a directory named by the torrent hash.
func NewTorrentStore ¶
func NewTorrentStore(parentDir string, infoHashStr string) (*TorrentStore, error)
func (*TorrentStore) Close ¶
func (f *TorrentStore) Close() error
func (*TorrentStore) NewPieceStoreHashLen ¶
func (f *TorrentStore) NewPieceStoreHashLen(hash metainfo.Hash, leng int64) *PieceStore
Click to show internal directories.
Click to hide internal directories.