syncer

package
v0.0.0-...-5513633 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedSyncer

type CachedSyncer struct {
	// contains filtered or unexported fields
}

func NewCachedSyncer

func NewCachedSyncer(t *oauth.Transport, metaService *metadata.MetaService, blobManager *blob.Manager) *CachedSyncer

func (*CachedSyncer) Start

func (d *CachedSyncer) Start()

func (*CachedSyncer) Sync

func (d *CachedSyncer) Sync(isForce bool) (err error)

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(client *http.Client, m *metadata.MetaService, blobMngr *blob.Manager) *Downloader

func (*Downloader) Start

func (d *Downloader) Start()

type Syncer

type Syncer interface {
	// Starts a periodic syncing, returns immediately.
	Start()

	// Starts a sync if no syncing ,waits for the existing
	// sync process to be finished. Ignores incremental syncs
	// if isForce is set.
	Sync(isForce bool) (err error)
}

Jump to

Keyboard shortcuts

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