qb

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTorrentsInfo added in v1.0.7

type AddTorrentsInfo struct {
	Urls               []string `json:"urls"`
	Torrents           []string `json:"torrents"`
	SavePath           string   `json:"savePath"`
	Cookie             string   `json:"cookie"`
	Category           string   `json:"category"`
	Tags               []string `json:"tags"`
	SkipChecking       bool     `json:"skipChecking"`
	Paused             bool     `json:"paused"`
	RootFolder         bool     `json:"rootFolder"`
	Rename             string   `json:"rename"`
	UpLimit            int      `json:"upLimit"` // bytes/second
	DlLimit            int      `json:"dlLimit"` // bytes/second
	RatioLimit         float64  `json:"ratioLimit"`
	SeedingTimeLimit   int      `json:"seedingTimeLimit"` // minutes
	AutoTMM            bool     `json:"autoTMM"`
	SequentialDownload bool     `json:"sequentialDownload"`
	FirstLastPiecePrio bool     `json:"firstLastPiecePrio"`
}

type Client

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

func NewClient

func NewClient(config Config) *Client

func (*Client) AddTorrents added in v1.0.7

func (c *Client) AddTorrents(req any) error

func (*Client) Login

func (c *Client) Login() error

func (*Client) Version added in v1.0.7

func (c *Client) Version() (version string, err error)

type Config

type Config struct {
	Ctx      context.Context
	Host     string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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