Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullHandler ¶
type FullHandler func(io.ReadCloser) error
FullHandler handle full text as io.ReadCloser
type TailHandler ¶
TailHandler let you can do what you want depends on currentLine and allLines allLines include currentLine
type TailHandlerWithIO ¶
type TailHandlerWithIO struct {
Handler TailHandler
TailIO *tail.Tail
}
type Watcher ¶
type Watcher struct {
GracefulDoneC chan struct{} // send when graceful stop done
// contains filtered or unexported fields
}
func (*Watcher) RegisterFullHandler ¶
func (w *Watcher) RegisterFullHandler(fullpath string, handler FullHandler)
func (*Watcher) RegisterTailHandler ¶
func (w *Watcher) RegisterTailHandler(fullpath string, handler TailHandler)
Click to show internal directories.
Click to hide internal directories.