watcher

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryWatcher

type DirectoryWatcher struct {
	// contains filtered or unexported fields
}

func NewDirectoryWatcher

func NewDirectoryWatcher(dir string, parser parser.Parser, scanInterval time.Duration, retry int) *DirectoryWatcher

func (*DirectoryWatcher) Close

func (w *DirectoryWatcher) Close()

func (*DirectoryWatcher) Done

func (w *DirectoryWatcher) Done(record *NewRecord)

func (*DirectoryWatcher) Error

func (w *DirectoryWatcher) Error(record *NewRecord)

func (*DirectoryWatcher) Watch

func (w *DirectoryWatcher) Watch() <-chan *NewRecord

type NewRecord

type NewRecord struct {
	*api.NewRecord
	PdfPath      string
	RetryCounter int
	// contains filtered or unexported fields
}

func (*NewRecord) Done added in v1.10.0

func (r *NewRecord) Done()

func (*NewRecord) Error added in v1.10.0

func (r *NewRecord) Error()

type Watcher

type Watcher interface {
	Watch(dir string, parser parser.Parser) <-chan *api.NewRecord
	Done(record *api.NewRecord)
}

Jump to

Keyboard shortcuts

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