filemonitor

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileContentProcessor

type FileContentProcessor func([]byte) (any, error)

type FileMonitor

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

func NewFileMonitor

func NewFileMonitor(filePath string, process FileContentProcessor) *FileMonitor

func (*FileMonitor) GetContent

func (fm *FileMonitor) GetContent() any

func (*FileMonitor) MonitorFile

func (fm *FileMonitor) MonitorFile(doneCh <-chan struct{})

Jump to

Keyboard shortcuts

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