files

package
v0.0.0-...-3eb8b16 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(notifier *fsnotify.Watcher) error

Types

type File

type File struct {
	Watcher *filewatcher.FileWatcher
	Filters map[string]string
}

func (*File) Filtered

func (f *File) Filtered(e *filewatcher.Event) bool

func (*File) Suppressed

func (f *File) Suppressed(e *filewatcher.Event) bool

type FileList

type FileList struct {
	// contains filtered or unexported fields
}
var List *FileList

func (*FileList) GetFile

func (fl *FileList) GetFile(path string) (*File, error)

func (*FileList) Push

func (fl *FileList) Push(name string, filters map[string]string) error

func (*FileList) Reset

func (fl *FileList) Reset(name string) error

func (*FileList) Walk

func (fl *FileList) Walk() error

Jump to

Keyboard shortcuts

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