qbit

package
v0.0.0-...-45c8f34 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 8 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(baseURL, user, pass, category string) *Client

func (*Client) AddMagnet

func (c *Client) AddMagnet(magnet string) error

func (*Client) AddTorrentURL

func (c *Client) AddTorrentURL(torrentURL string) error

func (*Client) GetTorrent

func (c *Client) GetTorrent(hash string) (*Torrent, error)

func (*Client) GetTorrents

func (c *Client) GetTorrents() ([]Torrent, error)

func (*Client) Login

func (c *Client) Login() error

func (*Client) TestConnection

func (c *Client) TestConnection() error

type Torrent

type Torrent struct {
	Hash     string  `json:"hash"`
	Name     string  `json:"name"`
	Size     int64   `json:"size"`
	Progress float64 `json:"progress"`
	DlSpeed  int64   `json:"dlspeed"`
	State    string  `json:"state"`
	Category string  `json:"category"`
	ETA      int64   `json:"eta"`
}

Jump to

Keyboard shortcuts

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