Documentation ¶
Index ¶
- Variables
- func NewNotifier(host *url.URL) *notifier
- type Event
- type Notify
- func (n *Notify) BtComplete() <-chan string
- func (n *Notify) Complete() <-chan string
- func (n *Notify) Error() <-chan string
- func (n *Notify) ListenMultiple(events map[string]func(gid string))
- func (n *Notify) ListenOnce(method string, fn func(gid string, stop func()))
- func (n *Notify) Pause() <-chan string
- func (n *Notify) Start() <-chan string
- func (n *Notify) Stop() <-chan string
- type Tasks
Constants ¶
This section is empty.
Variables ¶
View Source
var NotifyEvents = &ne{
Start: "aria2.onDownloadStart",
Pause: "aria2.onDownloadPause",
Stop: "aria2.onDownloadStop",
Complete: "aria2.onDownloadComplete",
Error: "aria2.onDownloadError",
BtComplete: "aria2.onBtDownloadComplete",
}
Functions ¶
func NewNotifier ¶
Types ¶
type Notify ¶
type Notify struct { Close func() // contains filtered or unexported fields }
func (*Notify) BtComplete ¶
func (*Notify) ListenMultiple ¶
func (*Notify) ListenOnce ¶
Click to show internal directories.
Click to hide internal directories.