mirror of
https://github.com/iyear/tdl
synced 2025-01-08 11:57:55 +08:00
17 lines
242 B
Go
17 lines
242 B
Go
package forwarder
|
|
|
|
type ProgressClone interface {
|
|
OnClone(elem Elem, state ProgressState)
|
|
}
|
|
|
|
type Progress interface {
|
|
OnAdd(elem Elem)
|
|
ProgressClone
|
|
OnDone(elem Elem, err error)
|
|
}
|
|
|
|
type ProgressState struct {
|
|
Done int64
|
|
Total int64
|
|
}
|