Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Progress ¶
func (*Progress) OnProgress ¶
type ProgressOption ¶
type ProgressOption func(*Progress)
type ProgressTracker ¶
type ProgressTracker interface {
OnStart(ctx context.Context, info TaskInfo)
OnProgress(ctx context.Context, info TaskInfo, downloaded, total int64)
OnDone(ctx context.Context, info TaskInfo, err error)
}
func NewProgressTrack ¶
func NewProgressTrack( messageID int, chatID int64, opts ...ProgressOption, ) ProgressTracker
type ProgressWriter ¶
type ProgressWriter struct {
// contains filtered or unexported fields
}
type ProgressWriterAt ¶
type ProgressWriterAt struct {
// contains filtered or unexported fields
}
type Task ¶ added in v0.23.1
type Task struct {
ID string
Ctx context.Context
File tfile.TGFile
Storage storage.Storage
Path string
Progress ProgressTracker
// contains filtered or unexported fields
}
func NewTGFileTask ¶
func (*Task) StorageName ¶ added in v0.23.1
func (*Task) StoragePath ¶ added in v0.23.1
Click to show internal directories.
Click to hide internal directories.