Refactored core, improved core <-> cli interaction
This commit is contained in:
parent
5e6884af66
commit
d2b0ca37be
6 changed files with 363 additions and 311 deletions
|
@ -1,8 +1,13 @@
|
|||
package core
|
||||
|
||||
type UserInterface interface {
|
||||
DownloadProgress(progress float32, rate float64, delaying bool, waiting bool, retries int, title string)
|
||||
InfoMessage(msg string)
|
||||
ErrorMessage(err error)
|
||||
Aborted()
|
||||
type DownloadProgress struct {
|
||||
Aborted bool
|
||||
Error error
|
||||
Success bool
|
||||
Delaying bool
|
||||
Progress float32
|
||||
Rate float64
|
||||
Retries int
|
||||
Title string
|
||||
Waiting bool
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue