Notifier handles rpc notification from aria2 server
| 20 | |
| 21 | // Notifier handles rpc notification from aria2 server |
| 22 | type 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 | |
| 37 | type DummyNotifier struct{} |
| 38 |
no outgoing calls
no test coverage detected