Documentation
¶
Index ¶
- type Progress
- type ProgressTracker
- type ResourceInfo
- type Task
- func (t *Task) Downloaded() int64
- func (t *Task) DownloadedBytes() int64
- func (t *Task) Execute(ctx context.Context) error
- func (t *Task) Processing() map[string]ResourceInfo
- func (t *Task) Site() string
- func (t *Task) StorageName() string
- func (t *Task) StoragePath() string
- func (t *Task) TaskID() string
- func (t *Task) TotalBytes() int64
- func (t *Task) TotalResources() int64
- func (t *Task) Type() tasktype.TaskType
- type TaskInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Progress ¶
func NewProgress ¶
type ProgressTracker ¶
type ResourceInfo ¶
type Task ¶
type Task struct {
ID string
Ctx context.Context
Stor storage.Storage
StorPath string
// contains filtered or unexported fields
}
func (*Task) Downloaded ¶
func (*Task) DownloadedBytes ¶
func (*Task) Processing ¶
func (t *Task) Processing() map[string]ResourceInfo
func (*Task) StorageName ¶
func (*Task) StoragePath ¶
func (*Task) TotalBytes ¶
func (*Task) TotalResources ¶
Click to show internal directories.
Click to hide internal directories.