Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrackAnalysed ¶
type TrackAnalysed interface {
OnAnalysed(done, total backupmodel.MediaCounter)
}
type TrackDownloaded ¶
type TrackDownloaded interface {
OnDownloaded(done, total backupmodel.MediaCounter)
}
type TrackScanComplete ¶
type TrackScanComplete interface {
OnScanComplete(total backupmodel.MediaCounter)
}
type TrackUploaded ¶
type TrackUploaded interface {
OnUploaded(done, total backupmodel.MediaCounter)
}
TrackUploaded includes both uploaded and skipped
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker is consuming progress channel, keep a record of counts, and call listeners
func NewTracker ¶
func NewTracker(progressChannel chan *backupmodel.ProgressEvent, listeners []interface{}) *Tracker
NewTracker creates the Tracker and start consuming (async)
func (*Tracker) CountPerAlbum ¶
func (t *Tracker) CountPerAlbum() map[string]*backupmodel.TypeCounter
func (*Tracker) Skipped ¶
func (t *Tracker) Skipped() backupmodel.MediaCounter
func (*Tracker) WaitToComplete ¶
func (t *Tracker) WaitToComplete()
Click to show internal directories.
Click to hide internal directories.