sync

package
v0.0.0-...-e9fe98c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	SetSyncTime(event, projectType string, t time.Time)
	GetSyncTime(event, projectType string) time.Time
}

Checker records and retrieves the last sync times.

type Dispatcher

type Dispatcher interface {
	Dispatch(project wporg.RepoProject) error
	Init() error
	Close() error
}

Dispatcher describes an interface for dispatching RepoProjects to a queue service. The service will need to implement this interface.

type UpdateChecker

type UpdateChecker interface {
	Updater
	Checker
}

UpdateChecker describes a combined Updater and Checker.

type Updater

type Updater interface {
	UpdateCheck(project wporg.RepoProject) bool
	RecordUpdate(project wporg.RepoProject) error
}

Updater describes an interface to determine and record the currency of the last dispatched RepoProject.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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