Documentation
¶
Index ¶
Constants ¶
View Source
const ( BUFSIZ = 8192 INOTIFY_MASK = inotify.IN_DELETE_SELF | inotify.IN_MOVE_SELF | inotify.IN_CREATE | inotify.IN_MOVE | inotify.IN_DELETE | inotify.IN_MODIFY )
Variables ¶
View Source
var ErrorEmpty = errors.New("lotf: empty")
View Source
var ErrorNegativeRead = errors.New("lotf: reader returned negative count from Read")
View Source
var ErrorStartOfFile = errors.New("lotf: no previous line")
Functions ¶
Types ¶
type Blockq ¶
type Blockq struct {
// contains filtered or unexported fields
}
Blockq represents a push only list.
type Element ¶
type Element struct { Value interface{} // contains filtered or unexported fields }
Element is an element in the linked list.
type Filter ¶
func RegexpFilter ¶
type ReadAtSeeker ¶
type TailReader ¶
type TailReader struct {
// contains filtered or unexported fields
}
func NewTailReader ¶
func NewTailReader(rd ReadAtSeeker) (*TailReader, error)
NewTailReader returns a new TailReader whose buffer has the default size.
func NewTailReaderSize ¶
func NewTailReaderSize(rd ReadAtSeeker, size int) (*TailReader, error)
func (*TailReader) PrevBuffered ¶
func (b *TailReader) PrevBuffered() int
func (*TailReader) Rewind ¶
func (b *TailReader) Rewind()
func (*TailReader) String ¶
func (b *TailReader) String() string
func (*TailReader) Tell ¶
func (b *TailReader) Tell() int64
type TailWatcher ¶
type TailWatcher struct { Error <-chan error // contains filtered or unexported fields }
func (*TailWatcher) Close ¶
func (tw *TailWatcher) Close() error
func (*TailWatcher) Remove ¶
func (tw *TailWatcher) Remove(pathname string) error
Click to show internal directories.
Click to hide internal directories.