aria2

package
v3.35.2-8Mi Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Downloading = iota
	Paused
	Stopped
	Completed
	Errored
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Aria2

type Aria2 struct {
	// contains filtered or unexported fields
}

func (*Aria2) AddURL

func (a *Aria2) AddURL(args *tool.AddUrlArgs) (string, error)

func (*Aria2) Init

func (a *Aria2) Init() (string, error)

func (*Aria2) IsReady

func (a *Aria2) IsReady() bool

func (*Aria2) Items

func (a *Aria2) Items() []model.SettingItem

func (*Aria2) Name

func (a *Aria2) Name() string

func (*Aria2) Remove

func (a *Aria2) Remove(task *tool.DownloadTask) error

func (*Aria2) Run

func (a *Aria2) Run(task *tool.DownloadTask) error

func (*Aria2) Status

func (a *Aria2) Status(task *tool.DownloadTask) (*tool.Status, error)

type Notify

type Notify struct {
	Signals generic_sync.MapOf[string, chan int]
}

func NewNotify

func NewNotify() *Notify

func (*Notify) OnBtDownloadComplete

func (n *Notify) OnBtDownloadComplete(events []rpc.Event)

func (*Notify) OnDownloadComplete

func (n *Notify) OnDownloadComplete(events []rpc.Event)

func (*Notify) OnDownloadError

func (n *Notify) OnDownloadError(events []rpc.Event)

func (*Notify) OnDownloadPause

func (n *Notify) OnDownloadPause(events []rpc.Event)

func (*Notify) OnDownloadStart

func (n *Notify) OnDownloadStart(events []rpc.Event)

func (*Notify) OnDownloadStop

func (n *Notify) OnDownloadStop(events []rpc.Event)

Jump to

Keyboard shortcuts

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