filewatcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWatcher

type FileWatcher interface {
	FilePath() string
	CallbackSize() int
	RegisterCallback(callback func(data []byte)) int64
	DeregisterCallback(uniqueID int64)
	StartWatching() error
	StopWatching()
	CallOnceAll() error
	CallOnceSpecific(uniqueID int64) error
}

func NewFileWatcher

func NewFileWatcher(filePath string) (FileWatcher, error)

NewFileWatcher creates a new FileWatcher instance. filePath should be a path to a file, not a directory.

Jump to

Keyboard shortcuts

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