Documentation ¶
Index ¶
Constants ¶
View Source
const ( EvtScannerNewJob = "scanner.new-job" EvtScannerDone = "scanner.done" EvtScannerError = "scanner.error" )
View Source
const ( EvtTransferDone = "transfer.done" EvtTransferJobDone = "transfer.job-done" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Src string Dest string Recursively bool ConvertMatch PathMatcher CopyMatch PathMatcher ArchiveMatch PathMatcher CopyFileMeta bool CopyImageMeta bool CheckImage bool MaxGo int LogPath string Opts *webp.EncodeOptions JobQueue chan *Job }
type Monitor ¶
type PathMatcher ¶
func NewGlobMatcher ¶
func NewGlobMatcher(pattern string) (PathMatcher, error)
type PathScanner ¶
type PathScanner struct {
// contains filtered or unexported fields
}
func NewPathScanner ¶
func NewPathScanner(eb *eventbus.Bus, config *Config) *PathScanner
config.Src and config.Dest must be cleaned by filepath.Clean first
func (*PathScanner) Scan ¶
func (sc *PathScanner) Scan(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.