mirror of
https://github.com/bit1001/tdl.git
synced 2024-09-20 14:45:55 +08:00
19 lines
302 B
Go
19 lines
302 B
Go
|
package downloader
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/gotd/td/tg"
|
||
|
)
|
||
|
|
||
|
type Iter interface {
|
||
|
Next(ctx context.Context) bool
|
||
|
Value(ctx context.Context) (*Item, error)
|
||
|
Total(ctx context.Context) int
|
||
|
}
|
||
|
|
||
|
type Item struct {
|
||
|
InputFileLoc tg.InputFileLocationClass
|
||
|
Name string
|
||
|
Size int64
|
||
|
}
|