watcher

package
v0.0.0-...-8b5a478 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnChangeFile

type OnChangeFile func(fi os.FileInfo, path string) error

type Watcher

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

func New

func New(fullpath string, fi os.FileInfo) *Watcher

func (*Watcher) ListenChangeFile

func (s *Watcher) ListenChangeFile(ctx context.Context, f OnChangeFile)

Jump to

Keyboard shortcuts

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