MCPcopy
hub / github.com/AlistGo/alist / Notifier

Interface Notifier

pkg/aria2/rpc/notification.go:22–35  ·  view source on GitHub ↗

Notifier handles rpc notification from aria2 server

Source from the content-addressed store, hash-verified

20
21// Notifier handles rpc notification from aria2 server
22type Notifier interface {
23 // OnDownloadStart will be sent when a download is started.
24 OnDownloadStart([]Event)
25 // OnDownloadPause will be sent when a download is paused.
26 OnDownloadPause([]Event)
27 // OnDownloadStop will be sent when a download is stopped by the user.
28 OnDownloadStop([]Event)
29 // OnDownloadComplete will be sent when a download is complete. For BitTorrent downloads, this notification is sent when the download is complete and seeding is over.
30 OnDownloadComplete([]Event)
31 // OnDownloadError will be sent when a download is stopped due to an error.
32 OnDownloadError([]Event)
33 // OnBtDownloadComplete will be sent when a torrent download is complete but seeding is still going on.
34 OnBtDownloadComplete([]Event)
35}
36
37type DummyNotifier struct{}
38

Callers 12

setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65
setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65
setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65
setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65
setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65
setNotifierMethod · 0.65
newWebsocketCallerFunction · 0.65

Implementers 2

DummyNotifierpkg/aria2/rpc/notification.go
Notifyinternal/offline_download/aria2/notify

Calls

no outgoing calls

Tested by

no test coverage detected