file_listener

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileListener

type FileListener struct {
	Watcher *fsnotify.Watcher
}

func (*FileListener) ListenForFiles

func (f *FileListener) ListenForFiles(directory string) chan fsnotify.Event

func (*FileListener) ReadDirectory

func (f *FileListener) ReadDirectory(dirEntries []os.DirEntry) []string

type IFileListener

type IFileListener interface {
	ListenForFiles(directory string) chan fsnotify.Event
	ReadDirectory(dirEntries []os.DirEntry) []string
}

Jump to

Keyboard shortcuts

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