filemonitor

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 7 Imported by: 20

Documentation

Index

Constants

View Source
const DefaultFileChangeDelay = 300 * time.Millisecond

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMonitor

type FileMonitor interface {
	Listen() <-chan []string
	Add(string) error
	Close() error
}

func NewFileListener

func NewFileListener(fileChangeDelay time.Duration, ln net.Listener) FileMonitor

func NewFileMonitor

func NewFileMonitor(fileChangeDelay time.Duration) (FileMonitor, error)

Jump to

Keyboard shortcuts

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