watcher

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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(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