Documentation ¶
Index ¶
- Constants
- type Aria2
- func (a *Aria2) AddURL(args *tool.AddUrlArgs) (string, error)
- func (a *Aria2) Init() (string, error)
- func (a *Aria2) IsReady() bool
- func (a *Aria2) Items() []model.SettingItem
- func (a *Aria2) Name() string
- func (a *Aria2) Remove(task *tool.DownloadTask) error
- func (a *Aria2) Run(task *tool.DownloadTask) error
- func (a *Aria2) Status(task *tool.DownloadTask) (*tool.Status, error)
- type Notify
- func (n *Notify) OnBtDownloadComplete(events []rpc.Event)
- func (n *Notify) OnDownloadComplete(events []rpc.Event)
- func (n *Notify) OnDownloadError(events []rpc.Event)
- func (n *Notify) OnDownloadPause(events []rpc.Event)
- func (n *Notify) OnDownloadStart(events []rpc.Event)
- func (n *Notify) OnDownloadStop(events []rpc.Event)
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) Items ¶
func (a *Aria2) Items() []model.SettingItem
type Notify ¶
type Notify struct {
Signals generic_sync.MapOf[string, chan int]
}
func (*Notify) OnBtDownloadComplete ¶
func (*Notify) OnDownloadComplete ¶
func (*Notify) OnDownloadError ¶
func (*Notify) OnDownloadPause ¶
func (*Notify) OnDownloadStart ¶
func (*Notify) OnDownloadStop ¶
Click to show internal directories.
Click to hide internal directories.