Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReaderRotate = errors.New("reader must rotate now") ErrorNoExisted = errors.New("file is not existed") )
Functions ¶
func DateString ¶
func DateString() string
Types ¶
type ChangeEvent ¶
type Tailer ¶
type Tailer struct { FileName string // file name NowFileName string // file name NowFileDate int Offset int64 Lines uint64 IsDayChange bool // contains filtered or unexported fields }
Tailer implement reader interface
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func (*Watcher) WatchFiles ¶
func (w *Watcher) WatchFiles(changes chan ChangeEvent) error
watch directory log files changes
Click to show internal directories.
Click to hide internal directories.