Documentation ¶
Index ¶
- type Client
- func (m *Client) ForceReannounce(hashes ...string) (e error)
- func (m *Client) GetScoreFromInput(upld, seed, size float64) float64
- func (m *Client) GetTorrents() (map[string]*delugeclient.TorrentStatus, error)
- func (m *Client) GetTorrentsHashes() (thashes []string, e error)
- func (m *Client) GetTorrentsStatus() (e error)
- func (m *Client) GetTorrentsV2() (_ []*Torrent, e error)
- func (m *Client) GetWeakTorrents() ([]*delugeclient.TorrentStatus, error)
- func (m *Client) RemoveTorrent(hash string, withData bool) (bool, error)
- func (*Client) SaveTorrentFile(fname string, buf io.Reader) (_ int64, e error)
- func (m *Client) TorrentStatus(hash string) (_ *Torrent, e error)
- type Torrent
- type TorrentFile
- type TrackerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ForceReannounce ¶
func (*Client) GetScoreFromInput ¶
func (*Client) GetTorrents ¶
func (m *Client) GetTorrents() (map[string]*delugeclient.TorrentStatus, error)
func (*Client) GetTorrentsHashes ¶
func (*Client) GetTorrentsStatus ¶
func (*Client) GetTorrentsV2 ¶
func (*Client) GetWeakTorrents ¶
func (m *Client) GetWeakTorrents() ([]*delugeclient.TorrentStatus, error)
func (*Client) RemoveTorrent ¶
func (*Client) SaveTorrentFile ¶
type Torrent ¶
type Torrent struct { Hash string ActiveTime int64 Ratio float32 IsFinished bool IsSeed bool Name string NumPeers int64 NumPieces int64 NumSeeds int64 PieceLength int64 SeedingTime int64 State string TotalDone int64 TotalPeers int64 TotalSeeds int64 TotalSize int64 TotalUploaded int64 TrackerStatus string Files []*TorrentFile }
func (*Torrent) GetQuality ¶
func (*Torrent) GetShortHash ¶
func (*Torrent) GetTrackerRawError ¶ added in v0.0.4
func (*Torrent) GetTrackerStatus ¶
func (m *Torrent) GetTrackerStatus() TrackerStatus
func (*Torrent) GetVKScore ¶
type TorrentFile ¶ added in v0.0.4
type TrackerStatus ¶ added in v0.0.4
type TrackerStatus uint8
const ( TrackerStatusOK TrackerStatus = iota TrackerStatusUnknown TrackerStatusTimedOut TrackerStatusConnTimedOut TrackerStatusSent TrackerStatusNotRegistered )
Click to show internal directories.
Click to hide internal directories.