Versions in this module Expand all Collapse all v0 v0.5.1 Nov 23, 2018 Changes in this version + var ErrNoSyncMethod = errors.New("no suitable URL for the scan") + var ErrNoTrace = errors.New("No trace file") + var ErrScanAborted = errors.New("scan aborted") + var ErrScanInProgress = errors.New("scan already in progress") + func IsScanning(conn redis.Conn, id int) (bool, error) + func Scan(typ ScannerType, r *database.Redis, url string, id int, stop <-chan struct{}) error + func ScanSource(r *database.Redis, forceRehash bool, stop <-chan struct{}) (err error) + type FTPScanner struct + func (f *FTPScanner) Scan(scanurl, identifier string, conn redis.Conn, stop <-chan struct{}) error + type RsyncScanner struct + func (r *RsyncScanner) Scan(rsyncURL, identifier string, conn redis.Conn, stop <-chan struct{}) error + type Scanner interface + Scan func(url, identifier string, conn redis.Conn, stop <-chan struct{}) error + type ScannerType int8 + const FTP + const RSYNC + type Trace struct + func NewTraceHandler(redis *database.Redis, stop <-chan struct{}) *Trace + func (t *Trace) GetLastUpdate(mirror mirrors.Mirror) error