Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultTimeout = 60 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) TorrentsAdd ¶
func (c *Client) TorrentsAdd(ctx context.Context, req *TorrentsAddReq) error
func (*Client) TorrentsList ¶
func (c *Client) TorrentsList(ctx context.Context, filters *TorrentsListFilters) (*TorrentsListRes, error)
func (*Client) Version ¶
func (c *Client) Version() (*SysVersionsPorla, error)
type SysVersions ¶
type SysVersions struct {
Porla SysVersionsPorla `json:"porla"`
}
type SysVersionsPorla ¶
type Torrent ¶
type Torrent struct { DownloadRate int `json:"download_rate"` UploadRate int `json:"upload_rate"` Flags int `json:"flags"` InfoHash []string `json:"info_hash"` ListPeers int `json:"list_peers"` ListSeeds int `json:"list_seeds"` Name string `json:"name"` NumPeers int `json:"num_peers"` NumSeeds int `json:"num_seeds"` Progress float64 `json:"progress"` QueuePosition int `json:"queue_position"` SavePath string `json:"save_path"` Size int `json:"size"` Total int `json:"total"` TotalDone int `json:"total_done"` }
type TorrentsAddReq ¶
type TorrentsAddRes ¶
type TorrentsAddRes struct { }
type TorrentsListFilters ¶
type TorrentsListFilters struct {
Query string `json:"query"`
}
type TorrentsListReq ¶
type TorrentsListReq struct {
Filters *TorrentsListFilters `json:"filters"`
}
Click to show internal directories.
Click to hide internal directories.