Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v1.0.0
type Options struct {
// MaxBytesLine is maximum length of lines in bytes.
// If it is zero, there is no limit.
MaxBytesLine int64
}
Options is options for Tail
type Tail ¶
type Tail struct {
Lines <-chan *Line
Errors <-chan error
// contains filtered or unexported fields
}
Tail tails a file.
func NewTailFile ¶
NewTailFile starts tailing a file with the default configuration.
func NewTailFileWithOptions ¶ added in v1.0.0
NewTailFile starts tailing a file with opt options.
func NewTailReader ¶
NewTailReader starts tailing io.Reader with the default configuration.
func NewTailReaderWithOptions ¶ added in v1.0.0
NewTailReader starts tailing io.Reader
Click to show internal directories.
Click to hide internal directories.