Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) PendingInfohashes(n int) (peers []*models.Peer, err error)
- func (s *Store) RemovePeer(p *models.Peer) (err error)
- func (s *Store) RemoveTorrent(t *models.Torrent) (err error)
- func (s *Store) SavePeer(p *models.Peer) (err error)
- func (s *Store) SaveTag(tag string) (int, error)
- func (s *Store) SaveTorrent(t *models.Torrent) error
- func (s *Store) TorrentByHash(ih models.Infohash) (*models.Torrent, error)
- func (s *Store) TorrentsByName(query string, offset int) ([]*models.Torrent, error)
- func (s *Store) TorrentsByTag(tag string, offset int) ([]*models.Torrent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a store
func (*Store) PendingInfohashes ¶
PendingInfohashes gets the next pending infohash from the store
func (*Store) SaveTorrent ¶
SaveTorrent implements torrentStore
func (*Store) TorrentByHash ¶
TorrentsByHash implements torrentStore
func (*Store) TorrentsByName ¶
TorrentsByName implements torrentStore
Click to show internal directories.
Click to hide internal directories.