tracker

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

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) NewAlbums

func (t *Tracker) NewAlbums() []string

func (*Tracker) Skipped

func (t *Tracker) Skipped() backupmodel.MediaCounter

func (*Tracker) WaitToComplete

func (t *Tracker) WaitToComplete()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL