tail

package module
v0.0.0-...-82dee6f Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("tail: timedout")

Functions

This section is empty.

Types

type Reader

type Reader struct {

	// Poll is the polling interval used looking for changes.
	Poll time.Duration

	// EOFWait is the amount time it waits for the file to appear, before returning io.EOF.
	EOFWait time.Duration

	Timeout  time.Duration
	TimeoutC <-chan struct{}
	// contains filtered or unexported fields
}

func Open

func Open(name string) (*Reader, error)

Open opens the named file for tailing with follow-name in mode O_RDONLY. If there is an error, it will be of type *PathError.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Offset

func (r *Reader) Offset() int64

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) (int64, error)

func (*Reader) Stat

func (r *Reader) Stat() os.FileInfo

Directories

Path Synopsis
cmd
tail command

Jump to

Keyboard shortcuts

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