processor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcessor

func NewProcessor(watcher FileWatcher, storage Storage) *processor

Types

type FileWatcher

type FileWatcher interface {
	Watch(path string, onChange, onDelete func(name string)) error
	Unwatch(path string) error
	Close() error
}

type Storage

type Storage interface {
	Save(file *os.File) error
	Delete(filePath string) error
	Sync() error
}

Jump to

Keyboard shortcuts

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