replication

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotAvailable = errors.New("file not available")

Functions

func CurrentChangeset

func CurrentChangeset(url string) (int, error)

func CurrentDiff

func CurrentDiff(url string) (int, error)

func NewChangesetDownloader

func NewChangesetDownloader(dest, url string, seq int, interval time.Duration) *downloader

func NewDiffDownloader

func NewDiffDownloader(dest, url string, seq int, interval time.Duration) *downloader

func NewDiffReader

func NewDiffReader(dest string, seq int) *reader

Types

type Sequence

type Sequence struct {
	Filename      string
	StateFilename string
	Time          time.Time
	Sequence      int
}

type Source

type Source interface {
	Sequences() <-chan Sequence
}

Jump to

Keyboard shortcuts

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