Documentation
¶
Index ¶
- Variables
- type Event
- type FDescCache
- type FSControllerCache
- type Node
- type OsFs
- type Storage
- func (s *Storage) DetectFileRefs(path string) (rootPath string, dirName string, _ []storage.FileRef, _ error)
- func (s *Storage) GetActiveFiles(bagId []byte) ([]uint32, error)
- func (s *Storage) GetAll() []*storage.Torrent
- func (s *Storage) GetAllFilesRefsInDir(path string) ([]storage.FileRef, error)
- func (s *Storage) GetFS() storage.FS
- func (s *Storage) GetForcedPieceSize() uint32
- func (s *Storage) GetPiece(bagId []byte, id uint32) (*storage.PieceInfo, error)
- func (s *Storage) GetSingleFileRef(path string) (storage.FileRef, error)
- func (s *Storage) GetSpeedLimits() (download uint64, upload uint64, err error)
- func (s *Storage) GetTorrent(hash []byte) *storage.Torrent
- func (s *Storage) GetTorrentByOverlay(overlay []byte) *storage.Torrent
- func (s *Storage) PiecesMask(bagId []byte, num uint32) []byte
- func (s *Storage) RemovePiece(bagId []byte, id uint32) error
- func (s *Storage) RemoveTorrent(t *storage.Torrent, withFiles bool) error
- func (s *Storage) SetActiveFiles(bagId []byte, ids []uint32) error
- func (s *Storage) SetPiece(bagId []byte, id uint32, p *storage.PieceInfo) error
- func (s *Storage) SetSpeedLimits(download, upload uint64) error
- func (s *Storage) SetTorrent(t *storage.Torrent) error
- func (s *Storage) UpdateUploadStats(bagId []byte, val uint64) error
- func (s *Storage) VerifyOnStartup() bool
- type TorrentStored
Constants ¶
This section is empty.
Variables ¶
View Source
var CachedFDLimit = 800
Functions ¶
This section is empty.
Types ¶
type FDescCache ¶ added in v0.7.2
type FDescCache struct {
// contains filtered or unexported fields
}
type FSControllerCache ¶ added in v0.7.2
type FSControllerCache struct {
// contains filtered or unexported fields
}
FSControllerCache caches file descriptors to avoid unnecessary open/close of most used files
func NewFSControllerCache ¶ added in v0.7.2
func NewFSControllerCache(noRemove bool) *FSControllerCache
func (*FSControllerCache) AcquireRead ¶ added in v0.7.2
func (*FSControllerCache) RemoveFile ¶ added in v0.7.2
func (f *FSControllerCache) RemoveFile(path string) (err error)
type OsFs ¶ added in v0.2.0
type OsFs struct {
// contains filtered or unexported fields
}
func (*OsFs) GetController ¶ added in v0.7.2
func (o *OsFs) GetController() storage.FSController
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) DetectFileRefs ¶ added in v0.2.0
func (*Storage) GetAllFilesRefsInDir ¶ added in v0.2.0
func (*Storage) GetForcedPieceSize ¶ added in v0.8.1
func (*Storage) GetSingleFileRef ¶ added in v0.2.0
func (*Storage) GetSpeedLimits ¶
func (*Storage) GetTorrentByOverlay ¶
func (*Storage) RemoveTorrent ¶
func (*Storage) SetSpeedLimits ¶
func (*Storage) UpdateUploadStats ¶ added in v0.3.0
func (*Storage) VerifyOnStartup ¶ added in v0.8.0
type TorrentStored ¶
Click to show internal directories.
Click to hide internal directories.