fsnotify

package
v0.0.0-...-2b5c1d7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DELAY represents the time to wait before sending an event
	DELAY time.Duration = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FsNotify

type FsNotify struct {
	// contains filtered or unexported fields
}

FsNotify is a fsNotifier watching a directory

func (*FsNotify) Init

func (fs *FsNotify) Init([]byte) error

Init implements the Module interface

func (*FsNotify) Name

func (fs *FsNotify) Name() string

Name implements the Module interface

func (*FsNotify) Status

func (fs *FsNotify) Status() (polochon.ModuleStatus, error)

Status implements the Module interface

func (*FsNotify) Watch

func (fs *FsNotify) Watch(watchPath string, ctx polochon.FsNotifierCtx, log *logrus.Entry) error

Watch implements the modules fsNotifier interface

Jump to

Keyboard shortcuts

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