Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotSpecified = iota DirectoryNotFound FileNotFound // The WinFileRemoved Error should never be seen, because it is handled internally in the FileTailer. // TODO: Refactor error handling such that this is not part of the public interface. WinFileRemoved )
Variables ¶
This section is empty.
Functions ¶
func NewLineReader ¶
func NewLineReader() *lineReader
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
On Linux, we don't need to keep the directory open, but we need to keep an open watch descriptor handle.
type FileTailer ¶
func RunFileTailer ¶
func RunFileTailer(globs []glob.Glob, readall bool, failOnMissingFile bool, log logrus.FieldLogger) (FileTailer, error)
func RunPollingFileTailer ¶
func RunPollingFileTailer(globs []glob.Glob, readall bool, failOnMissingFile bool, pollInterval time.Duration, log logrus.FieldLogger) (FileTailer, error)
Click to show internal directories.
Click to hide internal directories.