qbittorrent

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalTransferInfo

type GlobalTransferInfo struct {
	DownloadSpeed  int    `json:"dl_info_speed"`
	DownloadedData int    `json:"dl_info_data"`
	UploadSpeed    int    `json:"up_info_speed"`
	UploadedData   int    `json:"up_info_data"`
	DhtNodes       int    `json:"dht_nodes"`
	Status         string `json:"connection_status"`
}

type QbittorrentClient

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

func New

func New(host string) *QbittorrentClient

func (*QbittorrentClient) GetAltSpeedLimitState

func (c *QbittorrentClient) GetAltSpeedLimitState() (bool, error)

func (*QbittorrentClient) GetTransferInfo

func (c *QbittorrentClient) GetTransferInfo() (GlobalTransferInfo, error)

func (*QbittorrentClient) GetVersion

func (c *QbittorrentClient) GetVersion() (string, error)

func (*QbittorrentClient) Login

func (c *QbittorrentClient) Login(user string, pass string) error

func (*QbittorrentClient) Logout

func (c *QbittorrentClient) Logout() error

func (*QbittorrentClient) ToggleAltSpeedLimitState

func (c *QbittorrentClient) ToggleAltSpeedLimitState() error

Jump to

Keyboard shortcuts

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