Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tailer ¶
type Tailer struct {
// contains filtered or unexported fields
}
Tailer scans a file for newly appended lines and returns them.
func New ¶
New creates a new Tailer object. It's the caller's responsibility to ensure the filename is correct. We don't check the file existence here because we have to tolerate log file rotation.
func (*Tailer) Close ¶
func (t *Tailer) Close()
Close closes the Tailer object and release all resources.
Click to show internal directories.
Click to hide internal directories.