Documentation
¶
Overview ¶
Package sabnzbd implements the plugin.DownloadClient interface for SABnzbd's REST API. Tested against SABnzbd 4.x.
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, r plugin.Release) (string, error)
- func (c *Client) GetQueue(ctx context.Context) ([]plugin.QueueItem, error)
- func (c *Client) Name() string
- func (c *Client) Protocol() plugin.Protocol
- func (c *Client) Remove(ctx context.Context, clientItemID string, deleteFiles bool) error
- func (c *Client) Status(ctx context.Context, clientItemID string) (plugin.QueueItem, error)
- func (c *Client) Test(ctx context.Context) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements plugin.DownloadClient against the SABnzbd API.
func NewWithHTTPClient ¶
NewWithHTTPClient creates a Client with a caller-supplied http.Client. Intended for unit tests that need to bypass the safe dialer.