tailer

package
v0.0.0-...-df27b73 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: BSD-2-Clause Imports: 3 Imported by: 0

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
}

func NewTailer

func NewTailer(path string, idleDuration time.Duration) (*Tailer, error)

NewTailer creates a new Tailer object configured to read data from the file at the supplied path (returned on calls to Next()). After idleDuration of file inactivity (no new content), calls to Next() will also invoke a rotation check.

func (*Tailer) Next

func (t *Tailer) Next() ([]byte, error)

Next will return content newly read from the log file. If no new content is available, and this condition has persisted for at least the idleDuration, a rotation check will be performed.

type TailerT

type TailerT interface {
	Next() ([]byte, error)
}

Jump to

Keyboard shortcuts

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