qbittorrent

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrackerIdentity

func TrackerIdentity(raw string) string

TrackerIdentity removes announce paths, query parameters, and user info, which commonly contain private tracker passkeys.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(rawURL, username, password string, timeout time.Duration, options ...Option) (*Client, error)

func (*Client) Completed

func (c *Client) Completed(ctx context.Context, tag, hash string) ([]Torrent, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context) error

type Option added in v0.10.1

type Option func(*Client)

func WithHTTPBasicAuth added in v0.10.1

func WithHTTPBasicAuth(username, password string) Option

type Torrent

type Torrent struct {
	Hash         string  `json:"hash"`
	Name         string  `json:"name"`
	SavePath     string  `json:"save_path"`
	ContentPath  string  `json:"content_path"`
	Size         int64   `json:"size"`
	TotalSize    int64   `json:"total_size"`
	Progress     float64 `json:"progress"`
	CompletionOn int64   `json:"completion_on"`
	Tracker      string  `json:"tracker"`
	Tags         string  `json:"tags"`
	State        string  `json:"state"`
}

Jump to

Keyboard shortcuts

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