Documentation
¶
Index ¶
- type Client
- func (c *Client) AddMagnetTorrent(magnetURL string, cfg *torrent.Config) error
- func (c *Client) AddTorrent(data []byte, cfg *torrent.Config) (*torrent.Torrent, error)
- func (c *Client) GetDefaultConfig() *torrent.Config
- func (c *Client) GetPeerMessageHistory(infoHashHex string, peerAddr string, limit int) ([]*peer.Event, error)
- func (c *Client) GetTorrentConfig(infoHashHex string) *torrent.Config
- func (c *Client) GetTorrentStats(infoHashHex string) *torrent.Stats
- func (c *Client) RemoveTorrent(infoHashHex string) error
- func (c *Client) SelectDownloadDirectory() (string, error)
- func (c *Client) Startup(ctx context.Context)
- func (c *Client) UpdateTorrentConfig(infoHashHex string, cfg *torrent.Config) error
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) AddMagnetTorrent ¶
func (*Client) AddTorrent ¶
func (*Client) GetDefaultConfig ¶
func (*Client) GetPeerMessageHistory ¶
func (*Client) GetTorrentConfig ¶
func (*Client) GetTorrentStats ¶
func (*Client) RemoveTorrent ¶
func (*Client) SelectDownloadDirectory ¶
Click to show internal directories.
Click to hide internal directories.