watcher

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 8 Imported by: 0

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(scanInterval, 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(dir string, parser parser.Parser) <-chan *NewRecord

type NewRecord

type NewRecord struct {
	*api.NewRecord
	PdfPath      string
	RetryCounter int
}

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