dirwatcher

package
v1.13.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher performs a recursive watch on files in a directory

func NewWatcher

func NewWatcher(dir string) *Watcher

NewWatcher creates a new watcher for the given directory.

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, period time.Duration)

Watch starts a watch on the directory with the given probe period and stop channel.

Jump to

Keyboard shortcuts

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