Documentation
¶
Overview ¶
Package nzbget implements the plugin.DownloadClient interface for NZBGet's JSON-RPC API. Tested against NZBGet 21.x and nzbget.com forks.
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, _ 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 NZBGet JSON-RPC API.
func NewWithHTTPClient ¶
NewWithHTTPClient creates a Client with a caller-supplied http.Client. Intended for unit tests that need to bypass the safe dialer.