Documentation
¶
Overview ¶
Package taillion implements tailing of lion log files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tail ¶
func Tail( filePath string, unmarshaller lion.Unmarshaller, entryHandler EntryHandler, errorHandler ErrorHandler, options TailOptions, ) error
Tail tails the given file for entries.
Types ¶
type EntryHandler ¶
EntryHandler handles a lion.Entry that was read.
type ErrorHandler ¶
ErrorHandler handles an error from tailing/ If it returns true, Tail should return.
type SeekInfo ¶
SeekInfo represents arguments to `os.Seek`
type TailOptions ¶
type TailOptions struct {
Location *SeekInfo // Seek to this location before tailing
ReOpen bool // Reopen recreated files (tail -F)
MustExist bool // Fail early if the file does not exist
Poll bool // Poll for file changes instead of using inotify
Pipe bool // Is a named pipe (mkfifo)
Follow bool // Continue looking for new lines (tail -f)
Done chan struct{} // Stop when this channel closes
}
TailOptions are options to Tail.
Source Files
¶
- taillion.go
Click to show internal directories.
Click to hide internal directories.