filewatch

package
v0.0.0-...-0b6f532 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger       service.Logger
	FilePattern  string
	Directory    string
	SymlinkName  string
	Dest         string
	UseFileEvent bool
}

Handler keep for filewatcher required parameters

func (*Handler) Run

func (e *Handler) Run(ctx context.Context, exit chan<- struct{}, exitError chan<- error)

Run will trigger with directory walk polling

func (*Handler) RunEvent

func (e *Handler) RunEvent(ctx context.Context, exit chan<- struct{}, exitError chan<- error)

RunEvent is just a facarde

Jump to

Keyboard shortcuts

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