Documentation ¶
Index ¶
Constants ¶
View Source
const ( FilePositionHead = int64(0) FilePositionEnd = int64(-1) )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher struct { FileTail *tail.Tail File *file.File // contains filtered or unexported fields }
func NewFileWatcher ¶
func NewFileWatcher(f *file.File) (fw *FileWatcher, err error)
func (*FileWatcher) Restart ¶
func (fw *FileWatcher) Restart() error
func (*FileWatcher) Start ¶
func (fw *FileWatcher) Start()
type Input ¶
type Input struct { WatchFiles sync.Map // 所有打开的文件 <filename, *FileWatcher> // contains filtered or unexported fields }
Input task data
var SingleInstance *Input // Input模块
Click to show internal directories.
Click to hide internal directories.