filecache

package
v0.0.0-...-22766dc Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(capacity int64) storage.Storage

Types

type Storage

type Storage struct {
	storage.Storage
	// contains filtered or unexported fields
}

func (*Storage) Clean

func (s *Storage) Clean()

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) CloseHash

func (s *Storage) CloseHash(hash metainfo.Hash)

func (*Storage) GetStats

func (s *Storage) GetStats(hash metainfo.Hash) *state.CacheState

func (*Storage) OpenTorrent

func (s *Storage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (storage2.TorrentImpl, error)

Jump to

Keyboard shortcuts

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