sabnzbd

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: GPL-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 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 {
	// 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