qb

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 9 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"`
	Category     string   `json:"category"`
	Tags         string   `json:"tags"`
	SkipChecking bool     `json:"skipChecking"`
	Paused       bool     `json:"paused"`
	RootFolder   bool     `json:"rootFolder"`
	AutoTMM      bool     `json:"autoTMM"`
}

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