Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PollingFileAppendReader ¶
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
Click to show internal directories.
Click to hide internal directories.