sabnzbd

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFileResponse

type AddFileResponse struct {
	NzoIDs []string `json:"nzo_ids"`
	ApiError
}

type AddNzbRequest

type AddNzbRequest struct {
	Url      string
	Category string
}

type ApiError

type ApiError struct {
	ErrorMsg string `json:"error,omitempty"`
}

type Client

type Client struct {
	Http *http.Client
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Client

func (*Client) AddFromUrl

func (c *Client) AddFromUrl(ctx context.Context, r AddNzbRequest) (*AddFileResponse, error)

func (*Client) Version

func (c *Client) Version(ctx context.Context) (*VersionResponse, error)

type Options

type Options struct {
	Addr   string
	ApiKey string

	BasicUser string
	BasicPass string

	Log *log.Logger
}

type VersionResponse

type VersionResponse struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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