watcher

package
v0.0.0-...-48c07ff Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSChangeHandler

type FSChangeHandler interface {
	OnCreate(string)
	OnUpdate(string)
	OnRemove(string)
}

type FileWatcher

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

func NewWatcher

func NewWatcher() (*FileWatcher, error)

func (*FileWatcher) Add

func (w *FileWatcher) Add(name string, handler FSChangeHandler, filters ...*regexp.Regexp)

func (*FileWatcher) Start

func (w *FileWatcher) Start(stopCh chan struct{})

Jump to

Keyboard shortcuts

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