fsutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PollingFileAppendReader

type PollingFileAppendReader struct {
	io.Reader
	// contains filtered or unexported fields
}

PollingFileAppendReader polls a file for updates. When the size of the file changes it reads the new content and makes it available via Read()

func NewPollingFileAppendReader

func NewPollingFileAppendReader(path string, interval time.Duration) (*PollingFileAppendReader, error)

NewPollingFileAppendReader creates a new reader for the provided path which polls at the desired interval

func (*PollingFileAppendReader) Close

func (r *PollingFileAppendReader) Close() error

Close the reader

Jump to

Keyboard shortcuts

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