package
0.5.1
Repository: https://github.com/opensourceways/mirrorbits.git
Documentation: pkg.go.dev

# Functions

IsScanning returns true is a scan is already in progress for the given mirror.
NewTraceHandler returns a new instance of the trace file handler.
Scan starts a scan of the given mirror.
ScanSource starts a scan of the local repository.

# Constants

FTP represents an ftp scanner.
RSYNC represents an rsync scanner.

# Variables

ErrNoSyncMethod is returned when no sync protocol is available.
ErrNoTrace is returned when no trace file is found.
ErrScanAborted is returned when a scan is aborted by the user.
ErrScanInProgress is returned when a scan is started while another is already in progress.

# Structs

FTPScanner is the implementation of an ftp scanner.
RsyncScanner is the implementation of an rsync scanner.
Trace is the internal trace handler.

# Interfaces

Scanner is the interface that all scanners must implement.

# Type aliases

ScannerType holds the type of scanner in use.