ui

package
v0.0.0-...-1f87aaf Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 NewClient

func NewClient() (*Client, error)

func (*Client) AddMagnetTorrent

func (c *Client) AddMagnetTorrent(magnetURL string, cfg *torrent.Config) error

func (*Client) AddTorrent

func (c *Client) AddTorrent(data []byte, cfg *torrent.Config) (*torrent.Torrent, error)

func (*Client) GetDefaultConfig

func (c *Client) GetDefaultConfig() *torrent.Config

func (*Client) GetPeerMessageHistory

func (c *Client) GetPeerMessageHistory(
	infoHashHex string,
	peerAddr string,
	limit int,
) ([]*peer.Event, error)

func (*Client) GetTorrentConfig

func (c *Client) GetTorrentConfig(infoHashHex string) *torrent.Config

func (*Client) GetTorrentStats

func (c *Client) GetTorrentStats(infoHashHex string) *torrent.Stats

func (*Client) RemoveTorrent

func (c *Client) RemoveTorrent(infoHashHex string) error

func (*Client) SelectDownloadDirectory

func (c *Client) SelectDownloadDirectory() (string, error)

func (*Client) Startup

func (c *Client) Startup(ctx context.Context)

func (*Client) UpdateTorrentConfig

func (c *Client) UpdateTorrentConfig(infoHashHex string, cfg *torrent.Config) error

Jump to

Keyboard shortcuts

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