file

package
v3.0.0-...-55b81f4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Create = fsnotify.Create
	Write  = fsnotify.Write
	Remove = fsnotify.Remove
	Rename = fsnotify.Rename
	Chmod  = fsnotify.Chmod
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUpdateMessage

type FileUpdateMessage struct {
	CorrelationID slog.Attr
}

type FileWatcherService

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

func NewFileWatcherService

func NewFileWatcherService(agentConfig *config.Config) *FileWatcherService

func (*FileWatcherService) SetEnabled

func (fws *FileWatcherService) SetEnabled(enabled bool)

func (*FileWatcherService) Watch

func (fws *FileWatcherService) Watch(ctx context.Context, ch chan<- FileUpdateMessage)

Jump to

Keyboard shortcuts

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