sync

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSyncAlreadyRunning  error = errors.New("sync already running")
	ErrChecksumNotMatching error = errors.New("checksum mismatch")
)

Functions

This section is empty.

Types

type SyncManager

type SyncManager interface {
	Init() error
	Run() error
	Stop()
	Add(Syncer) error
	NewSyncer(dsapid.SyncSourceResource) error
}

func NewManager

func NewManager(parallel_fetches int, users storage.UserStorage, manifests storage.ManifestStorage) SyncManager

type Syncer

type Syncer interface {
	Init(chan *syncerDownloadJob) error
	Run(chan struct{}) error
}

Jump to

Keyboard shortcuts

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